Many of the sdcli commands share command-line switches.
| Switch | Description |
|---|---|
| -d | The drive letter, mount point, volume name, or CSV reparse point of the LUN. If sdcli cannot find the drive letter specified through the -d switch, it displays a list of all LUNs connected to the host. |
| -D | A list of drive letters or mount points separated by spaces. |
| -dtype | The drive type (shared or dedicated). |
| -e | The name of an existing MSCS resource group, which is required only if the LUN is shared among MSCS nodes. |
| -i | The initiator name.
|
| -I | The list of hosts and initiators. Separate the character strings that specify hosts and initiators with spaces. To specify the host, you can use either an IP address (nnn.nnn.nnn.nnn) or a machine name recognized by the domain controller. To specify the initiator, type the appropriate WWPN, which you can determine through the lputilnt.exe utility supplied with your FC HBA Attach Kit. After you launch lputilnt.exe, navigate to and select “16 - World-Wide Name” in the Region field. The available WWPNs appear in the list box directly beneath the Region field. When MPIO is running, you can specify up to four node-initiator pairs. The first NodeMachineName in the cluster applies to two of the available initiator WWPNs; the other NodeMachineName applies to the remaining pair of initiator WWPNs. |
| -IG | The list of node machine names and existing igroup names, in pairs. One pair is required for dedicated disks. Two pairs are required for shared disks (at least one pair for each cluster node). |
| -m | The host on which the operation is executed. You can use an IP address or a machine name to identify the host. |
| -n | The name and description of an MSCS cluster resource group to be created as part of the associated command. This switch is required only if you need to create an MSCS cluster resource group to facilitate the sharing of a LUN among MSCS cluster nodes. |
| -np | The IP address and port of the network portal on the iSCSI connection target. |
| -p | The storage system path to the location of the LUN on the storage system. This string takes the following form: storagesystemname:/vol/volname/[qtree]/lun for a storage system path. |
| -z | Specifies the size (in megabytes) of a new LUN—or the number of megabytes by which an existing LUN is to be expanded. The minimum size for MBR partition-style LUNs is 32 MB and the minimum for GPT style LUNs is 64 MB. The maximum sizes vary according to the remaining available space in your volume. |