This procedure explains how to create and verify and HCON AUTOLOG script.
e789 z or xhcon z
SYSdanvm1the suffix danvm1 is equivalent to the NodeID variable.
Note: The /usr/lib/hcon directory provides three sample AUTOLOG scripts: SYSvm1, SYSvm2, and SYStso. The directory also contains the logform file, which shows the format of the genprof command menu.
tlog zIf the host logon ID is not specified in the session profile, the tlog command prompts for the logon ID string and password. Otherwise, the program only prompts for the password. Enter the logon ID string in the following format:
UserID,NodeID,trace,time=ValueFor example:
grace,danvm1,trace,time=5where: /usr/lib/hcon directory. If the AUTOLOG script is not found there, the AUTOLOG procedure displays an error message.
The following example shows an AUTOLOG script that logs on to a CMS system while passing through multiple host systems. The AUTOLOG script can be generated using either the genprof or hconutil commands.
In EVENT 1 , the system searches for TEST MVS Test ESA on the host screen. If the system finds the PROMPT , then testvm is input to the host system and entered. Control is then passed to EVENT 2 . All events are processed until the AUTOLOG procedure is complete.
NODE ID : HOSTSYSB LOGON STARTS : 1_ LOGOFF STARTS : 11 EVENT PROMPT INPUT KEY NEXT EVENTS 1 TEST MVS Test ESA_ testvm________ ENT(1) 2_ __ __ __ __ __ 2 HOSTSYSC__________ ______________ NEW(2) 3_ __ __ __ __ __ 3 HOSTSYSC__________ d pvm________ ENT(1) 4_ __ __ __ __ __ 4 PASS-THROUGH______ HOSTSYSB______ ENT(1) 5_ __ __ __ __ __ 5 HOSTSYSB__________ &id___________ ______ 6_ __ __ __ __ __ 6 HOSTSYSB__________ &pw___________ ENT(1) 7_ __ __ __ __ __ 7 VM READ___________ ______________ ENT(1) 8_ 9_ __ __ __ __ 8 HOLDING___________ ______________ CLE 0_ __ __ __ __ __ 9 CP READ___________ logoff________ ENT(1) 4_ __ __ __ __ __ 10 __________________ ______________ ______ __ __ __ __ __ __ 11 Press one of the__ logoff________ ENT(1) 12 __ __ __ __ __ 12 PASS-THROUGH______ ______________ PA1___ 13 __ __ __ __ __ 13 PRESS ENTER KEY___ ______________ ENT(1) 14 __ __ __ __ __ 14 USERID____________ ______________ NEW(2) 15 __ __ __ __ __ 15 COMMAND___________ VMEXIT________ ENT(1) 0_ __ __ __ __ __