Waitforobjectcreation command – HP SAN Virtualization Services Platform User Manual
Page 39

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.
The following object types are handled, and the associated input names to wait for are:
•
Simple virtual disk: Provide name of the virtual disk.
•
Simple PiT or snapshot: Provide name of PiT or snapshot.
•
VirtualDiskGroup PiT or snapshot: Provide name of the virtual disk group.
•
Async Mirror User PiT: Provide name of PiT.
•
Sync Mirror User PiT: Provide name of PiT.
•
Snapclone virtual disk: Provide name of the snapclone group. (Waits for all the snapclone tasks
to be created.)
•
Migration task to be created: Provide the name of the migration group.
NOTE:
A list of task names is required only if the created object is a snapclone group.
The LastInstance flag may be used with a simple PiT, simple snapshot, mirror user PiT, or sync
mirror PiT (handled like a simple PiT, using the user-provided PiT name as the template name). If the
LastInstance
flag is used, the preceding PiT/snapshot name is the root name, and the most recently
created PiT/snapshot (with a template name) is used.
Examples
WaitForObjectCreation -Name MyVirtualDisk, -VirtualDisk, -timeout 900
WaitForObjectCreation -Name MyPiT LastInstance, ~
-Pit, -timeout 900
WaitForObjectCreation -Name myMigrationGroup, -Migration, -timeout 900
WaitForObjectCreation -Name MySnapcloneGroup, -SnapcloneVirtualDisk,~
-task Task1, -task Task2, -timeout 900
HP StorageWorks SAN Virtualization Services Platform Manager command line interface user
guide
39