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

CLI syntax, The <target> variable, The <command> variable, Keyword abbreviations

Page 45 highlights

The remaining examples in this chapter are described as if entered in Console mode. CLI syntax Whether entered in Command mode or Console mode, a typical ACU CLI command line consists of three parts: a target device, a command, and a parameter with values if necessary. Using angle brackets to denote a required variable and plain brackets to denote an optional variable, the structure of a typical ACU CLI command line is as follows: [parameter=value] The variable This variable provides the path to a target device. The device can be a controller, an array, a logical drive, or a physical drive. For example: controller slot=3 controller wwn=500805F3000BAC11 controller serialnumber=P56350D9IP903J controller slot=3 array A controller chassisname="A" array A logicaldrive 2 controller chassisname="A" physicaldrive 1:0 You can also specify that an operation be performed on several similar devices at the same time. For example: controller all controller slot=3 logicaldrive 2 The variable The variable can be any of the following words or phrases: add create delete help modify remove rescan set target show Some commands require a parameter, and some parameters require a value. The descriptions of the commands in the rest of this chapter provide examples of some usable parameters and variables for those cases that need them. Keyword abbreviations Several commonly used keywords in the ACU CLI have acceptable abbreviations, as shown in the following table. Keyword adapterid arrayaccelerator cacheratio Abbreviation in ACU CLI ai aa cr Keyword logicaldrive parallelscsi physicaldrive Abbreviation in ACU CLI ld ps pd Using the Command Line Interface 45

  • 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
45
The remaining examples in this chapter are described as if entered in Console mode.
CLI syntax
Whether entered in Command mode or Console mode, a typical ACU CLI command line consists of three
parts: a target device, a command, and a parameter with values if necessary. Using angle brackets to
denote a required variable and plain brackets to denote an optional variable, the structure of a typical
ACU CLI command line is as follows:
<target> <command> [parameter=value]
The <target> variable
This variable provides the path to a target device. The device can be a controller, an array, a logical
drive, or a physical drive.
For example:
controller slot=3
controller wwn=500805F3000BAC11
controller serialnumber=P56350D9IP903J
controller slot=3 array A
controller chassisname="A" array A logicaldrive 2
controller chassisname="A" physicaldrive 1:0
You can also specify that an operation be performed on several similar devices at the same time.
For example:
controller all
controller slot=3 logicaldrive 2
The <command> variable
The
<command>
variable can be any of the following words or phrases:
add
create
delete
help
modify
remove
rescan
set target
show
Some commands require a parameter, and some parameters require a value. The descriptions of the
commands in the rest of this chapter provide examples of some usable parameters and variables for those
cases that need them.
Keyword abbreviations
Several commonly used keywords in the ACU CLI have acceptable abbreviations, as shown in the
following table.
Keyword
Abbreviation in ACU
CLI
Keyword
Abbreviation in ACU
CLI
adapterid
ai
logicaldrive
ld
arrayaccelerator
aa
parallelscsi
ps
cacheratio
cr
physicaldrive
pd