Setting the date and time using the CLI

Prev Next

Use the CLI commands in this topic to set the time zone on your Central Management System appliance.

Important

NTP synchronization is set by default and must be disabled before you can manually configure the date and time. For information about disabling NTP, see NTP server configuration.

Note

If you manually configure the time of Endpoint Security (HX) servers, be sure the server times of all your Endpoint Security (HX) servers are synchronized. A number of Endpoint Security (HX) services (including PKI services and transport layer security services) require that the dates and times of your Endpoint Security (HX) servers be accurate and synchronized within five seconds of each other. If you use NTP synchronization, the dates and times of your Endpoint Security (HX) servers will be synchronized automatically.

Prerequisites
  • Admin access

To set the date and time:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. (Optional) Use the clock set <HH>:<MM> <YYYY>/<MM>/<DD> command to specify the time and date. For example, the following command sets the time and date to 2:00 p.m. on July 21, 2014:

    hostname (config) # clock set 14:00 2014/07/21
  3. Use the clock timezone <timezone> command to specify the time zone. For example, both of the following commands set the time zone to Pacific Standard Time:

    hostname (config) # clock timezone UTC-offset UTC+8
    hostname (config) # clock timezone America North United_States Pacific

    Note

    The time zone is for display purposes and should match other security device settings.

  4. To restore the default time zone:

    hostname (config) # no clock timezone
  5. View the configured time and date settings:

    hostname (config) # show clock
  6. Save your changes.

    hostname (config) # write memory

Examples

  • Time and date using the North America Central Daylight time zone:

    hostname > show clock
    Time:        16:39:35
    Date:        2014/06/25
    Time zone:   America North United_States Central
                 (US/Central)
    UFC offset: -0500 (UTC minus 5 hours)
    
  • Time and date settings using the default time zone:

    hostname > show clock
    Time:         21:40:37
    Date:         2014/06/25
    Time zone:    UTC 
                  (Etc/UTC)
    UTC offset:   same as UTC