Listsnapshotschain command, Purgepitsorsnapshots command, Waitforobjectcreation command – HP SAN Virtualization Services Platform User Manual

Page 32

Advertising
background image

Examples

ListSnapshots -PiT

ListSnapshots -snapshot

ListSnapshots -Template RootName, -PiT

ListSnapshots -Template RootName, -SyncPiT

ListSnapshots -snapshot, -Template RootName

ListSnapshotsChain

command

Syntax

ListSnapshotsChain -PiT NameOfPiT

Description

Provides a list of all snapshots defined on the specified PiT.

PurgePiTsOrSnapshots

command

Syntax

PurgePiTsOrSnapshots -Snapshot | -PiT | -SyncPiT, ~
-Template RootName [ANYSUFFIX], ~
[-Group SyncMirrorGroupName, ] -Keep NumberToKeep

Description

Purges (deletes) old PiT or snapshots, provided they all have the same root name (all start with the
same prefix). Their suffix can be any suffix (set with the ANYSUFFIX flag in the command line), or
if their suffix is not set, was automatically created by the VSM API (through the template flag).

PiTs with snapshots on them are not purged. The number to keep may be zero (for example, delete
all).

For synchronous mirror PiTs, you must provide the name of the synchronous mirror group on which
the synchronous mirror PiTs are created.

Examples

PurgePiTsOrSnapshots -PiT, -Template MyPiT, -Keep 3

PurgePiTsOrSnapshots -SyncPiT, -Template SyncMirror_PiT AnySuffix, ~
-Group SyncMirrorGroupName, ] -Keep 1

WaitForObjectCreation

command

Syntax

WaitForObjectCreation -Name Name [LastInstance], ~
-VirtualDisk | -PiT | -Snapshot | -VDGroupPiT | -VDGroupSnapshot |
-UserPiT | -SyncPiT | -SnapcloneVirtualDisk | -Migration, ~
[-task TaskName1, [task TaskName2, ] ] ~
-timeout 900

Description

Waits for a newly created VSM object to become ready for use. Use this command after creating
a VSM object (of a type that is handled by this command) with a zero timeout (so that the CLI
returns without waiting for the object to be ready for use). If the object is created and ready for
use, VSM_OK is returned.

32

Using the VSM command line interface

Advertising