lssafeguardedpolicy

Use the lssafeguardedpolicy command to list the Safeguarded policies.

Syntax

Read syntax diagramSkip visual syntax diagram lssafeguardedpolicy -filtervalueattribute=value-delimdelimiter-filtervalue?safeguarded_policy_idsafeguarded_policy_name

Parameters

-filtervalue attribute=value
(Optional) Specifies a list of one or more filters. Only objects with a value that matches the filter attribute value are returned. If a capacity is specified, the units must also be included.
Note: Some filters allow the use of a wildcard when you enter the command. The following rules apply to the use of wildcards when you use the command-line interface (CLI):
  • The wildcard character is an asterisk (*).
  • The command can contain a maximum of one wildcard, which must be the first or last character in the string.
  • When you use a wildcard, you must enclose the filter entry within double quotation marks (""), as shown in the following command:
    lssafeguardedpolicy -filtervalue  "name=md*"
-delim delimiter
(Optional) By default in a concise view, all columns of data are space-separated. The width of each column is set to the maximum width of each item of data. In a detailed view, each item of data has its own row, and if the headers are displayed, the data is separated from the header by a space. The -delim parameter overrides this behavior. Valid input for the -delim parameter is a 1-byte character. If you enter -delim : on the command line, the colon character (:) separates all items of data in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data is separated from its header by the specified delimiter.
-filtervalue?
Displays a list of valid filter attributes. The following filters for the lssafeguardedpolicy command are valid:
  • id
  • name
  • volume_group_count

For more information about filtering attributes, see Attributes of the -filtervalue parameters.

safeguarded_policy_id | safeguarded_policy_name
(Required) The ID or name of the Safeguarded policies.

Description

Use this command to display a concise list or a detailed view of the Safeguarded policies.

Note: The concise view list displays predefined Safeguarded policies first.

This table provides the attribute values that can be displayed as output view data.

Table 1. lssafeguardedpolicy output
Attribute Description
id Indicates the system defined ID of the Safeguarded policies.
name Indicates the name of the Safeguarded policies.
volume_group_count Indicates the number of volume groups that are associated with the Safeguarded policies.
schedule_id Indicates the schedule_id of the Safeguarded policies.
backup_unit Indicates the unit of time of the backup_interval.
backup_interval Indicates the interval between the Safeguarded backups.
backup_start_time Indicates the time of the Safeguarded backups.
retention_days Indicates the number of days to keep the Safeguarded backups.

A concise invocation example showing four Safeguarded policies

lssafeguardedpolicy

The concise resulting output:


id:name:volume_group_count
0:predefinedsgpolicy0:0
1:predefinedsgpolicy1:0
2:predefinedsgpolicy2:0
3:sgpolicy0:2

A detailed invocation example

lssafeguardedpolicy 3

The detailed resulting output:


id 3
name sgpolicy3
volume_group_count 4

schedule_id 1
backup_unit minute
backup_interval 30
backup_start_time 210904000000
retention_days 5