Shutdown Solaris 9 with UPS
I hope anyone could help me with this:
I have an Uninterruptible Power Supply (UPS) System. For this type of units, there is what so called Shutdown Software, this software to be installed on a computer that is connected with the UPS in the same network and to receive a signal from the UPS for some specific conditions, for the UPS I have, it sends 4 signals to the software, first is when there is an AC Power Failure, second is when the AC power is recovered, third is when there is a low battery alarm due to AC failure, and the forth is when the UPS recovers from low battery condition.
For the UPS I have, there is no software to shutdown the Solaris 9 Server I have, so the manufacturer of the UPS sent me a software to install on a Windows 2003 Server, and through the telnet option of the software, I can send a shutdown signal to the Solaris Server and shut it down whenever the software installed on Windows 2003 gets one of the four signals above.
Now, the problem I am facing is with the command line the Windows 2003 Server sends through telnet to the Solaris 9 server, it seems that it has a problem, because when I simulate an AC power failure, the Windows 2003 sends a signal to the Solaris 9 and the Solaris displays a message saying it will be brough down in 1 minute, but after some seconds it displays another message saying that it was a false alarm and it wont be brought down, when consulting a Solaris expert, he told me that the problem is with the command line itself, I tried modifying it, but unfortunately, I am not a professional Solaris user, so can anyone help me modifying the mentioned herein below command line, and thanks in advance.
The Command Line is:
[ACFail]
WaitFor1=login
Send1=root
WaitFor2=Password
Send2=root
WaitFor3=root@
Send3=su
WaitFor4=Password
Send4=root
WaitFor5=root@
Send5=/sbin/shutdown -h %PowerFailShutDownTime% AC Fail
WaitFor6=root@
Send6=exit
WaitFor7=root@
Send7=exit
[RecoverACFail]
WaitFor1=login
Send1=root
WaitFor2=Password
Send2=root
WaitFor3=root@
Send3=su
WaitFor4=Password
Send4=root
WaitFor5=root@
Send5=/sbin/shutdown -c AC Fail Recovered
WaitFor6=root@
Send6=exit
WaitFor7=root@
Send7=exit
[LowBattery]
WaitFor1=login
Send1=root
WaitFor2=Password
Send2=root
WaitFor3=root@
Send3=su
WaitFor4=Password
Send4=root
WaitFor5=root@
Send5=/sbin/shutdown -h %BatteryLowShutDownTime% Low Battery
WaitFor6=root@
Send6=exit
WaitFor7=root@
Send7=exit
[RecoverLowBattery]
WaitFor1=login
Send1=root
WaitFor2=Password
Send2=root
WaitFor3=root@
Send3=su
WaitFor4=Password
Send4=root
WaitFor5=root@
Send5=/sbin/shutdown -c Low Battery Recovered
WaitFor6=root@
Send6=exit
WaitFor7=root@
Send7=exit
End of Command Line...
Notes: 1- I'm logged in the Solaris server as a root.
2- the path in the command herein above "/sbin/shutdown" is wrong, i tried modifying it to "/usr/sbin/shutdown" before it gave right communication between the two servers.
3- even the command itself is wrong, there is no such command as shutdown -h or -c, so i also modified it be "shutdown -i0" in all the lines.
Thanks again for any available help