What level of z/VM and Linux are you using? If you are at the right level
then a #CP SIGNAL SHUTDOWN <user> WITHIN <nn> will get your guests to
shutdown (if the /etc/inittab has the right stuff in it).

Otherwise, assuming root is logged on to the console:

'CP SET SECUSER <linuxguy>'
CPRc = DIAG(8,'CP SEND <linuxguy> shutdown -h 5')
'CP SET SECUSER <linuxguy> RESET'

else

'CP SET SECUSER <linuxguy>'
CPRc = DIAG(8,'root')
'CP SL 1 SEC'
CPRc = DIAG(8,'<password>')
'CP SL 1 SEC'
CPRc = DIAG(8,'CP SEND <linuxguy> shutdown -h 5')
'CP SET SECUSER <linuxguy> RESET'


-----Original Message-----
on occassion, we need to do a poweron/reset of our z800.  I would like a
way to issue a 'shutdown -h 5' command to each linux guest from a vm
exec.  Can this be done?  If someone has done this, would they be
willing to share the code?
tia, Scorch

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to