|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`zos-console issue command definition should not have changed 1`] = ` |
| 4 | +Object { |
| 5 | + "aliases": Array [ |
| 6 | + "cmd", |
| 7 | + ], |
| 8 | + "description": "Issue a z/OS console command and print command responses (known as \\"solicited command responses\\"). |
| 9 | +
|
| 10 | +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. |
| 11 | +
|
| 12 | +Zowe CLI will issue \\"follow-up\\" API requests by default to collect any additional outstanding solicited command responses until a request returns no additional responses. At that time, Zowe CLI will attempt a final collection attempt. If no messages are present, the command is complete. If additional messages are present, the process is repeated. However, this does not guarantee that all messages produced in direct response (i.e. solicited) have been collected. The z/OS application may produce additional messages in direct response to your command at some point in the future. You can manually collect additional responses using the \\"command response key\\" OR specify additional processing options to, for example, delay collection attempts by a specified interval.", |
| 13 | + "examples": Array [ |
| 14 | + Object { |
| 15 | + "description": "Issue a z/OS console command to display the IPL information for the system", |
| 16 | + "options": "\\"D IPLINFO\\"", |
| 17 | + }, |
| 18 | + Object { |
| 19 | + "description": "Issue a z/OS console command to display the local and coordinated universal time and date", |
| 20 | + "options": "\\"D T\\"", |
| 21 | + }, |
| 22 | + Object { |
| 23 | + "description": "Issue a Db2 command to display information about the status and configuration of DDF", |
| 24 | + "options": "\\"\\\\-DB1G DISPLAY DDF\\"", |
| 25 | + }, |
| 26 | + ], |
| 27 | + "name": "command", |
| 28 | + "options": Array [ |
| 29 | + Object { |
| 30 | + "aliases": Array [ |
| 31 | + "cn", |
| 32 | + "c", |
| 33 | + ], |
| 34 | + "allowableValues": Object { |
| 35 | + "caseSensitive": false, |
| 36 | + "values": Array [ |
| 37 | + "^[a-zA-Z0-9]+$", |
| 38 | + ], |
| 39 | + }, |
| 40 | + "description": "The name of the z/OS extended MCS console to direct the command. You must have the required authority to access the console specified. You may also specify an arbitrary name, if your installation allows dynamic creation of consoles with arbitrary names.", |
| 41 | + "name": "console-name", |
| 42 | + "type": "string", |
| 43 | + }, |
| 44 | + Object { |
| 45 | + "aliases": Array [ |
| 46 | + "id", |
| 47 | + "i", |
| 48 | + ], |
| 49 | + "description": "Include additional details at the end of the Zowe CLI command response, such as the \\"command response key\\" and the z/OSMF command response URL.", |
| 50 | + "name": "include-details", |
| 51 | + "type": "boolean", |
| 52 | + }, |
| 53 | + Object { |
| 54 | + "aliases": Array [ |
| 55 | + "ko", |
| 56 | + "k", |
| 57 | + ], |
| 58 | + "description": "Displays only the \\"command response key\\" returned from the z/OSMF console API. You can collect additional messages using the command key with 'zowe zos-console collect sync-responses <key>'. Note that when using this option, you will not be presented with the \\"first set\\" of command response messages (if present in the API response). However, you can view them by using the --response-format-json option.", |
| 59 | + "name": "key-only", |
| 60 | + "type": "boolean", |
| 61 | + }, |
| 62 | + Object { |
| 63 | + "aliases": Array [ |
| 64 | + "rf", |
| 65 | + "r", |
| 66 | + ], |
| 67 | + "conflictsWith": Array [ |
| 68 | + "wait-to-collect", |
| 69 | + ], |
| 70 | + "description": "Indicates that Zowe CLI should return immediately with the response message set returned in the first z/OSMF API request (even if no responses are present). Using this option may result in partial or no response, but quicker Zowe CLI command response time. The z/OSMF console API has an implicit wait when collecting the first set of console command responses, i.e you will normally receive at least one set of response messages.", |
| 71 | + "name": "return-first", |
| 72 | + "type": "boolean", |
| 73 | + }, |
| 74 | + Object { |
| 75 | + "aliases": Array [ |
| 76 | + "sk", |
| 77 | + "s", |
| 78 | + ], |
| 79 | + "description": "For solicited responses (direct command responses) the response is considered complete if the keyword specified is present. If the keyword is detected, the command will immediately return, meaning the full command response may not be provided. The key only applies to the first request issued, follow up requests do not support searching for the keyword.", |
| 80 | + "name": "solicited-keyword", |
| 81 | + "type": "string", |
| 82 | + }, |
| 83 | + Object { |
| 84 | + "aliases": Array [ |
| 85 | + "ss", |
| 86 | + "sys", |
| 87 | + ], |
| 88 | + "description": "Specifies the z/OS system (LPAR) in the current SYSPLEX (where your target z/OSMF resides) to route the z/OS console command.", |
| 89 | + "name": "sysplex-system", |
| 90 | + "type": "string", |
| 91 | + }, |
| 92 | + Object { |
| 93 | + "aliases": Array [ |
| 94 | + "wtc", |
| 95 | + "w", |
| 96 | + ], |
| 97 | + "conflictsWith": Array [ |
| 98 | + "return-first", |
| 99 | + ], |
| 100 | + "description": "Indicates that Zowe CLI wait at least the specified number of seconds before attempting to collect additional solicited response messages. If additional messages are collected on \\"follow-up\\" requests, the timer is reset until an attempt is made that results in no additional response messages.", |
| 101 | + "name": "wait-to-collect", |
| 102 | + "type": "number", |
| 103 | + }, |
| 104 | + Object { |
| 105 | + "aliases": Array [ |
| 106 | + "fua", |
| 107 | + "a", |
| 108 | + ], |
| 109 | + "defaultValue": "1", |
| 110 | + "description": "Number of request attempts if no response returned.", |
| 111 | + "name": "follow-up-attempts", |
| 112 | + "type": "number", |
| 113 | + }, |
| 114 | + ], |
| 115 | + "positionals": Array [ |
| 116 | + Object { |
| 117 | + "description": "The z/OS console command to issue.", |
| 118 | + "name": "commandtext", |
| 119 | + "required": true, |
| 120 | + "type": "string", |
| 121 | + }, |
| 122 | + ], |
| 123 | + "profile": Object { |
| 124 | + "optional": Array [ |
| 125 | + "zosmf", |
| 126 | + ], |
| 127 | + }, |
| 128 | + "summary": "Issue a z/OS console command and print the response", |
| 129 | + "type": "command", |
| 130 | +} |
| 131 | +`; |
0 commit comments