The sdcli commands consist of three input parameters, which must be specified in the correct order, followed by one or more command-line switches. You can specify the command-line switches in any order.
Before you begin
When you use the sdcli command-line utility on a Windows 2008 server, keep the following information in mind:
- You must be logged in as Administrator, or as a user with administrative rights.
- If you log in as a user other than the one used to install SnapDrive, you must update the SnapDrive service credentials with the new user information and restart the SnapDrive service.
About this task
Command-line switches are case-sensitive. For instance, the -d switch refers to a single drive letter, while the -D switch refers to one or more drive letters separated by spaces.
Steps
- Using a host that has SnapDrive installed, select .
- Type cmdin the dialog box entry field, and then click OK.
- After the Windows command prompt window opens, navigate to the directory on your host where SnapDrive is installed.
Example
C:
cd \Program Files\NetApp\SnapDrive\
- Enter the individual command you want to run. Make sure to include all input parameters in the proper order and to specify both required and desired command-line switches in any order.
Example
sdcli disk disconnect -d R
Alternatively, enter the name and path of the automation script you want to run.
Example
C:\SnapDrive Scripts\disconnect_R_from_host4.bat