Mike,
I tried my idea and it is too late in the process.

Ivan suggested the secondary user, is that available at 5.2?

xautolog pcpc                
Command accepted             
Ready; T=0.01/0.01 16:51:01  
PCPC    : HCPLNM108E PCPC ABCD not linked; volid NOTFND not mounted             
                     
PCPC    : HCPLNM053E DOCO not in CP directory                                   
                     
AUTO LOGON  ***       PCPC     USERS = 23                                       
                     
HCPCLS6056I XAUTOLOG information for PCPC: The IPL command is verified by the 
IPL command processor. 
PCPC    : z/VM V5.4.0    
PCPC    : DMSACP113S B(169) not attached or invalid device address              
                     
PCPC    : RDR FILE 0028 SENT FROM PCPC     CON WAS 0028 RECS 0001 CPY  001 T 
NOHOLD NOKEEP           
PCPC    : Ready; T=0.01/0.01 16:51:01                                           
                     
HCPQCS150A User PCPC has issued a VM read                                       
                     
                                                                                
                      

  ----- Original Message ----- 
  From: Horlick, Michael 
  To: IBMVM@LISTSERV.UARK.EDU 
  Sent: Monday, March 01, 2010 15:42
  Subject: Re: Trapping output right after LOGON


  Hello Doug,

   

  I do have a shared PROFILE EXEC that sets up the environment before the IPL 
of z/VSE in each of the VSE users. Changing the exec to validate that each 
machine has the minidisks it requires is more prone to error then having CP 
tell me that something is amiss at LOGON time. 

   

  Thanks,  

   

  Mike Horlick

  Conseiller

  CGI Gestion Intégrée des Technologies

  1350 Boul. René-Lévesque Ouest

  Montréal, Qc, H3G 1T4


------------------------------------------------------------------------------

  From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On 
Behalf Of Doug Shupe
  Sent: March 1, 2010 3:28 PM
  To: IBMVM@LISTSERV.UARK.EDU
  Subject: Re: Trapping output right after LOGON

   

  Mike,

  You could have one or many of your VSE guests IPL CMS in the directory and 
have them all point to a shared RR 191 mini disk. Then customize a PROFILE EXEC 
to do the CP 'whatever' and then, determine what to really IPL based on USERID. 

  Sorry its not REXX, old stuff.

   

  PROFILE EXEC:

  &TRACE

  CP SP CONSOLE START *                                                        
  DROPBUF &BUFNO                                               
  MAKEBUF                                                      
  &BUFNO = &RC                                                 
  EXECIO * CP ( MARGINS 1 8  STRING QUERY USERID               
  &IF &RC NE 0 &CALL -ERROR &RC                                
  &READ STRING &ME                                             
  &IF &ME    EQ VSEID     &GOTO -VSEID                         
  CP MSG OP USER &ME ATTEMPTED TO USE SHAREIPL. NOT DEFINED.   
  &GOTO -EXIT                                                  
  -VSEID                                                       
  EXEC VSEID &ME                                               
  &GOTO -EXIT                                                  
  -ERROR                                                       
  &RC = &1                                                     
  &READ STRING &LERROR                                         
  &TYPE &0 PROBLEM OCCURED TRYING INQUIRY ON USERID.           
  &TYPE &0 &LERROR                                             
  &EXIT &RC                                                    
  -EXIT                                                        
  &EXIT 999 

  ====================

  VSEID EXEC:                                                       

  &TRACE ALL                                                  
  &ME = &1                                                    
  CP SET RUN ON  

  *                              ************************************* 
  *  >>>  CAUTION  <<<           * THE FOLLOWING COMMAND HAS X'15'   * 
  *  >>>  CAUTION  <<<           * BETWEEN THE WORDS GUEST AND IPL.  * 
  *  >>>  CAUTION  <<<           * ISSUE THE 'SET HEX ON' COMMAND    * 
  *  >>>  CAUTION  <<<           * BEFORE CHANGING THIS LINE.        * 
  *                              *************************************

  *    EACH COMMAND MUST BE FOLLOWED BY A X'15'.                        * 
  *    TO ACCOMPLISH THIS;                                              * 
  *        1). SET HEX ON                                               * 
  *        2). KEY THE COMMANDS(LEAVING 2 SPACES BETWEEN EACH) ON 1 LINE* 
  *        3). BRING THE LINE JUST KEYED TO THE CURRENT LINE.           * 
  *        4). CH /X'4040'/X'15'/1 N   (N = THE NUMBER OF COMMANDS)     * 
  *        5). FILE                                                     * *     
                                       
  CP TERM CONM 3270 BRE GUEST"IPL 1A6 CLEAR                 
  * CP TERM CONM 3270 BRE GUEST"IPL 1A7 CLEAR LOADPARM ....T  
  * CP TERM CONM 3270 BRE GUEST"IPL 1A7 CLEAR LOADPARM .....  
  CP MSG OP IPL FAILED FOR &ME  RC= &RC                       
  EXIT &RC

  ==================

  Regards, Doug                                                                 
             

    ----- Original Message ----- 

    From: Horlick, Michael 

    To: IBMVM@LISTSERV.UARK.EDU 

    Sent: Monday, March 01, 2010 14:52

    Subject: Re: Trapping output right after LOGON

     

    What do you mean by « Changing LINK to COMMAND LINK may help, that's for 
sure.  I have MDISK statements for my VSE minidisks.

    Also, we run VM:Operator and not PROP. One of the guys in our automation 
group set up VM:Operator and I wonder if he knows how to handle output right 
from an XAUTOLOG of a virtual machine.   

     

    Mike Horlick

    Conseiller

    CGI Gestion Intégrée des Technologies

    1350 Boul. René-Lévesque Ouest

    Montréal, Qc, H3G 1T4


----------------------------------------------------------------------------

    From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On 
Behalf Of Kris Buelens
    Sent: March 1, 2010 2:00 PM
    To: IBMVM@LISTSERV.UARK.EDU
    Subject: Re: Trapping output right after LOGON

     

    Mike, I think I tried COMMAND SPOOL CONS START but COMMANDs seem to be 
executed after the devices are set up, hence too late to catch problems with 
MDISK statements.
    Changing LINK to COMMAND LINK may help, that's for sure.

    2010/3/1 Mike Walter <mike.wal...@hewitt.com>

    Look up the directory "COMMAND" statement in the CP Planning and
    Administration manual.

    E.g. In the CP Directory entry for each VM userid for which you want the
    virtual console started as the VM is constructed the line:

    COMMAND SPOOL CONSOLE START

    Only CP commands may be entered into the CP Directory for users.  You may
    specify any CP command argument.  More details in the manual.

    Mike Walter
    Hewitt Associates
    The opinions expressed herein are mine alone, not my employer's.




    "Horlick, Michael" <michael.horl...@cgi.com>

    Sent by: "The IBM z/VM Operating System" <IBMVM@LISTSERV.UARK.EDU>
    03/01/2010 12:41 PM
    Please respond to
    "The IBM z/VM Operating System" <IBMVM@LISTSERV.UARK.EDU>




    To
    IBMVM@LISTSERV.UARK.EDU

    cc


    Subject
    Trapping output right after LOGON






    Greetings,

    I would like to trap all the CP console output from a virtual machine from
    its initial XAUTOLOG/LOGON. I have several z/VSE machines which are
    XAUTOLOGed on by the operator. Reason?  In rare instances, maybe a pack is
    not attached to the system which contains some minidisks used by these
    machines. I know there could be a message such as:

    HCPLNM108E MIKE A194 not linked; volid XT160D not mounted

    For a test I have changed a virtual machine CONSOLE statement in its
    directory to CONSOLE 009 T MIKE OBS and I get all messages after the user
    logs on. I would like to programmatically trap these messages from a
    disconnected service machine so that it can be detected. Tried WAKEUP but
    no luck.

    Suggestions?

    Mike Horlick
    Conseiller
    CGI Gestion Intégrée des Technologies
    1350 Boul. René-Lévesque Ouest
    Montréal, Qc, H3G 1T4





    The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, or if this 
message has been addressed to you in error, please immediately alert the sender 
by reply e-mail and then delete this message, including any attachments. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. All messages 
sent to and from this e-mail address may be monitored as permitted by 
applicable law and regulations to ensure compliance with our internal policies 
and to protect our business. E-mails are not secure and cannot be guaranteed to 
be error free as they can be intercepted, amended, lost or destroyed, or 
contain viruses. You are deemed to have accepted these risks if you communicate 
with us by e-mail.




    -- 
    Kris Buelens,
    IBM Belgium, VM customer support

Reply via email to