Changes

Jump to navigation Jump to search
Made serial UPS configuration generic
Line 15: Line 15:  
==Configuration Options==
 
==Configuration Options==
   −
Not all UPS's are supported by USB or the newhidups driver, refer to:  http://www.networkupstools.org/compat/stable.html to find the configuration details for your model of UPS.
+
Not all UPS's are supported by USB or the newhidups driver. However NUT supports many UPS's and can be configured under SME Server easily.
   −
For example Model bcmxcp_usb is for some Powerware units connected via USB or Model genericups for other Powerware units that only work on serial.
+
===Serial Connection===
   −
===Serial Connection===
+
<ol></li><li>Find the configuration details for your model of UPS. Refer to:  http://www.networkupstools.org/compat/stable.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.}}
   −
{{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.}}
+
</li><li>From the consol issue the following commands:
   −
The following are basic '''example''' settings.  Replace the properties with the appropriate settings for your UPS:
+
  config setprop nut Model <model>
  config setprop nut Model genericups
+
  config setprop nut Device <device>
  config setprop nut Device /dev/ttyS0
+
  config setprop nut Type <type>
  config setprop nut Type 7
   
  config setprop nut status enabled  
 
  config setprop nut status enabled  
   −
Note: "Type" is only used if your model is Model genericups.
+
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.
   −
Check:
+
</li><li>Check:
 
  config show nut
 
  config show nut
   −
Apply changes and restart server:
+
</li><li>Apply changes and restart server:
 
  signal-event post-upgrade
 
  signal-event post-upgrade
 
  signal-event reboot  
 
  signal-event reboot  
   −
Alternatively, with NUT not running or a server reboot:
+
Alternatively, '''without''' NUT running or requiring a server reboot:
 +
 
 
  expand-template /etc/sysconfig/ups
 
  expand-template /etc/sysconfig/ups
 
  expand-template /etc/ups/*
 
  expand-template /etc/ups/*
 
  /etc/rc7.d/S38nut start
 
  /etc/rc7.d/S38nut start
   −
Confirm server is communicating with UPS:
+
</li><li>Confirm server is communicating with UPS:
 
  upsc UPS@localhost
 
  upsc UPS@localhost
  −
For serial connected APC Smart UPS's there is a step by step [[:APC Serial UPS | HowTo on APC Serial UPS]]. This also shows how to configure the udev system instead of using a direct reference to the serial port.
      
Whenever a UPS event occurs Emails are sent to the admin account.
 
Whenever a UPS event occurs Emails are sent to the admin account.
105

edits

Navigation menu