SnapDrive CLI

 

 

SnapDrive CLI – An introduction and guide

 

Command Set

sdcli sysconfig Performs operations related to SnapDrive configuration
sdcli disk Performs operations on LUNs
sdcli snap Performs operations on snapshot copies
sdcli snapvault Performs operations on a snapvault archive
sdcli iscsi_initiator Performs operations on iSCSI initiators
sdcli iscsi_target Performs operations on iSCSI targets
sdcli license Performs operations on licenses
sdcli preferredIP Performs operations on preferred IP addresses
sdcli spacemon Performs operations on space reservations monitor
sdcli igroup Performs operations on Initiator group
sdcli spacereclaimer Performs operations on Space Reclamation
sdcli transport_protocol Performs operations related to transport protocol configuration
sdcli dfm_config Performs operations related to SnapDrive DFM configuration

 

 

 

sdcli sysconfig

The sysconfig command performs operations related to SnapDrive configuration.

 

 

 

sdcli disk

 

The disk command performs operations on LUNs.

 

sub commands:

 

sdcli disk
create Creates LUN
delete Deletes LUN
connect Connects LUN
disconnect Disconnects LUN
expand Expands LUN
list Lists LUN
add_initiator Adds(maps) a new initiator to the LUN
remove_initiator Removes(unmaps) an initiator from the LUN
add_mount Add mount point for the specified volume
remove_mount Remove mount point for the specified volume

 

 

 

 

sdcli disk create

 

sdcli disk create [-m <MachineName>] -d <MountPoint> -p {<LUNPath> | <UNCPath>} [-rs <Reserve Snapshot Copy Space {y | n}>] -z <DriveSize> [-I (<NodeMachineName> <InitiatorName>)+ ]|[ -IG (<NodeMachineName> <igroupName>)+ ] -dtype {shared | dedicated} [-description <LUN Description>] {[-e <“ResourceGroupName”>] | [-n <“ResourceGroupName”> [“ResourceGroupDesc”]]}

 

sdcli disk delete:

 

 

sdcli disk delete [-m <MachineName>] {-p {<LUNPath> | <UNCPath>} | -d <MountPoint>}

 

sdcli disk connect:

 

 

sdcli disk connect [-m <MachineName>]  -p {<LUNPath> | <UNCPath>} -d <MountPoint> [-s Snapshot Copy Name] [-I (<NodeMachineName> <InitiatorName>)…]|[ -IG (<NodeMachineName> <igroupName>)… ]  -dtype {shared | dedicated} [-description <LUN Description>] {[-e <“ResourceGroupName”>] | [-n <“ResourceGroupName”> [“ResourceGroupDesc”]]} [-c <“ClusterName”>]

 

sdcli disk disconnect

 

 

sdcli disk disconnect [-m <MachineName>] {-p {<LUNPath> | <UNCPath>} | -d <MountPoint>} [-f]

 

sdcli disk expand:

 

 

sdcli disk expand [-m <MachineName>] {-p {<LUNPath> | <UNCPath>} | -d <MountPoint>} -z <DriveSizeIncrement> [-rs <Reserve Snapshot Copy Space {y | n}>]

 

 

sdcli disk list

 

 

 

sdcli add_initiator:

 

 

sdcli disk add_initiator [-m <MachineName>] -p {<LUNPath> | <UNCPath>} -i <InitiatorPortName>

 or

sdcli disk add_initiator [-m <MachineName>] -d <Mount Point> -i <InitiatorPortName>

 

sdcli remove_initiator:

 

 

 

sdcli disk remove_initiator [-m <MachineName>] -p {<LUNPath> | <UNCPath>} -i <InitiatorPortName>

 or

sdcli disk remove_initiator [-m <MachineName>] -d <Mount Point> -i <InitiatorPortName>

 

 

sdcli add_mount:

 

 

sdcli disk add_mount [-m <MachineName>] -vn <Volume Name> -mp <Volume Mount Point> [-create_folder]

 

 

sdcli remove_mount:

 

 

sdcli disk remove_mount [-m <MachineName>] -vn <Volume Name> -mp <Volume Mount Point>

 

 

sdcli snap

sdcli snap create Creates new snapshot copy of the LUNs
delete Deletes existing snapshot copy of a LUN
restore Restores a LUN  from a  snapshot copy
rename Renames existing napshot copy of a LUN
list Enumerates snapshot copies of a LUN
mount A snapshot copy of a LUN named <LiveMountPoint>, which is mounted on the machine will be mounted
unmount ommand as a LUN <MountPoint> on the machine <MachineName>.
update_mirror Updates destinations of a SnapMirrored LUN
mirror_list Creates new snapshot copy of the LUNs
restore_volume_check Verifies possibility of volume restore operation on non-connected LUNs
restore_volume Performs volume restore operation on non-connected LUNs

 

 

 

 

sdcli snap create

 

sdcli snap create  [-m <MachineName>] -s <SnapshotName> -D <MountPointList> […] [-x] [-u [yes|no]]

Example: Snap create

 

sdcli snap create -m vcenter -s test -D z:\

snap list

 

sdcli snap list [-m <MachineName>] {-d <MountPoint> | -sdf <Storage System> -sdv <volume> | -D <MountPointList> }

Example: Snap list

 

 

 

sdcli snap delete

 

sdcli snap delete [-m <MachineName>] -d <MountPoint> -s <SnapshotName>

Example: snap delete

 

 

 

sdcli snap restore 

 

sdcli snap restore [-m <MachineName>] -d <MountPoint> -s <SnapshotName>

 

sdcli snap rename

 

sdcli snap rename [-m <MachineName>] -d <MountPoint>  -o <OldSnapshotName> -n <NewSnapshotName>

Example: snap rename

 

 

 

sdcli snap mount

 

sdcli snap mount [-m <MachineName>] [-r <LiveMachineName>] -k <LiveMountPoint> -s <SnapshotName> -d <MountPoint> [-smdest][-trydrive][-sdf <Storage System>][-sdv <Volume>]

 

sdcli snap unmount

 

sdcli snap unmount [-m <MachineName>] -d <MountPoint> [-f]

 

sdcli snap update_mirror

 

sdcli snap update_mirror [-m <MachineName>] -d <MountPoint>

 

sdcli snap mirror_list

 

sdcli snap create  [-m <MachineName>] -s <SnapshotName> -D <MountPointList> […] [-x] [-u [yes|no]]

 

sdcli snap restore_volume_check   

 

sdcli snap restore_volume_check -f <StorageSystemName> -volume <StorageSystemVolumeName> -s <SnapshotName> [-m <MachineName>]

sdcli snap resore_volume

 

sdcli snap restore_volume -f <StorageSystemName> -volume <StorageSystemVolumeName> -s <SnapshotName> [-force] [-m <MachineName>]

 

sdcli SnapVault

The snapvault command performs operations on a snapvault archive.

 

sdcli snapvault verify_configuration Verifies the correctness of the SnapVault configuration through a set of specified GUIDs, or a set of mountpoints
snapshot_rename Renames a snapshot copy
snapshot_delete Deletes existing snapshot copy on a SnapVault Secondary
archive Archives the backup set
relationship_status Gets the relationship status of the primary system mapped to the disk specified
snap_list Gets the list of snapshot copies on the volume specified by the mountpoint or GUID on the Snapvault secondary system

 

 

sdcli snapvault verify_configuration

 

sdcli snapvault verify_configuration [-m <MachineName>] {-D <MountPointList> […] | -G <DiskGUIDList> […] }

sdcli snapvault snapshot_rename

 

sdcli snapvault snapshot_rename [-m <MachineName>] -o <OldName> -n <NewName> {-d <MountPoint> | -g <Guid>}

 

sdcli snapvault snapshot_delete

 

sdcli snapvault snapshot_delete [-m <MachineName>] {-d <MountPoint> | -g <Guid>} -a <ArchivalSnapshotName>

 

sdcli snapvault archive

 

sdcli snapvault archive [-m <MachineName>] [-force] -a <ArchivalSnapshotName> -DS <MountPointAndSnapshotList>  […]

 

sdcli snapvault relationship_status

 

sdcli snapvault relationship_status [-m <MachineName>] {-D <MountPointList> | -G <DiskGuidList>}

 

sdcli snapvault snap_list

 

sdcli snapvault snap_list [-m <MachineName>] {-d <MountPoint> | -g <Guid>}

 

sdcli iscsi_initiator

The iscsi_initiator command performs operations on iSCSI initiators.

sdcli iscsi_initiator list Enumerates iSCSI sessions
establish_session Establishes a session with a target using specified HBA.
terminate_session Terminates the session

 

 

sdcli isci_initiator list

 

Example: sdcli scsi_initiator list

 

 

sdcli scsi_initiator establish_session

 

sdcli iscsi_initiator establish_session [-m <MachineName>] [-h <HBA_ID>] [-hp <HBA Portal ID>] -t <TargetName> -np <IPAddress> <IPPort>  [-c <CHAPName> <CHAPPassword>]

 

sdcli scsi_initiator terminate_session

 

sdcli iscsi_initiator terminate_session [-m <MachineName>] -s <Session_ID>

sdcli iscsi_target

 

The iscsi_target command performs operations on iSCSI targets.

sdcli iscsi_target list Enumerates iSCSI targets
disconnect Disconnects all sessions with the iSCSI target

 

 

 

 

sdcli iscsi_target list

 

 

sdcli iscsi_target list -f <Storage System>

 

sdcli iscsi_target disconnect

 

 

sdcli iscsi_target disconnect [-m <MachineName>] -t <TargetName>

 

sdcli license

The license command performs operations on licenses.

sdcli license list List the current licenses
set Set new license key for specified module

 

 

 

sdcli license list

 

 

sdcli license set

 

sdcli license set -module <ModuleName> -key <LicenseKey>

 

sdcli preferredIP

 

The preferredIP command performs operations on preferred IP addresses.

sdcli preferredIP list List the preferred IP address
set Sets new preferred IP address for specified storage system
delete Deletes preferred IP address for specified storage system

 

 

sdcli preferredIP list

 

sdcli preferredIP set

 

sdcli preferredIP set -f <Storage System> -IP <Preferred IP Address>

 

sdcli preferredIP delete

 

sdcli preferredIP delete -f <Storage System>

 

sdcli spacemon

The spacemon command performs operations on space reservations monitor.

sdcli spacemon list List space reservation monitor settings
set Sets space  reservation monitor settings for a storage system volume
delete Deletes space reservation monitor settings for specified storage system volume
snap_delta Get the size delta between the given snapshot copies or active file system
snap_reclaimable Get the size that can be reclaimed by deleting the given snapshot copy
vol_info Lists LUN information in xml format

 

sdcli spacemon list

 

 

sdcli spacemon set

 

sdcli spacemon set -mi <Monitoring Interval In Minutes> -f <Storage System> -vn <Volume Name> [-m <MachineName>]

sdcli spacemon delete

 

sdcli spacemon delete -f <Storage System> -vn <Volume Name> [-m <MachineName>]

 

sdcli spacemon snap_delta

 

sdcli spacemon snap_delta -f <Storage System> -vn <Volume Name> -s1 <SnapshotCopy1> [-s2 <SnapshotCopy2>] [-m <MachineName>]

 

sdcli spacemon snap_reclaimable

 

sdcli spacemon snap_reclaimable -f <Storage System> -vn <Volume Name> -s <Snapshot Copy Name> [-m <MachineName>]

 

sdcli spacemon vol_info

Example: vol info

 

 

 

sdcli igroup

The igroup command performs operations on Initiator group.

sdcli igroup list Lists the igroups
create Creates new Initiator group
rename Renames the Initiator group
delete Deletes Initiator group if no LUN is mapped to it

 

 

 

sdcli igroup create

 

sdcli igroup create [-m <MachineName>] -f <Storage System> [-I (<MachineName> <InitiatorName>)+ ] -ig <igroupName>

 

sdcli igroup rename

 

sdcli igroup rename [-m <MachineName>] -f <Storage System> -ig <igroupName>  -igNew <igroupNewName>

 

sdcli igroup delete

 

sdcli igroup delete [-m <MachineName>] -f <Storage System> -ig <igroupName>

 

sdcli spacereclaimer

The spacereclaimer command performs operations on Space Reclamation.

sdcli spacereclaimer start Starts Space Reclamation operation on the mount point specified
stop Stops Space Reclamation operation on the mount point specified
analyze Checks if Space Reclamation operation is needed or not for the specified mount point
status Displays spacereclaimer status

 

sdcli spacereclaimer start

 

sdcli spacereclaimer start [-m <MachineName>] -d <MountPoint> [-t <TimetoRun>]

 

sdcli spacereclaimer stop

 

sdcli spacereclaimer stop [-m <MachineName>] -d <MountPoint>

 

sdcli spacereclaimer analyze

 

sdcli spacereclaimer analyze [-m <MachineName>] -d <MountPoint>

 

sdcli spacereclaimer status

 

 

sdcli transport_protocol

The transport_protocol command performs operations related to transport protocol configuration.

sdcli transport_protocol list Lists all protocols used
set Add or modify a protocol
delete Delete a protocol

 

sdcli transport_protocol list

 

 

sdcli transport_protocol set

 

 

sdcli transport_protocol set [-m <MachineName>] { -f <StorageSystem> | -default } -type {HTTPS|HTTP|RPC} [-port <port>] [-user <UserName>] [-pwd <Password>]

 

sdcli transport_protocol delete

 

 

sdcli transport_protocol delete [-m <MachineName>] {-f <StorageSystem> | -default }

 

sdcli dfm_config

The dfm_config command performs operations related to SnapDrive DFM configuration.

sdcli dfm_config list Lists DFM servers
set set credentials for a DFM server
delete Delete the DFM server entry with the given host name

 

sdcli dfm_config list

 

 

sdcli dfm_config set

 

sdcli dfm_config set -host <Host> -user <User> -pwd <Password> [-port <Port>] [-type <HTTP|HTTPS>]

 

sdcli dfm_config delete

 

sdcli dfm_config delete -host <Host> -user <User>

 

 

 

Leave a Reply


Hit Counter provided by technology news