List a message or a set of messages from Canzlog.
Usage
zowe znetview-base list canzlog <requestType> [options]
Positional Arguments
Options
-
--begin
| --beg
(string)
-
The specific time for the request type 'timestamp' or the start time for the request type 'timerange', in format of "mm/dd/yy hh:mm:ss".
Note: It is required for the request types 'timerange' and 'timestamp'.
-
--direction
| --dir
(string)
-
Specifies which direction, backward or forward, for which to retrieve additional Canzlog messages.
Note: This is valid for request types 'czid', 'timestamp'.
Default value: fwd
Allowed values: fwd, bwd
-
--domain
| -D
(string)
-
--end
(string)
-
The end time for the request type time range, in format of "mm/dd/yy hh:mm:ss".
Note: It is required for the request type 'timerange'.
-
--id
(number)
-
--number
| --num
(string)
-
Specifies the number of messages to retrieve.
Note: This is valid for request types 'czid', 'timestamp' and 'recent'.
Default value: 1
-
--show-details
| --sd
(boolean)
NetView Connection Options
-
--host
| -H
(string)
- The host name of your NetView REST Server.
-
--port
| -P
(number)
- The port number of your NetView REST Server.
-
--user
| -u
(string)
- The user name to authenticate to your NetView REST Server.
-
--password
| --pw
(string)
- The password to authenticate to your NetView REST Server.
-
--token-type
| --tt
(string)
- The type of the token to authenticate to your NetView REST Server. The only token type that is valid when using NetView REST Server authentication is JSESSIONID.
-
--token-value
| --tv
(string)
- The value of the token to authenticate to your NetView REST Server.
-
--base-path
| --bp
(string)
-
The base path for your Zowe API Mediation Layer instance. Specify this option to prepend the base path to NetView REST service when making REST requests to the Zowe API Mediation Layer.
Note: Do not specify this option if you are not using the Zowe API Mediation Layer.
Profile Options
Base Connection Options
-
--reject-unauthorized
| --ru
(boolean)
-
--cert-file
(local file path)
- The file path to a certificate file to use for authentication
-
--cert-key-file
(local file path)
- The file path to a certificate key file to use for authentication
Examples
-
List 3 Canzlog messages starting with the message specified by czid and retrieving the next 2 messages for domain CNM01:
zowe znetview-base list canzlog czid --id 237766 --direction fwd --number 3 --domain CNM01
-
List 4 Canzlog messages starting with the message specified by the timestamp and retrieving the previous 3 messages for domain CNM01:
zowe znetview-base list canzlog timestamp --begin "09/10/20 00:00:00" --direction bwd --number 4 --domain CNM01
-
List Canzlog messages specified by the timerange for domain CNM01:
zowe znetview-base list canzlog timerange –-begin "09/10/20 00:00:00" --end "09/10/20 00:10:00" --domain CNM01
-
List the 2 most recent Canzlog messages for domain CNM01:
zowe znetview-base list canzlog recent --number 2 --domain CNM01