HP StorageWorks MSA2324fc HP StorageWorks 2300 Family Modular Smart Array CLI - Page 11

Using the CLI, CLI output modes

Page 11 highlights

1 Using the CLI This chapter introduces the HP StorageWorks 2000 G2 Modular Smart Array command-line interface (CLI). Accessing the CLI The CLI software embedded in controller modules enables you to manage a storage system out of band. You can access the CLI in two ways: • By using Telnet, an SSH application, or a terminal emulator on a management host that is remotely connected through a LAN to a controller module's network port. See your product's user guide for information about setting management port IP addresses using the CLI. • By using a terminal emulator on a management host that is directly connected to a controller module's serial CLI port. Table 2 Default usernames and passwords Username Password Access level monitor !monitor Monitor (view only) manage !manage Manage (view and change) CLI output modes The CLI has two output modes: • Console mode, which is the human-to-computer interface (HCI). • API mode, which is the computer-to-computer interface (CCI). Console mode enables users to interact with the CLI and obtain easily readable information. This mode automatically sizes fields according to content, adjusts content to window resizes, and displays some information in localized form. These capabilities would present problems for a CCI in the form of scripts or other client software. API mode uses XML format and enables any external application to interact with the storage system. The XML format is constructed to permit new fields to be added without impacting existing clients if they follow standard XML parsing conventions. The XML format also contains alternate fields for values which may be localized, such as a state value. These values are guaranteed not to change with different languages and can be used for scripting. Scripting is not supported using console mode because labels, field sizes, and order of fields may change in future firmware releases. To properly script using the CLI, use API mode. API mode is expected to remain consistent from release to release; field names will be consistent and new functionality will be added as new fields. These types of changes in XML output will not impact a conventional XML parsing engine. You can change the CLI output mode by using the set cli-parameters command; see Example on page 88. HP StorageWorks 2000 G2 Modular Smart Array CLI Reference Guide 11

  • 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
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

HP StorageWorks 2000 G2 Modular Smart Array CLI Reference Guide
11
1
Using the CLI
This chapter introduces the HP StorageWorks 2000 G2 Modular Smart Array command-line interface
(CLI).
Accessing the CLI
The CLI software embedded in controller modules enables you to manage a storage system out of band.
You can access the CLI in two ways:
By using Telnet, an SSH application, or a terminal emulator on a management host that is remotely
connected through a LAN to a controller module’s network port. See your product’s user guide for
information about setting management port IP addresses using the CLI.
By using a terminal emulator on a management host that is directly connected to a controller module’s
serial CLI port.
CLI output modes
The CLI has two output modes:
Console mode, which is the human-to-computer interface (HCI).
API mode, which is the computer-to-computer interface (CCI).
Console mode enables users to interact with the CLI and obtain easily readable information. This mode
automatically sizes fields according to content, adjusts content to window resizes, and displays some
information in localized form. These capabilities would present problems for a CCI in the form of scripts or
other client software.
API mode uses XML format and enables any external application to interact with the storage system. The
XML format is constructed to permit new fields to be added without impacting existing clients if they follow
standard XML parsing conventions. The XML format also contains alternate fields for values which may be
localized, such as a state value. These values are guaranteed not to change with different languages and
can be used for scripting.
Scripting is not supported using console mode because labels, field sizes, and order of fields may change
in future firmware releases. To properly script using the CLI, use API mode. API mode is expected to remain
consistent from release to release; field names will be consistent and new functionality will be added as
new fields. These types of changes in XML output will not impact a conventional XML parsing engine.
You can change the CLI output mode by using the
set cli-parameters
command; see
Example
on page 88.
Table 2
Default usernames and passwords
Username
Password
Access level
monitor
!monitor
Monitor (view only)
manage
!manage
Manage (view and change)