C H A P T E R  8

Installing and Accessing the Command-Line Interface

This chapter explains how to install the command-line interface (CLI) on a Solaris, Linux, HP-UX, IBM AIX, Windows NT, Windows 2000, and Windows 2003 host. The CLI enables you to perform many of the same operations you perform by choosing menu options from the firmware application or Sun StorEdge Configuration Service. CLI commands have the advantage of being scriptable, which is especially useful in large data center environments with many arrays that need to be configured similarly. Topics covered in this chapter include:


Before You Begin Installing the CLI


System Requirements

TABLE 8-1 lists the system requirements for each of the supported platforms.

TABLE 8-1 System Requirements for CLI

OS Version

Disk Space

Solaris 2.6

Solaris 8 and Solaris 9 on SPARC platforms

Solaris 9 x86 Platform Edition (9 08/03)

4 Mbyte minimum

Windows NT 4.0

Windows 2000

Windows 2003

3 Mbyte minimum

Sun Linux 5.0 on a Suntrademark LX50 server (SCSI only)
Red Hat Advanced Server 2.1

3 Mbyte minimum

HP-UX 11.0 and 11i

3 Mbyte minimum

IBM AIX 4.3.3 and 5.1L

4 Mbyte minimum



Installing Software

This section lists the installation package and provides steps for installing the CLI on each of the supported platforms.



Note - You must be superuser (administrator) to install the CLI.



Installation Packages

The CLI installation package is contained on the Sun StorEdge 3000 Family Professional Storage Manager CD, and includes the files listed in TABLE 8-2. The package must be installed on a server that is attached to the array.

TABLE 8-2 Installation Packages for the Command-Line Interface

Solaris OS

 

Microsoft Windows OS

Linux OS

 

HP-UX OS

 

IBM AIX OS

 

SUNWsccli

SUNWsccli.
exe

SUNWsccli-linux.rpm

SUNWsccli-hp-ux.depot

SUNWsccli-aix.bff



procedure icon  To Install the CLI on a Solaris Host

1. Insert the Sun StorEdge 3000 Family Professional Storage Manager CD and type:

# pkgadd -d/cdrom/cdrom0/product/solaris SUNWsccli

2. To access the CLI, log in as root on the server on which you installed the CLI (and that is attached to the array), and type:

# sccli (with options and subcommands)

For a list of options and subcommands, see the man page.



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



The CLI is installed in /opt/SUNWsscs/sbin/sccli.


procedure icon  To Install the CLI on a Microsoft Windows Host

1. Insert the Sun StorEdge 3000 Family Professional Storage Manager CD and change to the \product\windows directory.

2. Double-click setup.exe and select Sun StorEdge Command-Line Interface.

The default installation directory is C:\Program Files\Sun\sccli.

3. If CLI is installed on the same machine as the device you want to manage, to access the CLI, choose Start right arrow Programs right arrow Sun StorEdge 3000 Family right arrow Command-Line Interface.

4. If the CLI is installed on a different machine from the device you want to manage, to access the CLI, choose Start right arrow Run and type sccli followed by the IP address of the device you want to manage.


procedure icon  To Install the CLI on a Linux Host

1. Mount the CD drive on your file system if it is not already mounted.

# mount /dev/cdrom /mnt/cdrom

2. Insert the Sun StorEdge 3000 Family Professional Storage Manager CD and type:

# cd /mnt/cdrom/product/linux

3. Type:

# rpm -ivh SUNWsccli.rpm

To access the CLI, log in as root on the server on which you installed the CLI (and that is attached to the array), and type:

# sccli (with options and subcommands)

For a list of options and subcommands, see the man page.

The CLI is installed in /opt/SUNWsscs/sbin/sccli.


procedure icon  To Install the CLI on an HP-UX Host

1. Make sure that a mounting point has been created for the CD.

2. Insert the Sun StorEdge 3000 Family Professional Storage Manager CD.

3. Determine the device entry for the CD:

# ioscan -fnC disk

Note the device entry, for example:

/dev/dsk/c2t5d0

4. Mount the CD on your file system if it is not already mounted.

# mount -r device-entry mounting-point

5. Type:

# swinstall -s /cdrom/product/hpux/SUNWsccli-hpux.depot

The CLI is installed in /opt/SUNWsscs/sbin/sccli.


procedure icon  To Install the CLI on an IBM AIX Host

1. Insert the Sun StorEdge Professional Storage Manager CD and type:

# mount -v cdrfs -o ro CD-drive

2. Type:

# installp -a -d /cdrom/product/aix/SUNWsccli-aix.bff

After the CLI is installed successfully, "SUCCESS" is displayed in the Result column of the Installation Summary.

The CLI is installed in /usr/SUNWsscs/sbin/sccli.


Uninstalling the CLI

This section explains how to uninstall the CLI.


procedure icon  To Uninstall the CLI on a Solaris Host

Use the pkgrm command to uninstall the CLI.

# pkgrm SUNWsccli


procedure icon  To Uninstall the CLI on a Microsoft Windows Host

Use the Microsoft Windows Add/Remove Programs utility to remove the CLI.

1. Choose Start right arrow Settings right arrow Control Panel right arrow Add/Remove Programs.

2. Select SUNWsccli and select Add/Remove.

Respond appropriately to the prompts.


procedure icon  To Uninstall the CLI on a Linux Host

Use the rpm -e command to uninstall the CLI.

# rpm -e SUNWsccli


procedure icon  To Uninstall the CLI on an HP-UX Host

Use the swremove command to uninstall the CLI.

# swremove SUNWsccli


procedure icon  To Uninstall the CLI on an IBM AIX Host

Use the installp -u command to uninstall the CLI.

# installp -u SUNWsccli