Automated Testing

Automated Testing

Automated Testing

Build an automated testing process to enable continuous integration of your hybrid cloud applications including z/OS

 View Only
  • 1.  Automatically shutdown RDzUT

    Posted Tue May 17, 2011 03:58 AM
    Hello everyone,

    We are trying to figure out if there is any possible way of automatically shutdown RDzUT. We haven't found anything yet, and that's why we are asking here for help.

    We would like to shutdown automatically the RDzUT periodically so that we could do automatically backups and copy disks with new info in the RDzUT.

    Is there any way to do it? Maybe by bash script? Maybe even in the own RDzUT?

    Thank you very much, and best regards,
    Edurne


  • 2.  Re: Automatically shutdown RDzUT

    Posted Fri June 09, 2017 06:21 AM

    Although this thread is very old and unanswered, I'd like to push it a little.

     

    I'm looking for a way to initiate a z/OS shutdown from the surrounding Linux OR from a remote system (via FTP job submit for example). Is there any way to do that? 

     

     

    unsavvy


  • 3.  Re: Automatically shutdown RDzUT

    Posted Fri June 09, 2017 10:35 AM

    Hi Metin,

    You will find how to shut down the z/OS and the zPDT (awsstop) in the link: https://www.ibm.com/support/knowledgecenter/SSTQBD_10.0.1/com.ibm.zsys.rdt.guide.adcd.doc/topics/starting.html

    You can develop additional process to start the regular and prepared shut down started tasks as your convenience.

     

     

    AdilsonColombo


  • 4.  Re: Automatically shutdown RDzUT

    Posted Fri June 09, 2017 11:09 AM

    Thanks for your reply! However, the link just tells me that I should shutdown z/OS cleanly before issuing awsstop. I am wondering how I can do this from the Linux side under which the z1090 machine runs. I hope to do this from within a script.

    I tried oprmsg, but the console does not accept my commands. I was unable to activate that feature from the console because of authorization problems which I was unable to resolve:

    VARY CN(*),ACTIVATE

    IEE345I VARY CN  AUTHORITY INVALID, FAILED BY MVS

     

     

    unsavvy


  • 5.  Re: Automatically shutdown RDzUT

    Posted Fri June 09, 2017 11:25 AM

    Please, take a look at the IBM zPDT Guide and Reference System z Personal Development Tool (SG24-8205-01), sections 4.1.37, 12.17.

     

    AdilsonColombo


  • 6.  Re: Automatically shutdown RDzUT

    Posted Mon June 12, 2017 09:08 AM

    Depends on what you define as "Shutdown."  One could conceivably create a linux script that issues an awsstop command to terminate a emulator session.  We don't generally recommend that because we like you to do an orderly shutdown of z/OS first.  You could use SSH to open a session to z/OS to issue MCSOPER commands to do an orderly shutdown.  The problem comes in when you get to the point where you need to shutdown TCP/IP and thus your SSH session.  You could issue a command to continue the shutdown, but with no TCP/IP connection, you will get no notification that it has completed.  Currently, there is no facility to do this work ie.  an orderly shutdown of z/OS, from linux.

     

    RDzJohn

    RDzJohn


  • 7.  Re: Automatically shutdown RDzUT

    Posted Tue June 13, 2017 05:10 AM

    Thanks to everyone for your replies. Taking into account that, even if I'd manage to issue console commands to initiate the shutdown, it would be difficult to react to any reply messages accordingly, I desist from the idea. 

    The problem is that we want to perform backups from the z files, but they tend to change during backup, probably rendering the backed up files useless.

    The only solutions seems to be to manually shutdown the z1090 before the backup is started.

    unsavvy


  • 8.  Re: Automatically shutdown RDzUT

    Posted Tue June 20, 2017 11:19 AM

    Hi All,

    You can use below command to activate and deactivate the console.

     

    oprmsg 'vary cn(*),activate'

    oprmsg 'vary cn(*),deactivate'

    I tried to create the Linux bash as below.

    #!/bin/bash
    pf=`oprmsg V 'CN(*),ACTIVATE'`
    `oprmsg "$1"`
    sleep 2
    pf=`oprmsg V 'CN(*),DEACTIVATE'`

     

    Please see the document, If you want console messages to capture

     

    ZDTNeeraj