|
NAMEapcpwr —
control power on/off/reboot via an APC MasterSwitch
SYNOPSIS
DESCRIPTIONTheapcpwr utility is used to control power to systems
connected to an APC MasterSwitch power distribution unit. The following option
is available for script usage:
COMMANDSThe commands recognized byapcpwr are as follows:
EXAMPLESThe following command:
produces a table listing all managed MasterSwitch units, the device name attached to each outlet, and it's status. pdu1 (172.21.251.251) 1: triangle On 2: 8ball On 3: 9ball On 4: cueball On 5: avail-5 On 6: avail-6 On 7: avail-7 On 8: admin On
will turn off power for the system attached to pdu1, outlet 8, for
(a default of) 5 seconds, and then automatically turn the power back on.
Since the Are you sure? [y|N]: will be printed to standard output and a positive response required before the operation will continue.
A sample /etc/crontab entry to build the .db file via the probe command is: # # Create /var/db/apcpwr.db # 0 21 * * * root /usr/local/bin/apcpwr probe > /dev/null FILES
SEE ALSOsnmpwalk(8), snmpget(8), snmpset(8)CAVEATSThese utilities are based upon the netsnmp port. Other snmp packages may work but are untested.The MIB file POWERNET344_MIB.txt is not required to use this port. However, if you with to debug this utility it must be copied from the provided media CD which came with the unit and installed into the correct MIB directory (in this instance: /usr/local/share/snmp/mibs).
Visit the GSP FreeBSD Man Page Interface. |