# SP Set Hostname Subcommand

access: Administrators, Managers

Resets the host name and/or domain name of the Service Processor to the specified name. This name is used by many of the networking programs to identify the machine.

> sp set hostname HOSTNAME

Argument | Description
--- | ---
HOSTNAME | Specifies the name of the host to set.

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. No hostname was specified.
NWSE_InvalidArgument | 4 | One or more arguments were incorrect or invalid. The hostname could not be set. Hostnames must be at least two characters in length.
NWSE_NoPermission | 6 | Not authorized to perform this operation.
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