-
Notifications
You must be signed in to change notification settings - Fork 4
zdtmsg
Details on zdtmsg:
zdtmsg is a simple utility that is a substitute for the zPDT command oprmsg. The problem with oprmsg is that after you logoff the USERID that started the emulator the oprmsg command will no longer send you responses to your z/OS commands. zdtmsg resolves this problem. If you use zdtmsg while still having the initial login session that issued awsstart active, then you will get duplicate output responses and in this case there is no need to use zdtmsg.
Use zdtmsg in the same way you would oprmsg, except I have a -w argument which allows user to wait specified seconds for messages. This argument is ignored unless you have Python 3.3 or greater.
Examples:
zdtmsg 'd a,l' - get display of active address spaces in z/OS.
zdtmsg 'v 0a80,offline' - vary device offline
zdtmsg 'd iplinfo' - obtain IPL Information
zdtmsg 'd ios,config(all)' -w 5 - using -w to wait longer for messages (5 seconds)
Usage Notes:
zdtmsg is not a long-running connection to the console log. It will attempt to retrieve responses to your commands from the console log file.
If you use zdtmsg but are still logged on as the USERID that issued awsstart then you will receive duplicate responses to your commands.
You may receive MORE than just the responses from your command. This typically might happen if there are alot of other unrelated messages being written to the console log at the same time your command is processed.
zdtmsg "tails" the console log file and if you enter a command that produces more than 200 lines of output then you will NOT see your results.
If you specify a long wait time using -w .. you can break out of the display using CTRL-C