beautypg.com

Scriptable output format – HP Integrity BL870c i2 Server-Blade User Manual

Page 76

background image

Command line 76


UserName : steve
Privileges : domain,server,network,storage
FullName : Steve Johnson
ContactInfo : [email protected]
Enabled : true

UserName : brad
Privileges : domain,server
FullName : Brad Mills
ContactInfo : [email protected]
Enabled : true

UserName : jim
Privileges : network
FullName : Jimmy Joe
ContactInfo : [email protected]
Enabled : true

UserName : alice
Privileges : storage
FullName : Alice Candle
ContactInfo : [email protected]
Enabled : false

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.

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
The script2 output format can be used to format all instance data in a single line, using a semi-colon
as the delimiter for the data. The first line contains the property names. This format is consistent with
a "table view" of the data, where the first line is represented by a list of column labels, while the

remaining lines provide the actual data being displayed. Each line represents a single instance of
data. For example, in the case of showing users, each line provides all data corresponding to a
single user instance.

This manual is related to the following products: