# Inventory Get Hardware Subcommand

access: All users

Returns information for field-replaceable hardware components. The information includes the name, device type, OEM, manufacture date, hardware revision, and serial number, and part number for each component.

> inventory get hardware {-v | --verbose} [{-H | --noheader}][{-D | --delim <DELIMITER>}]

Argument | Description
--- | ---
{ -v | --verbose } | Displays all columns.
{ -H | --noheader } | Suppresses column headings.
{ -D | --delim } | Delimits columns with the specified delimiter. Headings are also delimited unless suppressed. The delimiter can be any character or string.

To obtain the board revision, run the first command listed below. To obtain the PRS revision, run the second command listed below:

> inventory get hardware -D : |grep Motherboard|awk -F : '{print $5}'

> inventory get hardware -D : |grep PRS|awk -F : '{print $5}'

You can also obtain this information using the sensor get command.

Return Codes

Following are the return values for this command:

Code | Numeric Code | Description
--- | --- | ---
NWSE_Success | 0 | Command successfully completed.
NWSE_InvalidUsage | 1 | Invalid usage: bad parameter usage, conflicting options specified.
NWSE_RPCTimeout | 2 | Request was issued, but was not serviced by the server. RPC procedure timed out and the request may or may not have been serviced by the server.
NWSE_RPCNotConnected | 3 | Unable to connect to the RPC server.

Related Topics

System Management Commands

Inventory Command

Inventory Software Commands

Hardware Inventory Detail