How to programmatically initiate power down on another partition?

10 pts.
Tags:
AS/400
AS/400 administration
AS/400 development
UPS
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • graybeard52
    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 pointsBadges:
    report
  • WilsonAlano
    Hi, You can use RUNRMTCMD or SBMRMTCMD to run a CL on yor logical partition. Regards, Wilson
    2,485 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following