Shutdown UPS by command line
I want to know about UPSes from American Power Conversion
I have a Smart-UPS RT 6000 XL connected with a Linux Server by network cable and a Network Management Card 2 AP9631.
I have too a Smart-UPS 3000 XL connected with another Linux Server by 940-0127E FCI cable (USB).
My whole system is based in Linux OS (Fedora).
My problem is: I want to know how I can, by command line (by terminal, shell), shutdown these two UPSes.
I've tried PowerChute, but PC Server and Console Edition run just in Windows, right?
By the way, i'd want a command that I could turn on the UPSes, after they be shutted down, just pressing the power button(by physical way).
Thank you all!!
(Sorry about my english, its very defective)
(I want to do this for protection's issues)
I don't believe you can shut down the UPS's (unless the battery dies) via terminal. I may be wrong though. I'll have to do a little more research.
Most solutions out there allow the UPS to gracefully shut down the servers/desktops when power has failed and/or has not been restored after a period of time. Some examples of this include the following which you can look into:
upsmon(8): UPS monitor/shutdown controller - Linux man page
Apcupsd, a daemon for controlling APC UPSes
APCUPSD User Manual
You might also want to look into sending SNMP commands to the 6000 via the network. You'd use 'snmpset' from the netsnmp tools. But you'll probably have to install an APC MIB and work out the correct OID first... this method isn't as simple.
read.pdf use thier software for network management and have UPS on a lan of the computer you want to control
Hey, thanks for the answer!
Well, heres my entire problem: I need to shutdown a few servers AND the two UPSes when the temperature get high in the room.
(Understood? sorry about the english lol)
BUUUUT, I just have Linux OSes. I have no Windows for the Server or Console PowerChute.
About the AP9631 command lines, there is a command(ups -c off) that just turn the OUTPUT POWER off. Could this be a shutdown command?
|All times are GMT -7. The time now is 10:53 PM.|