HP StorageWorks Modular Smart Array 1000 HP Array Configuration Utility User G - Page 56

Setting the target, Example command, IMPORTANT, Syntax, Typical scenario

Page 56 highlights

modify redundantcontroller=disable where is a controller that has an enabled redundant controller. Example command: => ctrl ch="redundant Lab4" modify rc=disable 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 for the CLI operations. After you have set the target, any command that you enter in the CLI without a specified 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 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 where is a controller, array, or logical drive. Example commands: => set target ctrl slot=3 => clear target Typical scenario First, set a target as follows: => set target ctrl ch="Lab 4" => show target controller 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 4 array A Interface Type: Parallel SCSI Unused Space: 7949 MB Status: OK Note that 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. Note that 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 for the rebuild priority, so the default set target is used instead. Using the Command Line Interface 56

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71

Using the Command Line Interface
56
<target> modify redundantcontroller=disable
where
<target>
is a controller that has an enabled redundant controller.
Example command:
=> ctrl ch="redundant Lab4" modify rc=disable
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 target
Typical scenario
First, set a target as follows:
=> set target ctrl ch="Lab 4"
=> show target
controller 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 4
array A
Interface Type: Parallel SCSI
Unused Space: 7949 MB
Status: OK
Note that 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. Note
that 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.