access: All users
Displays the name of the current primary platform host. The data is refreshed only when the platform is rebooted.
platform get hostname [{-H|--noheader}]
|
Arguments
|
Description
|
|---|---|
|
{-H | --noheader} |
Suppresses column headers.
|
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_NoMemory | 8 | Insufficient memory. |
| NWSE_Busy | 9 | Device or resource is busy. |
| NWSE_RPCConnected | 11 | RPC client already connected. |
| NWSE_RPCConnRefused | 12 | RPC connection refused. |
| NWSE_NoRouteToHost | 13 | No route to host (network down). |
| NWSE_HostDown | 14 | Host is down. |