clock (user and privi exec modes)

Sets a device‘s system clock. By default all WiNG devices are shipped with the time zone and time format set to UTC and 24-hour clock respectively. If a device‘s clock is set without resetting the time zone, the time is displayed relative to the UTC (Universal Time Coordinated) – Greenwich Time. To display time in the local time zone format, in the device‘s configuration mode, use the timezone command. You can also reset the time zone at the RF Domain level. When configured as RF Domain setting, it applies to all devices within the domain. Configuring the local time zone prior to setting the clock is recommended. For more information on configuring RF Domain time zone, see timezone.

Note

Note

This command and its syntax is common to both the User Executable and Privilege Executable configuration modes.

Supported in the following platforms:

  • Access Points — AP7502, AP7522, AP7532, AP7562, AP7602, AP7612, AP7622, AP7632, AP7662, AP8163, AP8432, AP8533
  • Wireless Controller — RFS4010
  • Service Platforms — NX5500, NX7500, NX9500, NX9600, VX9000

Syntax

clock set <HH:MM:SS> <1-31> <MONTH> <1993-2035> {on <DEVICE-NAME>}

Parameters

clock set <HH:MM:SS> <1-31> <MONTH> <1993-2035> {on <DEVICE-NAME>}

clock set

Sets a device's software system clock

<HH:MM:SS>

Sets the current time (in military format hours, minutes, and seconds)

Note: By default, the WiNG software displays time in the 24-hour clock format. This setting cannot be changed.

<1-31>

Sets the numerical day of the month

<MONTH>

Sets the month of the year (Jan to Dec)

<1993-2035>

Sets a valid four digit year from 1993 - 2035

on <DEVICE-NAME>

Optional. Sets the clock on a specified device

  • <DEVICE-NAME> – Specify the name of the AP, wireless controller, or service platform.

Examples (User Exec Mode)

The following commands set the time zone and clock for the logged device:

nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#timezone America/Los_Angeles
nx9500-6C8809>clock set 11:24:30 21 Jan 2017
nx9500-6C8809>show clock
2017-01-21 12:14:14 PST
nx9500-6C8809>

Note, if the clock is set without resetting the time zone, the time displays as UTC time, as shown in the following example:

nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#no timezone
nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#commit
nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#show clock
2017-01-21 19:15:55 UTC

nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#

Examples (Privi Exec Mode)

ap8432-070235(config-device-74-67-F7-07-02-35)#timezone America/Los_Angeles
ap8432-070235#clock set 12:51:10 21 Dec 2017
ap8432-070235#show clock
2017-12-21 04:52:06 PST
ap8432-070235#