HP Virtual Connect FlexFabric 10Gb24-port Module for c-Class BladeSystem User Manual

Page 139

Advertising
background image

Command line 139

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.

The following examples provide some common scenarios for using the script output format options.
Example 1: Scriptable output format displaying all enclosures

->show enclosure -output=script1
ID=enc0
Name=Enclosure1
Import Status=Imported
Serial Number=USE0000BK2
Part Number=403321-021
Asset Tag=OA ASSET 453

Example 2: Scriptable output format displaying user "Administrator" information

->show user Administrator -output=script1
User Name=Administrator
Roles=domain,server,network,storage
Role

Operations=FirmwareUpdate,PortMonitoring,RestoreConfig,SaveConfig,Suppor

tFiles
Full Name=-- --
Contact Info=-- --
Enabled=true

Example 3: Scriptable output format displaying all users (with table header)

->show user -output=script2
UserName;Roles;Role Operations;FullName;Contact Info;Enabled
Administrator;domain server network storage;FirmwareUpdate PortMonitoring

RestoreConfig SaveConfig SupportFiles;-- --;-- --;true
steve;domain server network storage;FirmwareUpdate PortMonitoring

RestoreConfig SaveConfig SupportFiles;Steve

Johnson;[email protected];true

Example 4: Scriptable output format displaying all users (no table header)

->show user -output=script2,no-headers
Administrator;domain server network storage;FirmwareUpdate PortMonitoring

RestoreConfig SaveConfig SupportFiles;-- --;-- --;true
steve;domain server network storage;FirmwareUpdate PortMonitoring

RestoreConfig SaveConfig SupportFiles;Steve

Johnson;[email protected];true

Example 5: Scriptable output format displaying a single user (with table header)

->show user steve -output=script2
UserName;Roles;Role Operations;FullName;Contact Info;Enabled
steve;domain,server,network,storage;FirmwareUpdate,PortMonitoring,Restor

eConfig,SaveConfig,SupportFiles;Steve Johnson;[email protected];true

Example 6: Scriptable output format displaying a single user (no table header)

Advertising