Look in the Getting Started with Linux on System z book, chapter 9. That may have what you want.
David Dean Information Systems *bcbstauthorized* ________________________________ From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On Behalf Of Martin, Terry R. (CMS/CTR) (CTR) Sent: Wednesday, October 08, 2008 8:49 AM To: [email protected] Subject: Re: Need some help with REXX EXEC If we are just re-booting we just INIT6 on the Linux guest. I am setting up something so that when we take everything down for maintenance and such I want to do it from VM. Thank You, Terry Martin Lockheed Martin - Information Technology z/OS & z/VM Systems - Performance and Tuning Cell - 443 632-4191 Work - 410 786-0386 [EMAIL PROTECTED] ________________________________ From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On Behalf Of Macioce, Larry Sent: Wednesday, October 08, 2008 7:07 AM To: [email protected] Subject: Re: Need some help with REXX EXEC Why not just use cron and issue a shutdown ? mace ________________________________ From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On Behalf Of Davis, Larry Sent: Tuesday, October 07, 2008 5:24 PM To: [email protected] Subject: Re: Need some help with REXX EXEC If you use the signal facility the Linux image will shutdown and VM will wait for it to shutdown prior to completing VM's own shutdown process. Larry ________________________________ From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On Behalf Of Martin, Terry R. (CMS/CTR) (CTR) Sent: Tuesday, October 07, 2008 4:41 PM To: [email protected] Subject: Need some help with REXX EXEC Hi I am trying to write a REXX exec to shutdown my z/Linux guests. I am having trouble figuring out a couple of things: 'MAKEBUF' RC = 0 DO FOREVER; /* WILL GET MESSAGES UNTIL GUEST DOWN */ 'WAKEUP (IUCVMSG QUIET' /* MESSAGE HAS ARRIVED */ PARSE PULL MSG /* GET RETURNED MESSAGE*/ /* PARSE VAR MSG TYPE F1 F2 MSGID F3 GUEST REST */ IF RC = 6 THEN /*IF RC = 5 & TYPE = '*CP', */ /* & (MSGID = 'HCPSIG2113I'| MSGID = 'HCPSIG2112I') THEN */ DO IF FUNCTION = 'SHUTDOWN' THEN First, I am not seeing the Shutdown message coming back to the BUFFER (MAKEBUF). I would like to parse the message to make sure it is the message I am looking for. I did a QUEUED on the BUFFER and there was nothing on the STACK. Any ideas why or even if this message should/is not coming back to the BUFFER? Second, After I receive the HCPSIG2112I message that says the guest has been shutdown, and I check and it has, but instead of dropping into the code it just sits there in RUNNING and I need to hit the ENTER key to get going again. Is there something I need or can do to simulate the ENTER KEY. Note: All of the code is not shown here! Thank You, Terry Martin Lockheed Martin - Information Technology z/OS & z/VM Systems - Performance and Tuning Cell - 443 632-4191 Work - 410 786-0386 [EMAIL PROTECTED] ________________________________ ******************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. ******************************************************************** Please see the following link for the BlueCross BlueShield of Tennessee E-mail disclaimer: http://www.bcbst.com/email_disclaimer.shtm
