HP Integrity BL870c i2 Server-Blade User Manual
Page 77
Command line 77
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
Privileges=domain,server,network,storage
Full Name=
Contact Info=
Enabled=true
Example 3: Scriptable output format displaying all users (with table header)
->show user -output=script2
UserName;Privileges;FullName;ContactInfo;Enabled
Administrator;domain,server,network,storage;Steve
Johnson;[email protected];true
Admin;domain,server,network,storage;Admin;Admin;true
steve;domain,server,network,storage;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;Steve
Johnson;[email protected];true
Admin;domain,server,network,storage;Admin;Admin;true
steve;domain,server,network,storage;Steve
Johnson;[email protected];true
Example 5: Scriptable output format displaying a single user (with table header)
->show user steve -output=script2
UserName;Privileges;FullName;ContactInfo;Enabled
steve;domain,server,network,storage;Steve
Johnson;[email protected];true
Example 6: Scriptable output format displaying a single user (no table header)
->show user steve -output=script2,no-headers
steve;domain,server,network,storage;Steve
Johnson;[email protected];true