show time

show time {detail}

Description

Shows the current time on the switch.

Syntax Description

detail In addition to the current time, this option shows boot time, time zone, and the clock source.

Default

N/A.

Usage Guidelines

The date, time, time zone abbreviation, and offset from UTC appear in the following format: <weekday_abbreviation> <month_abbreviation> <day_of_month> <HH:MM:SS> <timezone>(UTC<+|-><utc_offset>) <year>

If the detail option is selected, the following appears in the presented format:
Current Time: <current_time> 
Boot Time: <boot_time> 
Timezone: <DST_status> <GMT_offset> <timezone_name> 
          <DST_in_effect> 
          <DST_begin> 
          <DST_end> 
Source: [Local | NTP | SNTP] <ntp_peer_mode> <sntp_ntp_address> 

<ntp_peer_mode> is only valid when the source is NTP. <ntp_peer_mode> can be any of the following:

<sntp_ntp_address> is the peer address when source is NTP. <sntp_ntp_address> is the server address when source is SNTP.

The source is determined as follows:

If SNTP is enabled and active, SNTP is assumed to be the clock source. Otherwise, if NTP peer mode is not zero (unspecified) and the peer address is not 0.0.0.0, NTP is assumed to be the clock source. Otherwise, the clock source is local.

Example

The following example shows detailed time information on the switch:

# show time detail
Current Time:     Wed Oct 25 03:43:22 2017
Boot Time:        Sat Oct 21 04:12:53 2017
Timezone:         [Auto DST Disabled] GMT Offset: 0 minutes, name is UTC.
Source:           Local

History

This command was first available in ExtremeXOS 22.4.

Platform Availability

This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, and X695 series switches.