Changes

From SME Server
Jump to navigationJump to search
Created page with "{{Languages|Uninterruptable_Power_Supply}} {{usefulnote}} ==Alimentation sans interruption - ASI== {{Level|Advanced}} ===Introduction=== L'objectif principal du projet Netw..."
{{Languages|Uninterruptable_Power_Supply}}
{{usefulnote}}

==Alimentation sans interruption - ASI==

{{Level|Advanced}}

===Introduction===
L'objectif principal du projet Network UPS Tools (NUT) est de fournir une surveillance fiable du matériel d'ASI et d'assurer des arrêts sûrs des systèmes connectés.

La configuration par défaut de NUT maintiendra vos systèmes connectés opérationnels jusqu'à ce qu'un état critique de la batterie soit atteint (c'est-à-dire que la batterie soit presque vide), puis mettra hors tension votre serveur/équipement de manière contrôlée. Voir http://www.networkupstools.org/ (en anglais).

Si vous disposez d'un onduleur de marque APC, consultez également [[Uninterruptable_Power_Supply:APC]] (en anglais) pour une alternative à l'implémentation ordinaire KOOZALI SME « Nut ».

Si vous disposez d'une ASI Dell, cela pourrait vous aider [[Uninterruptable_Power_Supply:LatestGeekery]] (en anglais).

===Configuration par défaut (USB)===
La configuration par défaut pour 'NUT' dans le serveur KOOZALI SME est assurée par les propriétés de la base de données de configuration :
Model = usbhid-ups
status = disabled
type = service
{{Note box|type=Note : | l'absence d'une propriété 'Master' définit la configuration par défaut comme étant une configuration principale. Il s'agit d'un ASI connectée directement au serveur via un câble USB ou série. Voir plus tard pour le réglage en tant qu'esclave.

Par défaut, NUT est désactivé, c'est qu'il n'y a pas d'ASI connectée.}}

Most USB connected UPS's will work with these default settings. If using a USB connection just enable NUT as follows:

<tabs container>
<tab name="SME 10">
For '''SME 10''', systemd is now in use. We have created a generic service for your convenience:

config setprop nut status enabled
signal-event e-smith-nutUPS-update
systemctl restart nut-server.service
systemctl restart nut-monitor.service
systemctl restart nut.service
</tab>
<tab name="SME 9 and earlier">
config setprop nut status enabled
signal-event post-upgrade
signal-event reboot

</tab>
</tabs>
If your USB UPS does not work properly OR you have a '''serial device''' then follow the Configuration Options below as required.

===Configuration Options===

Not all UPS's are supported by USB or the usbhid-ups driver. However NUT supports many UPS's and can be configured under SME Server easily.

====Serial Connection====

<ol><li>Find the configuration details for your model of UPS. Refer to: http://www.networkupstools.org/stable-hcl.html and make note of the driver name and upstype number (if any) in the third column.

{{Warning box|Always use the serial cable supplied with the UPS. Standard serial cables won't work with a serial UPS and have been known to cause damage to the UPS. Pay particular attention to any references to cable in in the UPS Model column.}}

</li><li>From the console issue the following commands:
config setprop nut Model <model>
config setprop nut Device <device>
config setprop nut Type <type>
config setprop nut status enabled

Where:<br>
<model> and <type> are the driver name and type number found above.<br>
<device> is the serial port that the UPS is connected to eg. /dev/ttyS0. It also possible to use a more readable symlink. See [[:Udev - symlinks | HowTo on udev - symlinks]] for details.

Note: The case of Model, Device and Type.

</li><li>Check:
config show nut

</li><li>Apply changes and restart server:
signal-event post-upgrade
signal-event reboot

Alternatively, '''without''' NUT running or requiring a server reboot:

signal-event console-save
service nut start

</li><li>Confirm server is communicating with UPS:
upsc UPS@localhost

Whenever a UPS event occurs Emails are sent to the admin account.
</li></ol>
3,054

edits

Navigation menu