HP P4000 9.0 HP StorageWorks P4000 SAN/iQ Command-Line Interface User Manual - Page 8

Composite commands, Size specification, Password prompt - default password

Page 8 highlights

The CLI will map error codes to reasonable OS status codes (status in Linux, ERRORLEVEL in DOS). Since these are limited to 0..255, some of the OS errors may have less granularity than the API error codes. Composite commands Some commands take multiple elements for the parameter value. In this case, the parameter is interpreted as an delimiter-separated ordered list. For example: volumeName=volume1;volume2 login=10.0.1.2;10.1.2.3;10.2.3.4 If a parameter contains fewer elements in the list than needed for the composite command, the last one in the list will be repeated. There must be at least one element in the list, if it's required. Size specification When volume sizes or thresholds are specified, the format is , where units are: MB - megabytes (2^20) GB - gigabytes (2^30) TB - terabytes (2^40) There is no default for size units - the units must be specified. These are defined as International System of Units (SI) for file storage (popular use). Some values may be specified as either a size or percentage, for example, reserveQuota. The units will determine how this is interpreted. For example: 10MB - 1,048,576 bytes 10GB - 10,737,418,240 bytes 10% - 1/10 of the current volume size Password prompt When credentials are required in the CLI, you may not want to display the password by typing the "password=" parameter. If the username parameter is specified without the password parameter, you will be prompted interactively for the password. This password will not be displayed. cliq getGroupInfo login=10.0.1.2 username=admin password: ******* 8

  • 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
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158

8
The CLI will map error codes to reasonable OS status codes (status in Linux,
ERRORLEVEL in DOS).
Since these are limited to 0..255, some of the OS errors may
have less granularity than the API error codes.
Composite commands
Some commands take multiple elements for the parameter value.
In this case, the
parameter is interpreted as an delimiter-separated ordered list.
For example:
volumeName=volume1;volume2
login=10.0.1.2;10.1.2.3;10.2.3.4
If a parameter contains fewer elements in the list than needed for the composite
command, the last one in the list will be repeated.
There must be at least one element
in the list, if it's required.
Size specification
When volume sizes or thresholds are specified, the format is <size><units>, where units
are:
MB - megabytes (2^20)
GB - gigabytes (2^30)
TB - terabytes (2^40)
There is no default for size units - the units must be specified.
These are defined as International System of Units (SI) for file storage (popular use).
Some values may be specified as either a size or percentage, for example,
reserveQuota.
The units will determine how this is interpreted.
For example:
10MB - 1,048,576 bytes
10GB - 10,737,418,240 bytes
10% - 1/10 of the current volume size
Password prompt
When credentials are required in the CLI, you may not want to display the password by
typing the "password=" parameter.
If the username parameter is specified without the
password parameter,
you will be prompted interactively for the password.
This password will not be
displayed.
cliq getGroupInfo login=10.0.1.2 username=admin
password: *******