You are here: Home > CLI Commands > Just_CLI_Topics > clock set

clock set

clock set <year> <month> <day> <time>

Description

This command sets the date and time.

Syntax

Parameter

Description

Range

clock set

Sets the time and date.

<year>

Sets the year. Requires all 4 digits.

Numeric

<month>

Sets the month. Give the complete month name.

january-december

<day>

Sets the day.

1–31

time

Sets the time. Specify hours, minutes, and seconds separated by spaces.

0–23 for hours

1–60 for minutes

1–60 for seconds

Usage Guidelines

You can configure the year, month, day, and time. You must configure all four parameters.

Specify the time using a 24-hour clock. You must specify the seconds.

Example

The following example configures the clock to January 1, 2017, at 16:22:52.

(host)[mynode] #clock set 2017 january 1 16 22 52

Command History

Release

Modification

ArubaOS 8.0.0.0

Command introduced.

Command Information

Platforms

License

Command Mode

All platforms

Base operating system.

Enable mode or Config mode on Mobility Master.

/*]]>*/