C H A P T E R  1

Overview

Use the Sun StorEdgetrademark 3000 Family Command-Line Interface (CLI) to manage Sun StorEdge 3000 family array controllers, examine and configure Sun StorEdge 3000 family arrays, save and restore configuration data, and to download new firmware to array controllers and JBODs. The CLI utility communicates with the storage subsystem using in-band or out-of-band communication with the RAID controller over LVD SCSI, Fibre Channel, or Ethernet connections.



Note - The Sun StorEdge 3120 SCSI array is a standalone JBOD. It does not have a RAID controller or RAID controller firmware to manage the disks. For a list of the available JBOD CLI commands, see JBOD Commands.



For instructions on installing the CLI, refer to the Sun StorEdge 3000 Family Software Installation Guide.

For a complete listing of documentation that corresponds with the CLI utility, see the Installation manual and Sun StorEdge Configuration Service User's Guide for your array.

This chapter introduces the CLI and includes the following topics:


Supported Communication Modes

The CLI provides the capability to monitor and configure Sun StorEdge 3000 arrays from an operating system command-line interface using in-band or out-of-band interfaces.



Note - All methods which involve accessing a local device require superuser privileges. Only when an IP address is specified on the command line can the user invoke the CLI without being root.



The management mode is determined based on the following:



Note - If the array's IP address cannot be found, the --oob option does not switch to out-of-band mode. This prevents scripts from failing when the array's IP address is not set.




Accessing the CLI

In order to access the CLI, it must be installed on the server attached to the array that you want to access. For instructions about installing the CLI, refer to the Sun StorEdge 3000 Family Software Installation Guide. To access the CLI, follow the appropriate procedure for your operating system.



Note - To prevent unauthorized access to administrative functions of the RAID controller, the CLI requires superuser or system administrator privileges for in-band access, and uses the controller password to authorize users of the out-of-band interface.




procedure icon  To Access the CLI from UNIX Operating Systems

1. To access the CLI, log in as root on the server that is attached to the array.

2. Type:

# sccli (with options and commands as described in this guide)



Note - If you do not have /usr/sbin in your PATH environment variable, you can invoke the CLI as /usr/sbin/sccli.




procedure icon  To Access the CLI from Windows Operating Systems

To access the CLI, go to Start right arrow Programs right arrow Sun StorEdge 3000 Family right arrow Command Line Interface. This launches the file located in: c:\program files\sun\sccli\sccli.bat. You can modify this file if you want to change the command-line options passed to the CLI utility.

You can also access the CLI from a command shell. In the shell window, type:

c:\program files\sun\sccli\sccli.exe


Accessing Man Pages

Reference the Man pages and the Release Notes for the latest documentation updates.


procedure icon  To Access the Man Page from UNIX Operating Systems

In Solaris, Linux, HP-UX, and AIX operating systems, to access the Man page, type:

# man sccli


procedure icon  To Access Help from Windows Operating Systems

To access help in Windows, go to Start right arrow Programs right arrow Sun StorEdge 3000 Family right arrow Command Line Help.


Interactive Command Mode

The CLI utility supports single-command mode and interactive mode. In interactive mode no command is specified on the command line. Specifying the device name on the command line is optional. If the device name is omitted, the CLI searches for any locally-attached Sun StorEdge 3000 Family arrays. If one is found, it is selected automatically. If more than one device is found, a list of choices is displayed. If no device is found, the CLI exits with an error.

In interactive mode, specify the device on the command line. For instance, type:

# sccli 192.168.0.1
sccli: selected se3000://206.6.181.38:58632 [Sun StorEdge 3510 SN#00028E]
sccli> show disks free
No disks are free.
sccli> quit

Or you can specify nothing on the command line. For instance, in Solaris, type:

# sccli
Available devices:
	1.	/dev/rdsk/c1t0d0s2	 [SUN StorEdge 3310 00028E]
	2.	/dev/rdsk/c1t1d0s2	 [SUN StorEdge 3310 00028F]
Enter selection: 1
sccli> show events
	:
sccli> quit



Note - In interactive mode, special characters must be enclosed in single or double quotes, which are parsed and stripped off. For example, if you want to set your password to an empty string, specify an empty string by typing two quote characters with nothing in between, such as set password "".




Single-Command Mode

In single-command mode, the name of the target device and the command to execute are specified on the command line. The CLI executes the command and exits.

To start single-command mode, type:

# sccli option [device-name |host-name [:port]] command parameters

TABLE 1-1 Single-Command Syntax

Syntax

Description

device-name

Specify a native operating system device filename for a locally attached SCSI target.

host-name

Specify a controller name or the IP address for the host of the primary agent.

port

Specify a port number for the primary agent on the specified controller or IP address.


 

In single-command mode, type the entire command on the command line. For instance, in Solaris, type:

# sccli /dev/rdsk/c1t0d0s2 show events

For example, in single-command mode in Windows, type:

c:\> sccli \\.\PhysicalDrive3 show events

When the CLI performs a single command, an exit code indicates the success or failure of the command. An exit code of 0 indicates success, and any non-zero code indicates the command failed.


Command Keywords

CLI commands are case-independent. Uppercase, lowercase, or mixed case parameters, commands, and options can be used. Options have a long form and a single-letter form. Options begin with a single dash "-" for single-letter form and with two dashes "--" for long form.

In most cases, you can abbreviate command keywords to the shortest unambiguous substring. For example, abbreviate the show disks command to sh d. For example, type show lds to execute the show logical-drives command. However, to avoid ambiguity, do not abbreviate the command name.

The general syntax for commands in single-command mode is:

# sccli option [device-name | host-name [:port]] command parameters

Except for the help, about, and version commands, all CLI commands require the specification of a device name.

The following table shows the parameters and options that are used with commands in the following chapters. TABLE 1-2 also shows the options that can be used to simplify script creation and retrieve information.

TABLE 1-2 Command Parameters and Options

Parameter or Option

Short Form

Description

ch.id.lun

 

A single host LUN mapping for a logical unit on a host channel can be specified using 3 dotted decimals in this form. Where ch is the physical host channel number, id is the SCSI ID of the logical unit, and lun is the logical unit number.

device

 

For more information, see Device Names for In-band Communication and Device Names for Out-of-Band Communication.

disk

 

Physical disk drives are specified as two decimal integers separated by a period. The first number is the physical channel number, and the second number is the SCSI target ID for the drive on that channel. For example, specify the disk with target ID 1 on channel 2 as 2.1.

--disk disk

-d disk

LVD JBOD enclosure only. This option selects the disk enclosure containing the specified disk. Specify a Solaris device name such as sd31 or c1t0d0. This option is an alternative to specifying an enclosure services device such as /dev/es/sesn when selecting a JBOD enclosure. This option does not support dual-bus JBOD enclosures.

disk-list

 

A list of disk specifiers, separated by commas. For example, 1.0, 1.1, 1.2.

--help, --usage

-h

This option displays a usage message and exits without processing any commands.

This option can also be used as a command. For information about the help command, see help.

inter-controller-link

icl

This command abbreviation, icl, provides an alternative to typing the full command name.

ld-list

 

A comma separated list of logical drive indexes, for example, ld0,ld1,ld2, or a list of logical drive identifiers.

Note that these logical-drive numbers do not necessarily correspond to the single-digit logical drive identifiers in the firmware menu interface. The CLI logical drive indexes might change when logical drives are deleted.

--list

-l

The list option displays a list of local or remote devices that the CLI manages, and exits without processing any commands. The output includes a filename or URL that can be used to access the device in subsequent commands and the SCSI INQUIRY data and serial number of the subsystem. If a network URL is specified on the command line, the output is limited to that device. If a local device filename or directory name is specified, the search is limited to matching devices.

The output includes the device name, vendor, product ID, and serial number.

logical-drive

ld or lds

A logical drive can be represented by a logical drive index (a small decimal number distinguished by an ld prefix), or a logical drive identifier (an eight-digit hexadecimal number). For example, a logical drive might be identified both by its logical drive index ld3 and its logical drive ID 71038221. For additional information, see Logical Drive Syntax.

Note that these logical-drive numbers do not necessarily correspond to the single-digit logical drive identifiers in the firmware menu interface. The CLI logical drive indexes might change when logical drives are deleted.

logical-volume

lv or lvs

Logical volumes are specified using either a logical volume index, such as lv12, or an eight-digit hexadecimal logical volume ID. For additional information, see Logical Volume Syntax.

Note that these logical volume numbers do not necessarily correspond to the single-digit logical volume identifiers in the firmware menu interface. The CLI logical volume indexes might change when logical volumes are deleted.

lun

 

Partitions of a logical drive or logical volume are made available to hosts by mapping each partition to a target ID and logical unit number on one or more channels on the array controller. Commands with a lun parameter accept the physical channel number, target ID, and logical unit as three decimal numbers separated by periods. For example, 4.1.2 represents physical channel 4, target ID 1, logical unit number 2.

lv-list

 

A comma separated list of logical volume indexes, for example, lv0,lv1,lv2, or a list of logical volume identifiers.

Note that these logical volume numbers do not necessarily correspond to the single-digit logical volume identifiers in the firmware menu interface. The CLI logical volume indexes might change when logical volumes are deleted.

--no

-n

Use this option to assume a no response to any yes/no prompts. Use this option to prompt the user before running scripts.

--oob

-o

This option accesses the selected device using out-of-band communication (through its network interface) rather than using SCSI commands. The device is specified (or discovered) using its SCSI path name (do not specify a network address or URL), but once the device has been selected, all further communication is performed over the network. This can provide better performance when the array is processing large quantities of SCSI I/O.

If the IP address for the array cannot be determined, in-band communication is used instead.

partition

 

A logical drive or logical volume identifier with a suffix indicating a specific partition within the logical drive or volume, for example, ld2-03 or 2CA48914-03. The suffix is a hexadecimal number ranging from 0 to 7F.

--password password

-w password

This option specifies the password assigned to the array controller. The user must supply the correct password when issuing potentially dangerous commands to the array over a network connection. For security reasons, it is preferable to supply this password using the CLI password command, or enter the password interactively when prompted for it. No password is required for commands which do not modify the state of the controller, or commands issued using in-band SCSI channels.

--port port

-p port

This option accesses the selected device out-of-band, similar to the --oob option, but using the specified TCP port number.

target-list

 

A comma-separated list of SCSI target ID numbers.

--version

-v

This option displays the version number of the CLI utility and exits without processing any commands.

--yes

-y

This option assumes a yes response to any yes/no prompts. Use this option to run scripts without prompting the user.


Device Names for In-band Communication

For in-band communication, the device name includes the:

For systems using the Solaris operating system, the device name is typically specified as:

/dev/rdsk/cXtYdZs2

In the preceding device name code:

X = controller number

Y = SCSI target number

Z = logical unit number

s2 = slice 2 of the (logical) disk. Usually, slice 2 is specified when identifying a disk for administrative purposes, but any slice number between 0 and 7 (if the slice exists) works.

An example of the device name in Solaris is:

/dev/rdsk/c2t0d0

To access a JBOD enclosure services device using Solaris, specify the device name as shown in the following example, or use the --disk option and specify the name of a disk device within the enclosure.

/dev/es/sesn

For Windows operating systems, the device name is specified using the Windows internal device name for the physical device where N corresponds to the disk number displayed in the Disk Administrator.

\\.\PhysicalDriveN

For example:

PhysicalDrive3



Note - If no device is specified on the command line, and more than one array is connected to the host, a menu of devices is presented with one device filename for each array. If there is only one Sun StorEdge array device connected to the host, that device is selected automatically.



Device Names for Out-of-Band Communication

To access a RAID array using its out-of-band network interface rather than using the SCSI or FC HBA with which the array is connected to the host, specify the --oob option. This option accesses the device using a local HBA only briefly, to retrieve the array's network address, and all subsequent access is done over the network. This is useful when heavy SCSI I/O makes in-band access slow. It can also be used when the host has no path to the primary controller, but can still retrieve the IP address of the array from a LUN mapped from the secondary controller.

Alternately, if the host on which the CLI is running is not connected to the array with a SCSI or FC HBA, a URL can be specified to indicate that the CLI should connect to the remote array over the network.

In out-of-band management, the device name is typically specified as a URL in the format:

[se3000://] hostname-or-address[:port]

TABLE 1-3 Out-of-Band Device Name Syntax

Syntax

Description

[se3000://]

Optionally, use this prefix to ensure that the string that follows is interpreted only as a hostname and not as a device name.

hostname-or-address

Specify a hostname or the IP address for the host of the primary agent.

port

Optionally, specify the TCP/IP port number to use. The default value, 58632, is the only supported value.


Disk Device Syntax

A physical disk attached to the array can be identified with any of the following:

TABLE 1-4 Disk Device Syntax

Syntax

Description

ch.id

Dotted-decimal format where ch is physical device channel and id is the SCSI ID of the device.

ch.m-n

Where ch is physical device channel and m to n represents a contiguous range of IDs on the same channel.

sdn or c<X>t<Y>d<Z>

JBOD LVD disks only. Specify a disk device using a Solaris or SPARC device name such as sd31 or c1t0d0 when a JBOD chassis is selected.


Logical Drive Syntax

Logical drives can be specified by one of the following alphanumeric strings:

Logical drive indexes are constructed by concatenating the string "ld" with a small, zero-based ordinal number. Whenever a logical drive is created or deleted, logical drives are renumbered so that the logical drive indexes range from 0 to n-1, where n is the number of logical drives. Care must be taken not to assume that a logical drive keeps the same logical drive index after creating or deleting any logical drive or rebooting the array controller.

Some commands accept a list of logical drives, or LD-list. This list is constructed by concatenating one or more logical drive identifiers or indexes as shown in the following examples.



caution icon

Caution - Any time logical drives are created or deleted, the numbering of logical drive indexes might change. After creating or deleting logical drives, issue a show logical-drives command to view an updated list of logical drive indexes. Or, use logical drive IDs, which do not change over the lifetime of the logical drive, rather than logical drive indexes.



This example lists logical drives using the index number.

ld0,ld1,ld2

This example lists logical drives using the local drive identifier.

0043BF50,05CC1F19,025E42E1



Note - Do not include spaces before or after the commas when specifying a logical drive list.



Logical Volume Syntax

Logical volumes are specified by one of the following alphanumeric strings:

A list of logical volumes identifiers or indexes can be specified by concatenating one or more logical drive identifiers or logical volume indexes, separating them with commas.



caution icon

Caution - Any time logical volumes are created or deleted, the numbering of logical volume indexes might change. After creating or deleting logical volumes, issue a show logical-volumes command to view an updated list of logical volume indexes. Or, use logical volume IDs, which do not change over the lifetime of the logical volume, rather than logical volume indexes.



This example lists logical volumes using the local volume identifier.

52AD5DEB,472C1397,E2054317

This example lists logical volumes using the local volume index number.

lv0,lv1,lv2