# SP Set Date Subcommand

access: Managers

Sets the date and time on the Service Processor RTC:

> sp set date DATE STRING

Argument | Description
--- | ---
DATE STRING | Specifies the date and time on the Service Processor RTC. The date string is a UTC date of the form YYYY-MM-DD HH:MM:SS.

You can use this command to initially set the platform RTC after the platform has lost CMOS backup power. If the platform is in the state in which the operating system is communicating with the Service Processor, the platform time will override the Service Processor time, which allows the platform and sp event times to be in sync in the event log.

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_InvalidArgument | 4 | Invalid arguments: incorrect or missing. The format of the date string was invalid.
NWSE_NoPermission | 6 | Not authorized to perform this operation.
NWSE_NoMemory | 8 | Insufficient memory.
NWSE_FileError | 18 | File open, missing, or read or write error occurred.

Related Topics

System Management Commands

SP Command