Table of ContentsLibraryView in Frames

Data ONTAP command-line interface commands in SnapLock

The following table lists the SnapLock command-line interface commands.

Input name Description
snaplock help [cmd] Shows the command-line interface help.
vol create trad_vol -v -L snaplock_type ndisks [@disksize] Creates a SnapLock traditional volume.
aggr create aggrname -L snaplock_type ndisks [@disksize] Creates a SnapLock aggregate.
vol create wormvol aggrname size [k |m |g |t] Creates a SnapLock FlexVol volumes.
vol status vol_name Displays the status of a volume.
vol destroy vol_name Destroys the SnapLock volume.
vol status -w Displays the expiry date of a SnapLock Compliance volume.
vol offline vol_name Makes the volume offline.
vol clone create -f The -f flag is used to force the creation of clone on SnapLock volumes.
aggr status aggrname Displays the status of an aggregate.
options snaplock.compliance.write_verify on Enables SnapLock write verification.
date -c initialize Initializes the ComplianceClock.
date -c Displays the ComplianceClock.
options snaplock.autocommit_period none| (count|h|d|m|y) Sets the autocommit time delay.
options snaplock.autocommit_period Displays the autocommit time delay.
snaplock log archive vol [basename] Archives active SnapLock log file basename if basename is specified. Otherwise archives all active SnapLock log files on volume vol and replaces with new one.
snaplock log volume [-f] vol Sets the SnapLock log volume to vol.
snaplock log volume Displays the current SnapLock log volume
snaplock log status vol [basename] Displays the status of active SnapLock log file basename if the basename is specified. Otherwise shows status of all active SnapLock log files on volume vol.
options snaplock.log.maximum_size Displays the maximum permissible size of the log file.
snaplock options vol privdel on Sets the state on of privileged delete option on the SnapLock Enterprise volume vol. Enables the privileged delete functionality.
snaplock options vol privdel off Sets the state off of privileged delete option on the SnapLock Enterprise volume vol.
snaplock options -f vol privdel disallowed Sets the state disallowed of privileged delete option on the SnapLock Enterprise volume vol. The -f flag is required to set the state to disallowed to prevent operator error. The -f flag is ignored if it is used to set the option to any other state.
snaplock options vol privdel Shows the state of the privileged delete option on the SnapLock Enterprise volume.The state can be either on, off, or disallowed.
snaplock privdel [-f] path Deletes unexpired files on a SnapLock Enterprise volume. The -f flag proceeds the command without interactive confirmation from the user.
file fingerprint [-a {MD5|SHA-256}] [-m ] [-d] [-x] path Calculates the fingerprint of the file using MD-5 or SHA-256 digest algorithm

-a specifies algorithm

-m specifies metadata fingerprint calculation

-d specifies data fingerprint calculation

-x to display the output in XML format