lssnapshotclones
Use the lssnapshotclones command to display the snapshots with recovery relationships for a specified session. This command is for Spectrum Virtualize sessions that might have one or more sets of recovered snapshots.
Syntax
Parameters
- -help | -h | -?
- Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
- -s | -l
- Specifies the default and detailed command output, which is the same in this case. Displays the
following detailed information:
Column label Details Snapshot ID Identification for the snapshot. Snapshot Name Name for the snapshot. Snapshot Time Timestamp for when the snapshot was taken. Session Name The name of the session. isError Whether the recovered snapshot has an error. Copy Sets The number of copysets in the snapshot. - -fmt { default | xml | delim | stanza }
- Specifies the format of the output. You can specify one of these values:
- default
- Specifies that the output is displayed in tabular format using spaces as delimiters between columns. This is the default value.
- xml
- Specifies that the output is displayed in XML format.
- delim
- Specifies that output is displayed in a tabular format using commas as delimiters between columns.
- stanza
- Specifies that the output is displayed as one keyword-value pair per line.
- -p { on | off }
- Specifies whether to display one page of text at a time or all text at once.
- on
- Displays one page of text at a time. Pressing any key displays the next page. This is the default value when the command is run in interactive mode.
- off
- Displays all text at once. This is the default value when the command is run in single-shot mode.
- -hdr { on | off }
- Specifies whether to display the table header. You can specify one of these values:
- on
- Displays the table header. This is the default value.
- off
- Hides the table header.
- -v { on | off }
- Specifies whether to enable verbose mode. You can specify one of these values:
- on
- Enables verbose mode.
- off
- Disables verbose mode. This is the default value.
- -session_name |-
- Specifies the name of the session that is used to display snapshots.
Example: Listing recovered backups for a given session
The following command lists the recovered backups for a given session:
csmcli> lsnapshotclones MySnapshots
The following output is returned:
Snapshot Time Snapshot ID Snapshot Name Session Name isError Copy Sets ==================================================================================================== 2021-04-21 13:17:22 CDT 1619029157 snapshot1 MySnapshots No 5 2021-04-21 13:17:57 CDT 1619029190 snapshot2 MySnapshots No 5