C H A P T E R  2

System Function Commands

This chapter provides the available system function commands with sample code. Topics covered in this chapter include:



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.





Note - If no command is entered on the command line, the CLI enters an interactive mode, prompting you to enter commands until the quit command is entered. All commands operate on the currently-selected device.




Basic Commands

The following commands are explained in this section:

about

The about command displays version and copyright information.

about

The following example shows the about text for the CLI:

sccli> about
Sun StorEdge 3000 Family CLI
Copyright 2002 Dot Hill Systems Corporation.
All rights reserved. Use is subject to license terms.
sccli version 1.5.0
built 2004.01.26.23.49

exit

This command exits the interactive mode.

exit

help

The help command displays a short synopsis of the available commands.

help [command]

If no command is specified, basic usage information is displayed.

The following example shows the help text for the show channels command.

sccli> help show channels
  show channels
        display channel configuration

inquiry

The inquiry command displays SCSI INQUIRY data returned by the array controller. The output of this command varies from one product to another, and from one channel to another.(Shortcut for show inquiry-data).

inquiry

The following example shows an out-of-band Sun StorEdge 3510 inquiry:

sccli> inquiry
Vendor: SUN
 Product: StorEdge 3510
 Revision: 327R
 NVRAM Defaults: 327R 3510 v2.54
 Bootrecord Version: 1.31H
 Serial Number: 000187
 IP Address: 199.249.246.28
 Ethernet Address: 00:C0:FF:00:01:87

The following example shows an in-band Sun StorEdge 3510 inquiry:

sccli> inquiry
 Vendor: SUN
 Product: StorEdge 3510
 Revision: 327R
 Peripheral Device Type: 0x0
 NVRAM Defaults: 327R 3510 v2.54
 Bootrecord version: 1.31H
 Page 80 Serial Number: 0001870043BF5000
 Page 83 Logical Unit Device ID: 600C0FF0000000000001870043BF5000
 Page 83 Target Device ID: 206000C0FF000187
 IP Address: 199.249.246.28
 Page D0 Fibre Channel Address: EF (id 0)
 Page D0 Node Name: 206000C0FF000187
 Page D0 Port Name: 216000C0FF000187
 Ethernet Address: 00:C0:FF:00:01:87
 Device Type: Primary

quit

The quit command exits the interactive mode.

quit

select

The select command selects a new device to which subsequent commands are issued. If no device is specified, and more than one choice exists, a menu of choices is displayed. This command should not be used on the command line because a select command is implicitly done if no device name is specified.

select device

For example:

sccli> select c15t0d0
sccli: selected /dev/rdsk/c0t5d0s2 [SUN StorEdge 3310 SN#00028E]
sccli> select 199.249.246.28
sccli: selecting se3000://199.249.246.28:58632[SUN StorEdge 3510 SN#000187]

version

The version command displays the version number of the CLI.

version

For example:

# sccli version
sccli: selected se3000://199.249.246.28:58632[SUN StorEdge 3510 SN#000187]
sccli version 1.5.0


Network Commands

The following commands are explained in this section:

configure network-interface

This command configures the LAN interface, enabling the Telnet, FTP, SNMP, and out-of-band management functions.

For dynamic addressing, use the following syntax:

configure network-interface lan0 [bootp | rarp| dhcp] 

For static addressing, use the following syntax:

configure network-interface lan0 [ip-address ip-address | netmask netmask-ip | gateway gateway-ip]

The following dynamic options are accepted:

TABLE 2-1 Dynamic Options for configure network-interface

Argument

Description

bootp

Specifies that the BOOTP protocol is used to establish an IP address. Some devices support bootp only as a subset of DHCP. If you receive an error message when you try to specify the bootp protocol, specify dhcp instead.

rarp

Specifies that the RARP protocol is used to establish an IP address.

dhcp

Specifies that the DHCP protocol is used to obtain an IP address.




Note - The bootp, rarp, and dhcp options can be combined to specify that multiple protocols be tried in the specified order.





Note - All LAN parameters must be specified on the same command line.



Alternately, if none of the dynamic options are specified on the same command line, a static IP address can be specified along with optional netmask and default gateway parameters.

TABLE 2-2 Options for configure network-interface

Argument

Description

ip-address n.n.n.n

The IP address of the array.

netmask m.m.m.m

The netmask, in dotted-decimal format, for example, 255.255.255.0

gateway g.g.g.g

The IP address of a default router.


The following example configures the controller IP address as 192.168.0.10, netmask as 255.255.255.0, gateway as 192.168.0:

# sccli c2t0d0 configure network-interface lan0 ip 192.168.0.10 netmask 255.255.255.0 gateway 192.168.0.1

The following example specifies the DHCP protocol is used to establish an IP address:

# sccli c2t0d0 configure network-interface lan0 dhcp

create host-wwn-name

Fibre Channel devices only. This command creates a list of Host ID/WWN name entries to associate a symbolic name with a host WWPN. This enables the user to use the symbolic name instead of the numeric WWPN when creating host LUN filters.

create host-wwn-name wwn name [position]

TABLE 2-3 Arguments for create host-wwn-name

Argument

Description

wwn

Specify a WWPN corresponding to a host bus adapter, expressed as a 16-digit hexadecimal number.

name

Specify a symbolic name for the host bus adapter. Names that contain special characters must be enclosed in double-quotes.

[position]

Specify a number representing the position in the list of names where this name will appear. To add the WWN name to the top of the WWN name list, specify head. To add the WWN name to the bottom of the WWN name list, specify tail.


 

The following example creates the alias sun-hba-1 for the HBA WWPN value 210000e08b095562:

# sccli c2t0d0 create host-wwn-name 210000e08b095562 "sun-hba-1"

delete host-wwn-name

Fibre Channel devices only. This command deletes a Host/WWN name entry.

delete host-wwn-name [name | wwn]

show host-wwn-names

Fibre Channel devices only. This command displays all registered HBA WWNs in the controller for host channels.

show host-wwn-names

TABLE 2-4 Arguments for delete host-wwn-name

Argument

Description

[name | wwn]

Specify the host or WWN name.


 

The following example shows all host WWN names for the specified device.

# sccli c2t0d0 show host-wwn-names
  Host-ID/WWN       Name 
--------------------------------------
  210000e08b095562  sun-hba-1
  210100e08b295562  sun-hba-2

If no host WWN names are defined, a message is displayed, but it is not considered an error.

If a Qlogic HBA is connected to a host channel, the Qlogic HBA WWN is automatically detected by the controller and registered into the table.

If the HBA is another brand, the user must register this HBA WWN to the controller using the RS232 application. Use the serial port of the array to access the firmware. For information about the firmware menus and commands, refer to the RAID firmware user's guide for your product.

show ip-address

This command displays the IP address of the array controller.



Note - Before running this command, make sure the network parameters on the controller are set.



show ip-address

The following example shows the IP address for device c2t0d0:

# sccli c2t0d0 show ip-address
206.6.182.71

show network-parameters

This command displays the IP address, netmask, and default router address of the network management port.

show network-parameters

The following example shows the network parameters for the network management port.

sccli> show network-parameters
 ip-address: 206.235.238.223
 netmask: 255.255.255.0
 gateway: 0.0.0.0
 mode: static

show port-wwn

Fibre Channel devices only. This command displays FC host channel port WWNs.

show port-wwn

The following example shows the port WWNs for the FC host channels.

sccli> show port-wwn
Ch  Id   WWPN
-------------------------
 0  40   216000C0FF800238
 0  41   216000C0FF900238
 1  43   226000C0FFB00238
 1  42   226000C0FFA00238
 4  44   256000C0FFC00238
 4  45   256000C0FFD00238
 5  47   266000C0FFF00238
 5  46   266000C0FFE00238

show rs232-configuration

This command displays the RS232 connection configuration. Returned values include the port number and current band-rate. In a redundant controller configuration, the COM port rate is always the same for both ports. Valid rates include: 2400, 4800, 9600, 19200, 38400, 115200.

show rs232-configuration

The following example shows the band-rate is set to 38400 bps for COM1 and COM2.

sccli> show rs232-configuration
 COM1 speed: 38400bps
 COM2 speed: 38400bps


Component Status Commands

The following commands are explained in this section:

show enclosure-status

LVD SCSI devices only. The show enclosure-status command shows the status for all chassis components including SAF-TE information, fan, power supply, temperature sensor, and drive slot status.



Note - In dual-bus configurations, half the drives display a status of Absent. The drives are present, but because of a SAF-TE design limitation, the information does not display.



show enclosure-status

The following example shows the enclosure status for a Sun StorEdge 3310 SCSI device.

sccli> show enclosure-status
Ch  Id  Chassis  Vendor  Product ID        Rev   Package   Status
----------------------------------------------------------------
 0  14  00476F   SUN     StorEdge 3310  A  1159  1159         OK
 
Enclosure Component Status:
     Type Unit Status   FRU P/N   FRU S/N   Add'l Data
----------------------------------------------------------------
      Fan 0    OK       370-5398  031018     --
      Fan 1    OK       370-5398  031043     --
       PS 0    OK       370-5398  031018     --
       PS 1    OK       370-5398  031043     --
     Temp 0    OK       370-5524  00476F     temp=25
     Temp 1    OK       370-5524  00476F     temp=27
     Temp 2    OK       370-5398  031018     temp=31
     Temp 3    OK       370-5394  005180     temp=35
     Temp 4    OK       370-5394  013331     temp=32
     Temp 5    OK       370-5524  00476F     temp=30
     Temp 6    OK       370-5398  031043     temp=25
      EMU 0    OK       370-5394  005180
      EMU 1    OK       370-5394  013331
 DiskSlot 0    Absent   370-5524  00476F     addr=0,led=off
 DiskSlot 1    Absent   370-5524  00476F     addr=1,led=off
 DiskSlot 2    Absent   370-5524  00476F     addr=2,led=off
 DiskSlot 3    Absent   370-5524  00476F     addr=3,led=off
 DiskSlot 4    Absent   370-5524  00476F     addr=4,led=off
 DiskSlot 5    Absent   370-5524  00476F     addr=5,led=off
 DiskSlot 6    OK       370-5524  00476F     addr=8,led=off
 DiskSlot 7    OK       370-5524  00476F     addr=9,led=off
 DiskSlot 8    OK       370-5524  00476F     addr=10,led=off
 DiskSlot 9    OK       370-5524  00476F     addr=11,led=off
 DiskSlot 10   OK       370-5524  00476F     addr=12,led=off
 DiskSlot 11   OK       370-5524  00476F     addr=13,led=off
 
Enclosure SCSI Channel Type: single-bus

Disk slots refer to the backplane FRU to which disks are connected.

If the selected device is a RAID subsystem consisting of more than one chassis, the output in the example is repeated for each chassis in the subsystem.



Note - The Enclosure SCSI Channel Type values include single-bus and split-bus. Throughout the documentation and the CLI, the term "split-bus" is interchangeable with the term "dual-bus." For details on configuring an array, refer to the Sun StorEdge Installation, Operation, and Service manual for your array.



Enclosure status values include:

Status

Description

OK

This component has a status of OK.

Absent

This component is absent.

Fault

The component is exhibiting a fault condition.

Unknown

This component status is not available.


show frus

This command displays field-replaceable units (FRU) ID information for the RAID and any related JBODs, including dynamic FRU status information. All FRU information is retrieved from the SAF-TE device (SCSI unit) or SES (FC unit).

show frus

The following example returns all FRU information in the RAID and JBOD unit:

# sccli c2t0d0 show frus

The following example returns all FRU information in the JBOD unit:

# sccli /dev/scsi/processor/c6t15d0 show frus

The following example shows a partial list of the FRUs in a Sun StorEdge 3310 SCSI device:

sccli> show frus
 Name: PRI RAID CONTROLLER
 Description: SE3310 LVD RAID CTLR, 512MB MEM, BATT
 Part Number: 370-5403
 Serial Number: 011149
 Revision: 02
 Manufacturing Date: Thu Oct  2 11:32:38 2003
 Manufacturing Location: Milpitas California, USA
 Manufacturer JEDEC ID: 0x0301
 FRU Location: PRIMARY CONTROLLER SLOT
 Chassis Serial Number: 00476F
 
 Name: SEC RAID CONTROLLER
 Description: SE3310 LVD RAID CTLR, 512MB MEM, BATT
 Part Number: 370-5403
 Serial Number: 002034
 Revision: 02
 Manufacturing Date: Fri Oct  3 11:35:34 2003
 Manufacturing Location: Milpitas California, USA
 Manufacturer JEDEC ID: 0x0301
 FRU Location: SECONDARY CONTROLLER SLOT
 Chassis Serial Number: 00476F
 
7 FRUs found in chassis SN#00476F at ch 0 id 14
 
 Name: RAID_CHASSIS_BKPLN
 Description: Minnow BOX, RAID, LVD, Chassis+Bkpln
 Part Number: 370-5524
 Serial Number: 00476F
 Revision: 01
 Manufacturing Date: Tue Sep 23 22:18:02 2003
 Manufacturing Location: Milpitas,CA,USA
 Manufacturer JEDEC ID: 0x0301
 FRU Location: SCSI RAID MIDPLANE SLOT
 Chassis Serial Number: 00476F
 FRU Status: OK
...

FRU status values include:

Status

Description

OK

All subcomponents of this FRU have a status of OK.

Fault

One or more of the FRU components is exhibiting a fault condition.



Configuration Commands

The following commands are explained in this section:

download controller-configuration file

This command restores controller configuration information previously saved in file using the upload controller-configuration file command. A logical drive or logical volume create operation might be required to completely restore the saved configuration. However, creating a logical drive might take a long time, and block other operations. The command provides an option for the user to specify whether to build the logical drive.



Note - Optimally, rebuild any logical drives before running this command.



download controller-configuration [-b | --build] filename

TABLE 2-5 Arguments for download controller-configuration

Argument

Description

-b, --build

Rebuild RAID sets specified in the saved configuration. If this option is not specified, RAID sets are not created.

-r, --reset

Reset the controller so that the newly-restored configuration takes affect immediately.


 

caution icon

Caution - All reset commands cause the array to stop responding to I/O requests from the host for a period of time. This might result in data loss unless all I/O activity is suspended by halting all applications that are accessing the array, and unmounting any file systems that are mounted from the array. In redundant-controller configurations, these commands affect all LUNs on both controllers. After running a reset command, to stay in prompt mode, run the select command to reselect the device.



reset nvram



caution icon

Caution - This command only restores the primary controller. In a redundant environment, this can create a dangerous environment in which the primary controller no longer mirrors the secondary controller. Use this command with caution.





caution icon

Caution - All reset commands cause the array to stop responding to I/O requests from the host for a period of time. This might result in data loss unless all I/O activity is suspended by halting all applications that are accessing the array, and unmounting any file systems that are mounted from the array. In redundant-controller configurations, these commands affect all LUNs on both controllers. After running a reset command, to stay in prompt mode, run the select command to reselect the device.



This command clears the NVRAM configuration memory and restores factory defaults. After issuing this command, reset the controller and reconfigure the controller to restore any non-default configuration options.



caution icon

Caution - Logical devices are not deleted, but it is possible for them to become inaccessible after this command is run. This might result in data loss.



reset nvram

# sccli /dev/rdsk/c0t5d0s2 reset nvram
WARNING: The configuration of the RAID controller will be erased. Factory default parameters will take effect at next controller reset. Logical devices may not be accessible until mappings are reconfigured.
Are you sure? y
sccli>

 

show bypass device



Note - This command should only be used by Sun support personnel during troubleshooting procedures.



Fibre Channel devices only. The show bypass device command displays the bypass status of all devices on a specified loop.



Note - Loop A and Loop B refer to the redundant FC loops that each device is connected to. The SES device in the top slot of the chassis is connected to Loop A which is the first drive channel. The bottom SES device is connected to Loop B which is the second drive channel.



show bypass device ses-channel channel loop [loopa|loopb] 

TABLE 2-6 Arguments for show bypass device

Argument

Description

ses-channel channel

Specify the drive channel number of the FC port from which to send the command. The channel must be configured as a drive channel.Valid values: 0-5.

loop

Specify the drive loop of the SFP for which the bypass information will be displayed. Valid values: loopa, loopb, a, or b.


 

If a device is bypassed, the Attributes column displays a code, S, H, or F, that details the bypass. An S means the device was bypassed due to a CLI command. An H means the device was bypassed due to a hardware problem (no signal was present). And, an F means a drive fault caused the bypass.

The following example is sent on channel 2 and shows the bypass information for Loop A.

sccli> show bypass device ses-channel 2 loop loopa
 
CH      ID      TYPE    ENCL    LOOP    BYP-STATUS      ATTRIBUTES
--      --      ----    ----    ----    ----------      SHF-------
2       0       DISK    RAID    LOOP-A  Unbypassed      ---
2       1       DISK    RAID    LOOP-A  Bypassed        S
2       2       DISK    RAID    LOOP-A  Unbypassed      ---
2       3       DISK    RAID    LOOP-A  Unbypassed      ---
2       4       DISK    RAID    LOOP-A  Unbypassed      ---
2       5       DISK    RAID    LOOP-A  Unbypassed      ---
2       6       DISK    RAID    LOOP-A  Unbypassed      ---
2       7       DISK    RAID    LOOP-A  Unbypassed      ---
2       8       DISK    RAID    LOOP-A  Unbypassed      ---
2       9       DISK    RAID    LOOP-A  Unbypassed      ---
2       10      DISK    RAID    LOOP-A  Unbypassed      ---
2       11      DISK    RAID    LOOP-A  Bypassed        HF
2       12      SES     RAID    LOOP-A  Unbypassed      ---

The following example is sent on channel 3 and shows the bypass information for Loop B.

sccli> show bypass device ses-channel 3 loop loopb
 
CH      ID      TYPE    ENCL    LOOP    BYP-STATUS      ATTRIBUTES
--      --      ----    ----    ----    ----------      SHF-------
3       0       DISK    RAID    LOOP-B  Bypassed        S
3       1       DISK    RAID    LOOP-B  Bypassed        H
3       2       DISK    RAID    LOOP-B  Unbypassed      ---
3       3       DISK    RAID    LOOP-B  Unbypassed      ---
3       4       DISK    RAID    LOOP-B  Unbypassed      ---
3       5       DISK    RAID    LOOP-B  Unbypassed      ---
3       6       DISK    RAID    LOOP-B  Unbypassed      ---
3       7       DISK    RAID    LOOP-B  Unbypassed      ---
3       8       DISK    RAID    LOOP-B  Unbypassed      ---
3       9       DISK    RAID    LOOP-B  Unbypassed      ---
3       10      DISK    RAID    LOOP-B  Unbypassed      ---
3       11      DISK    RAID    LOOP-B  Unbypassed      ---
3       12      SES     RAID    LOOP-B  Unbypassed      ---

show bypass RAID



Note - This command should only be used by Sun support personnel during troubleshooting procedures.



Fibre Channel devices only. The show bypass RAID command displays the hardware bypass status of the RAID controllers on Loop A and Loop B. In a redundant RAID controller system, there is a RAID controller in the top slot of the chassis and a RAID controller in the bottom slot of the chassis. Each RAID controller has a connection to Loop A and Loop B. In a normal redundant RAID controller system, the top and bottom RAID controllers indicate unbypassed status on both loops. If a RAID controller has failed due to natural causes, or has failed as a result of the fail primary or fail secondary command, the show bypass RAID command indicates that the RAID controller is bypassed.

show bypass raid

The following example shows the bypass status of the RAID controllers.

sccli> show bypass raid
SLOT    LOOP    BYP-STATUS
----    ----    ----------
TOP     LOOP-A  Bypassed
TOP     LOOP-B  Bypassed
BOTTOM  LOOP-A  Unbypassed
BOTTOM  LOOP-B  Unbypassed

show bypass SFP



Note - This command should only be used by Sun support personnel during troubleshooting procedures.



Fibre Channel devices only. The show bypass SFP command displays the bypass status of all SFPs on a specified loop.



Note - Loop A and Loop B refer to the redundant FC loops that each device is connected to. The SES device in the top slot of the chassis is connected to Loop A which is the first drive channel. The bottom SES device is connected to Loop B which is the second drive channel.



show bypass sfp ses-channel channel loop [loopa|loopb] 

TABLE 2-7 Arguments for show bypass SFP

Argument

Description

ses-channel channel

Specify the drive channel number of the FC port from which to send the command. The channel must be configured as a drive channel.Valid values: 0-5.

loop

Specify the drive loop of the SFP for which the bypass information will be displayed. Valid values: loopa, loopb, a, or b.


 

If a device is bypassed, the Attributes column displays a code, S or H, that details the bypass. An S means the device was bypassed due to a CLI command. An H means the device was bypassed due to a hardware problem (no signal was present).

The following example is sent on channel 2 and shows the bypass information for Loop A.

sccli> show bypass sfp ses-channel 2 loop loopa
 
PORT    ENCL-ID ENCL-TYPE       LOOP    BYP-STATUS      ATTRIBUTES
----    ------- ---------       ----    ----------      SH--------
0       0       RAID            LOOP-A  Unbypassed      --
1       0       RAID            LOOP-A  Not-Installed   --
L       0       RAID            LOOP-A  Bypassed        -H
R       0       RAID            LOOP-A  Not-Installed   --
4       0       RAID            LOOP-A  Not-Installed   --
5       0       RAID            LOOP-A  Bypassed        -H

The following example is sent on channel 2 and shows the bypass information for Loop B.

sccli> show bypass sfp ses-channel 2 loop loopb
 
PORT    ENCL-ID ENCL-TYPE       LOOP    BYP-STATUS      ATTRIBUTES
----    ------- ---------       ----    ----------      SH--------
0       0       RAID            LOOP-B  Not-Installed   --
1       0       RAID            LOOP-B  Bypassed        -H
L       0       RAID            LOOP-B  Bypassed        -H
R       0       RAID            LOOP-B  Not-Installed   --
4       0       RAID            LOOP-B  Bypassed        -H
5       0       RAID            LOOP-B  Not-Installed   --

show configuration

This command displays the array configuration including inquiry information, FRU information, and the enclosure status which includes the status for the SES or SAF-TE device and all chassis components--the fan, power supply, temperature sensor, and drive slots. The configuration can be displayed onscreen, or written to the specified file. The output is plain text by default, but XML output can be obtained by specifying the --xml option. To see a sample XML report, see Show Configuration Command Output.



Note - In dual-bus configurations, half the drives display a status of Absent. The drives are present, but because of a SAF-TE design limitation, the information does not display.





Note - FC enclosures can contain two SES processors, and there can be more than one enclosure in a RAID subsystem.



show configuration [--xml | -x] [filename]

TABLE 2-8 Arguments for show configuration

Argument

Description

{--xml | -x}

If the -x or --xml options are specified, XML output is generated.

filename

Specify the filename for the configuration file that you want to show.


 

Configuration values in the report include: inquiry data, network parameters, drive parameters, redundancy mode, cache policy, RS232 configuration, channels, disks, logical drives, logical volumes, partitions, LUN maps, host WWNs (FC only), port WWNs (FC only), intercontroller link (FC only), battery status (FC only), FRUs, SES (FC only), and SAF-TE (SSCI only).

The following example shows a portion of a RAID configuration.

sccli> show configuration
 
* inquiry-data
 
 Vendor: SUN
 Product: StorEdge 3510
 Revision: 327R
 NVRAM Defaults: 327R 3510 v2.57
 Bootrecord Version: 1.31H
 Serial Number: 0043E6
 IP Address: 206.6.180.17
 Ethernet Address: 00:C0:FF:00:43:E6
 unique-identifier: 0043E6
 controller-name: ""
 
* network-parameters
 
 ip-address: 206.6.180.17
 netmask: 255.255.255.0
 gateway: 206.6.180.9
 mode: static
 
* host-parameters
 
 max-luns-per-id: 32
 queue-depth: 1024
 fibre connection mode: loop

The following example writes the RAID configuration information to the myconfig.xml file.

# sccli c2t0d0 show configuration --xml myconfig.xml

show loop-map



Note - This command should only be used by Sun support personnel during troubleshooting procedures.



Fibre Channel devices only. The show loop-map command shows the FC loop positional map for a given channel. This information shows the user how the FC devices are connected in the loop. The positional map displays the Arbitrated Loop Physical Address (ALPA) and the SCSI Select ID that corresponds to that ALPA. Use the positional loop map during the diagnostic process to determine which devices to selectively bypass in order to isolate faulty devices.

There can be two RAID controllers on each drive loop. The first device displayed in the loop map is the RAID controller that executes the diagnostics and performs the port bypass operations. Both ALPAs and SCSI Select IDs are displayed. Additional information is also displayed including device type, chassis enclosure ID, and slot number that the device resides in.

show loop-map channel channel

TABLE 2-9 Arguments for show loop-map

Argument

Description

channel ch

Specify the drive channel number of the FC port from which the loop map information is to be obtained. Valid values: 0-5.


 

Note - The channel must be configured as a drive channel and there must be an SES device present on the channel.



The following example displays the loop map on channel 2.

sccli> show loop-map channel 2
 
14 devices found in loop map
 
=== Channel Loop Map retrieved from CH 2 ID 12 ===
 
AL_PA   SEL_ID  SEL_ID  TYPE    ENCL_ID SLOT
(hex)   (hex)   (dec)
-----   -----   -----   ----    ------  ----
CE      0F      15      RAID    N/A     N/A
D4      0B      11      DISK    0       11
DC      06      6       DISK    0       6
D5      0A      10      DISK    0       10
DA      07      7       DISK    0       7
D3      0C      12      SES     0       N/A
E8      01      1       DISK    0       1
E1      04      4       DISK    0       4
E4      02      2       DISK    0       2
E2      03      3       DISK    0       3
E0      05      5       DISK    0       5
EF      00      0       DISK    0       0
D9      08      8       DISK    0       8
D6      09      9       DISK    0       9



Note - The first line of output in the loop map identifies the primary RAID controller that requested the loop map and that issues any subsequent FC diagnostic commands.



upload controller-configuration file

This command saves a description of the configuration of the array to a user-specified file. The file can be used to restore the same configuration to the array at a later date, or to copy the configuration to another array. The file includes: channel settings, host and drive side parameters, array parameters, network port setup, controller general parameters, logical drive, logical volume, and SCSI drive information, partition information, and mappings on host channels.



Note - The file contains binary data and cannot be viewed with a text editor.



upload controller-configuration file

The following example saves the RAID configuration into the binary file, raidcfg.bin:

# sccli c2t0d0 upload controller-configuration raidcfg.bin

For details on downloading the controller configuration file, see download controller-configuration file.

upload nvram

The upload nvram command saves the NVRAM configuration to a host file. The binary NVRAM file contains information specific to the host device, such as channel settings, RAID controller parameters, IP address, RAID controller password and name, and unique IDs, and so on. This works for both SCSI and FC arrays.

upload nvram file


Event Message Commands

The following commands are explained in this section:

clear events

This command clears the RAID controller event log.

clear events

The following example clears the event log for controller c0t5d0s2.

# sccli /dev/rdsk/c0t5d0s2 clear events

show events

This command displays the contents of the specified RAID controller.

show events [last {n} | all]

TABLE 2-10 Arguments for show events

Argument

Description

last {n}

Gets the latest n events for the controller.

latest {n}

Gets the latest n events for the controller.

all

Gets all the events for the controller.


 

If no option is specified, the command shows all events.

# sccli /dev/rdsk/c0t5d0s2 show events
Tue Jul 30 16:04:45 2002
[0181] #1: StorEdge Array SN#600001 Controller NOTICE: controller initialization completed
 
Tue Jul 30 16:04:24 2002
[0181] #2: StorEdge Array SN#600001 Controller NOTICE: controller initialization completed

To show the last 10 events for a controller, type:

# sccli c2t0d0 show events last 10