Using automation to monitor IBM zAware connections
This appendix provides a sample REXX exec that can be used by your z/OS system automation product to query the status of the System Logger connections to the IBM zAware application.
Querying the status of connections to IBM zAware
System Logger issues a variety of IXG3xx messages when it is starting or stopping its connections to the IBM zAware application. It is advisable to add those messages to your automation.
Additionally, you might also want to perform periodic checks of the connections to ensure that they are working as expected.
To verify that a connection is active, you can create a special monitor routine that performs the following actions:
1. Issue the following command:
D LOGGER,C,LSN=operlogLogStream,D
2. Capture the response message IXG601I, which is a MLWTO.
3. Locate the following string:
ZAI CLIENT:
4. Scan that line to see if it contains the status CONNECTED or QUIESCED.
a. If it finds CONNECTED, end the monitor with an ok return code.
b. If it finds anything else, for example, QUIESCED, change the state of the resource to FAILED.
If using NetView, this routine can be performed with the sample REXX program shown in Figure C-1.
/*----------------------------REXX--------------------------------*/
parse source . . ident . .
say ident||': Started....'
'PIPE CC D LOGGER,c,lsn=sysplex.operlog,d',
' | SEP',
' | LOCATE /ZAI CLIENT:/',
' | EDIT WORD 5.3 N',
' | VAR CMDOUT'
 
'PIPE CC D LOGGER,STATUS,ZAI',
' | SEP',
' | LOCATE /SERVER/',
' | EDIT WORD 2.4 N',
' | VAR ZAIOUT'
 
if cmdout = 'YES - CONNECTED' then
do
/* Add command to update the status to available. */
say ident|| ': Connection to zAware is connected. Parms: 'zaiout
rc = 0
end
else
do
/* Add command to update status to failed. */
say ident|| ': Connection to zAware is quiesced. Parms: 'zaiout
rc = 8
end
exit rc
Figure C-1 NetView REXX to check LOGGER connection to IBM zAware application
 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.104.95