Table of ContentsLibraryView in Frames

Executing sdcli commands

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, you must be logged in as Administrator, not as a user with administrative rights.

Considerations

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

  1. Using a host that has SnapDrive installed, select Start > Run.
  2. Type cmdin the dialog box entry field, and then click OK.
  3. 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\

  4. 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