Setting the target

If you must perform several operations on a given target device, you can simplify the required commands by setting the device as the default <target> for the CLI operations.

After you have set the target, any command that you enter in the CLI without a specified <target> is automatically applied to the set target. If you must also perform operations on other devices, you can still do so at any time by specifying the <target> for each of those operations as usual. You can also change the set target or clear it completely. The set target is automatically cleared when you close the CLI.

IMPORTANT: You cannot use the set target command in batch file scripts.

Syntax:

set target <target>where <target> is a controller, array, or logical drive.

Example commands:

=> set target ctrl slot=3 => clear targetTypical scenarioFirst, set a target as follows:=> set target ctrl ch="Lab 4" => show targetcontroller chassisname="Lab 4"

As an example of how the set target command works, check the status of array A on this controller: => array A show

MSA1000 at Lab 4array AInterface Type: SASUnused Space: 7949 MBStatus: OK

The controller does not need to be specified because it is currently the set target.

Now clear the target, reset it, and enter a few commands for the new set target: => clear target

=> set target ctrl slot=3

=> array A add drives=1:7,1:8,1:9 => array B add spares=1:10,1:11 => ctrl slot=4 ld 3 modify ss=64 => modify rp=high

This sequence includes a command for a different target (the controller in slot 4) as a demonstration. The next command in the sequence (the one for modifying the rebuild priority) applies to the controller in slot 3, not the one in slot 4. This is because the command does not specify a <target> for the rebuild priority, so the default set target is used instead.

Identifying devices

You can enter a command that causes the LEDs on target devices to flash, enabling you to identify the devices. After an hour, the LEDs stop flashing. You can also stop LED flashing by entering the off command.

Operations 62