10 pts.
 How to programmatically initiate power down on another partition?
We are running a partitioned i5 with a UPS. We need to initiate a program controlled power down of the secondary partition from the primary partition after being notified by the UPS that the external power has failed. Then, once the secondary partition has or is about to shut down, perform a similar program controlled shut down of the primary. Using a Remote Command from the primary, we can submit a job on the secondary. But how can we programmatically determine the status of the secondary partition from the primary?

Software/Hardware used:
ASKED: March 24, 2009  10:11 PM
UPDATED: May 4, 2009  10:15 PM

Answer Wiki:
Not a clue, actually. The references I've been reading are all about manually ending the partitions. But I've got a few ideas. I'm assuming that you are running a fairly simple monitoring program that looks at the UPS message queue to determine the UPS status. The "standard" procedure is to run in a timed loop and if after "X" time initiate the power down. ( "X" being determined by how long it takes to shut down and what your UPS capacity is.) So, at some point in this timed loop you are running the remote command to shut down partition #2. Assuming you issued a pwrdwnsys controlled with a lime limit for the partition, you can probably make a guess as to how long it takes to shut down that partition. And, at some point after that you shut down the primary. You could also have your secondary partition shutdown insure that all "user" programs have ended normally, then send an acknowledgement to the primary that it is about to shut down. You could also do something simple like PING the secondary partition - but that only really tells you that the TCPIP services are down, not the partition. There is likely some API for it - commercial programs like R
Last Wiki Answer Submitted:  March 25, 2009  4:41 pm  by  mcl   2,725 pts.
All Answer Wiki Contributors:  mcl   2,725 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

One way is to create a program that does the sutdown and anything else you need, then have the other partition start the job. You could use FTP for this purpose, as well as sending a message back at some pint.

 3,115 pts.

 

Hi,

You can use RUNRMTCMD or SBMRMTCMD to run a CL on yor logical partition.

Regards,
Wilson

 2,385 pts.