ONTAP 9.14.1 commands

volume snapshot autodelete show

Display autodelete settings

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The volume snapshot autodelete show command displays information about Snapshot autodelete policies. The command output depends on the parameters specified with the command. If no parameters are specified, the command displays a table with the following information about all the available Snapshot autodelete policies:

  • Vserver name

  • Volume name

  • Option name

  • Option value

To display a detailed list view with additional information, run the command and select the -instance view. The detailed list view provides the following information:

  • Vserver name

  • Volume name

  • Enabled

  • Commitment

  • Defer Delete

  • Delete Order

  • Defer Delete Prefix

  • Target Free Space

  • Trigger

  • Destroy List

  • Is Constituent Volume

By using the -fields option you can choose to print only the certain fields in the output. This presents the selected fields in a table view. This is ideal when you want additional information to be different from the information that is provided by the default table view, but would like it in a format which is visually easy to compare.

You can specify additional parameters to display the information that matches only those parameters. For example, to display information only about Snapshot autodelete policies which are enabled, run the command with -enabled true parameter. If you specify multiple filtering parameters, only those policies that match all the specified parameters are displayed.

Parameters

{ [-fields <fieldname>,…​]

This option allows you to print only certain fields in the output.

| [-instance ] }

This option allows you to print a detailed list view.

[-vserver <vserver name>] - Vserver Name

If this parameter and the -volume parameter are specified, the command displays detailed autodelete policy information about the specified volume. If this parameter is specified by itself, the command displays autodelete policy information about volumes on the specified Vserver.

[-volume <volume name>] - Volume Name

If this parameter and the -vserver parameter are specified, the command displays detailed autodelete policy information about the specified volume. If this parameter is specified by itself, the command displays autodelete policy information about all volumes matching the specified name.

[-enabled {true|false}] - Enabled

If this parameter is specified, the command displays information about autodelete policies that match the specified parameter value.

[-commitment {try|disrupt|destroy}] - Commitment

If this parameter is specified, the command displays information about autodelete policies that match the specified commitment value.

[-defer-delete {scheduled|user_created|prefix|none}] - Defer Delete

If this parameter is specified, the command displays information about autodelete policies that match the specified defer deletion criterion.

[-delete-order {newest_first|oldest_first}] - Delete Order

If this parameter is specified, the command displays information about autodelete policies that match the specified deletion order.

[-defer-delete-prefix <text>] - Defer Delete Prefix

If this parameter is specified, the command displays information about autodelete policies that match the prefix used for deferring deletion.

[-target-free-space <percent>] - Target Free Space

If this parameter is specified, the command displays information about autodelete policies that match the specified target free space.

[-trigger {volume|snap_reserve|(DEPRECATED)-space_reserve}] - Trigger

If this parameter is specified, the command displays information about autodelete policies that match the specified trigger condition.

[-destroy-list <text>] - Destroy List

If this parameter is specified, the command displays information about autodelete policies that match the specified value.

[-is-constituent {true|false}] - Is Constituent Volume

If this parameter is specified, the command displays information about autodelete policies for the constituent volumes of FlexGroups.

Examples

The following example displays Snapshot autodelete policy settings for volume vol3 which is inside the Vserver vs0:

cluster1::> volume snapshot autodelete show -vserver vs0 -volume vol3

Vserver    Volume          Option Name         Option Value
--------- --------------  ------------------  ---------------------
vs0       vol3
                                     Enabled  false
                                  Commitment  try
                                     Trigger  volume
                           Target Free Space  20%
                                Delete Order  oldest_first
                                Defer Delete  user_created
                         Defer Delete Prefix  (not specified)
                                Destroy List  none
Top of Page