The z/OSMF console REST APIs return a "solicited response key" after
successfully issuing a synchronous console command that produces solicited
responses. You can use the "solicited response key"on the "sync-responses"
command to collect any additional outstanding solicited responses from the
console the command was issued.
In general, when issuing a z/OS console command, z/OS applications route
responses to the originating console. The command response messages are
referred to as "solicited command responses" (i.e. direct responses to the
command issued). When issuing a z/OS console command using Zowe CLI, collection
of all solicited command responses is attempted by default. However, there is
no z/OS mechanism that indicates the total number of response messages that may
be produced from a given command. Therefore, the Zowe CLI console APIs return a
"solicited response key" that can be used to "follow-up" and collect any
additional solicited command responses.
Usage
zowe zos-console collect sync-responses <responsekey> [options]
Positional Arguments
responsekey (string)
- The "solicited response key" provided in response to a previously issued console
command. Used by the z/OSMF console API to collect any additional outstanding
solicited responses from a previously issued console command. Must match
regular expression:
^\[a\-zA\-Z0\-9\]\+$
Options
Zosmf Connection Options
--host | -H (string)
- The z/OSMF server host name.
--port | -P (number)
The z/OSMF server port.
Default value: 443
--user | -u (string)
- Mainframe (z/OSMF) user name, which can be the same as your TSO login.
--password | --pass | --pw (string)
- Mainframe (z/OSMF) password, which can be the same as your TSO password.
--reject-unauthorized | --ru (boolean)
--base-path | --bp (string)
- The base path for your API mediation layer instance. Specify this option to
prepend the base path to all z/OSMF resources when making REST requests. Do not
specify this option if you are not using an API mediation layer.
Profile Options
Base Connection Options
Examples