Changes

From SME Server
Jump to navigationJump to search
Added section for use of Network Management Cards and required configuration
Line 32: Line 32:  
  MINUTES
 
  MINUTES
 
  TIMEOUT
 
  TIMEOUT
 
+
{{Tip box|msg=See the section below on Network Management Cards for specific settings and notes relating to using the UPS with a NMC such as AP9617 across the network}}
 
You may also consider some additional security by only listening for connections on the localhost for monitoring and incoming events (assuming you have only one UPS directly connected). In this instance set
 
You may also consider some additional security by only listening for connections on the localhost for monitoring and incoming events (assuming you have only one UPS directly connected). In this instance set
 
  NISIP 127.0.0.1
 
  NISIP 127.0.0.1
Line 65: Line 65:  
See the [http://www.apcupsd.com/manual/manual.html documentation] for further details
 
See the [http://www.apcupsd.com/manual/manual.html documentation] for further details
 
{{Note box|The UPS EEPROM value for RETPCT (Return Percentage - battery charge required before UPS powers up/on after failure) should be greater than the value of BATTERYLEVEL (battery charge level that initiates a shutdown) in ''/etc/apcupsd/apcupsd.conf''}}
 
{{Note box|The UPS EEPROM value for RETPCT (Return Percentage - battery charge required before UPS powers up/on after failure) should be greater than the value of BATTERYLEVEL (battery charge level that initiates a shutdown) in ''/etc/apcupsd/apcupsd.conf''}}
 +
====Network Management Cards====
 +
If you have a Network Management Card installed in the UPS such as the AP9617 card, you can use ''snmp'' or ''pcnet'' for UPSTYPE with the following configurations
 +
=====NMC Setup=====
 +
The NMC default configuration searches for an IP address using BOOTP and DHCP. It expects a device specific cookie to be returned with the DHCP response, so even if you create a local hostname in ''Server-manager - Hostnames and Addresses'', initial install will fail. Use the APC ''Device IP Configuration Wizard'' to discover the UPS and assign IP/Subnet/Gateway settings. You can then access the UPS configuration in a browser using the IP given.
 +
 +
Make your settings via the web browser interface.
 +
 +
The network TCP/IP settings will be set to ''manual'' with the values provided in the wizard above. To use DHCP in future goto the ''Administration - Network Tab'' and under TCP/IP select ''DHCP'' for configuration and press ''Next''. On the following page deselect the tick box against ''Require vendor specific cookie to accept DHCP Address'' and ''Apply''. DHCP configuration via the Hostnames and addresses panel in Server-manager should now work.
 +
{{Note box|msg=The /sbin/apctest utility will not work across the network using the ''snmp'' or ''pcnet'' UPSTYPE as it does not have write access. Yo will therefore need to make the necessary configuration settings via the APC UPS web browser interface}}
 +
=====UPSTYPE snmp=====
 +
Edit /etc/apcupsd/apcupsd.conf and set the following
 +
UPSCABLE ether
 +
UPSTYPE snmp
 +
DEVICE ''ipaddress'':161:APC:public
 +
Make any other changes required and save the file.
 +
{{Note box|msg=''ipaddress'' is the IP address assigned to the UPS. The default port is ''161'', default vendor is ''APC'' and default community is ''public''}}
 +
Continue as above in the ''Configure apcupsd'' section
 +
=====UPSTYPE pcnet=====
 +
For this UPSTYPE to work you will need to make some changes to the NMC via the web browser interface first
 +
 +
Under the UPS tab, goto ''PowerChute - Configuration''. Enter an ''Authentication Phrase'' (This must be at least 15 characters long to be valid)
 +
such as
 +
My hidden auth phrase
 +
and ''Apply''
 +
 +
Now under ''PowerChute - Clients'' press ''Add Clients''. On the subsequent page add the IP address of your server that will be momitoring the UPS and ''Apply''
 +
 +
Edit /etc/apcupsd/apcupsd.conf and set the following
 +
UPSCABLE ether
 +
UPSTYPE pcnet
 +
DEVICE ''ipaddress'':apc:''AuthPhrase''
 +
Make any other changes required and save the file.
 +
{{Note box|msg=''ipaddress'' is the IP address assigned to the UPS. The default user is ''apc'' (and apparently can't be changed), and the ''AuthPhrase'' is the Authentication Phrase as set above}}
 +
Continue as above in the ''Configure apcupsd'' section
 +
 
===Configure Multimon etc Scripts===
 
===Configure Multimon etc Scripts===
 
The apcupsd-multimon rpm contains four cgi scripts that can be run via the webserver to monitor the UPS(s). The rpm does not install them correctly for SME however so the following modifications are needed.
 
The apcupsd-multimon rpm contains four cgi scripts that can be run via the webserver to monitor the UPS(s). The rpm does not install them correctly for SME however so the following modifications are needed.

Navigation menu