SP Get Hostname Subcommand

access: All users

Displays the current host name and optionally the domain name of the Service Processor. This name is used by many of the networking programs to identify the machine. It is also used to identify a logging subdirectory for event logs.

sp get hostname [-f | --fqdn]

Arguments Description
[-f | --fqdn]

Causes the fully qualified hostname to display.

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.

Related Topics

System Management Commands

SP Command