HP StorageWorks SAN Virtualization Services Platform Manager Command Line Interface User Guide (5697-0936, May 2011)

6. Find branch of PiTs of snapshot “PiT1.
Run the ListPiTsChain command with the input “snapshot1.
The output is an ordered list “PiT4, PiT5, PiT11.
7. Find branch of PiTs of “PiT4.
Run the ListPiTsChain command with the input “PiT4.
The output is an ordered list “PiT5, PiT11.
8. Find branch of PiTs of “PiT12.
Run the ListPiTsChain command with the input “PiT12.
The output is an empty list.
9. Find all direct snapshots of “PiT1.
Run the ListSnapshotsChain command with the input “PiT1.
The output is an unordered list of “snapshot1, snapshot5.
10. Find the source of an object (snapshot or PiT).
Run the GetSnapshotData command for the required snapshot or PiT object.
The returned source name holds the name of the source.
For PiT: PiT, snapshot, or virtual disk
For snapshot: PiT
The returned name also returns a flag (iSourceIsVirtualDisk) that is set (!=1) if the source is a
virtual disk. For example:
GetSnapshotData for “PiT4” returns “snapshot1” in the source virtual disk name field.
GetSnapshotData for “snapshot1,” “snapshot5” returns “PiT1” in the source virtual
disk name field.
GetSnapshotData for “PiT1” returns “VirtualDisk1” in the source virtual disk name
field.
11. Find the tree root, traversing the hierarchy upwards
There are three alternatives:
To find the source virtual disk of a PiT or snapshot, run the GetSnapshotData command
(step 10). The name of its source virtual disk is one of the returned arguments.
Recursively run the GetSnapshotData command (step 10) until the iSourceIsVirtualDisk
flag is set (!=0). For example, source node is a virtual disk.
Recursively run the GetSnapshotData command (step 10) until the source virtual disk
name is the required name or the source name is a root virtual disk from the virtual disk
list (see step1).
12. Find all leaf PiTs and snapshots (last in the chain).
a. Run the ListSnapshots command.
b. Run the ListPiTsChain command for every snapshot and PiT returned in step a.
c. Return all objects that return an empty list in step b.
13. Traverse the subtree starting from a specified node (snapshot, for example).
Retrieve the PiTs chain for the input node (run the ListPiTsChain command with the input
snapshot1,” as in step 6). For each PiT, retrieve the snapshots chain (run the
ListSnapshotsChain command, as in step 9). For each snapshot, recursively do it again,
up to the end of the list or an empty list.
63