Scriptable output format – HP Virtual Connect FlexFabric 10Gb24-port Module for c-Class BladeSystem User Manual

Page 138

Advertising
background image

Command line 138

->show user steve
UserName : steve
Roles : domain,server,network,storage
Role Operations :

FirmwareUpdate,PortMonitoring,RestoreConfig,SaveConfig,SupportFiles
FullName : Steve Johnson
ContactInfo : [email protected]
Enabled : true

Example 3: Stanza output format for displaying all user details

->show user *
UserName : Administrator
Roles : domain,server,network,storage
Role Operations :

FirmwareUpdate,PortMonitoring,RestoreConfig,SaveConfig,SupportFiles
FullName : -- --
ContactInfo : -- --
Enabled : true

UserName : steve
Roles : domain,server,network,storage
Role Operations :

FirmwareUpdate,PortMonitoring,RestoreConfig,SaveConfig,SupportFiles
FullName : Steve Johnson
ContactInfo : [email protected]
Enabled : true

Scriptable output format

Scriptable output format allows scripts to invoke CLI commands and receive command responses that can be

easily parsed by the scripts. This capability is provided by two options that are available: -output=script1 and
-output=script2. These options are described in more detail below. To display output with no headers or

labels, use no-headers as an additional output option value.

IMPORTANT:

If the delimiter is present within the data, then the entire value is surrounded by

double quotes.

When scripting CLI commands, only a single scripting client should perform remote management operations

to a remote VC Manager. If multiple scripting clients are used to perform a heavy load of CLI commands to
a single VC Manager, some management commands might fail. In some cases, the primary module might

need to be reset to recover properly.

Script1 Output Format
The script1 output format can be used to format the output using a name-value pair format, using an
equal sign as the delimiter. All text on the left side of the equal sign designates the "name" of a property,

and the text on the right side of the equal sign designates the "value" of the property. If "no-headers" is

provided as an additional option value, only the values are displayed. Each property is displayed on
a separate line.

Script2 Output Format

Advertising