cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3740
Views
1
Helpful
10
Replies

Nexus 9508 log timezone

Y C
Level 1
Level 1

The timestmaps in the logs (show logging, even show clock) are in UTC timezone. Is there anyway to get them to show in whichever timezone desired? I already have "clock timezone xxxxx" already set. I saw reference to "service timestamp ...." command online but it doesn't seem to be a valid command on the nexus platform.

1 Accepted Solution

Accepted Solutions

i just tried my nexus, i do not see any issue

 

switch# show clock
22:08:43.289 UTC Fri Dec 20 2019
Time source is NTP
switch# show ntp status
Distribution : Disabled
Last operational state: No session
switch# config t
switch(config)# clock timezone GMT 0 0
switch(config)# end
switch# show clock
22:09:21.746 GMT Fri Dec 20 2019
Time source is NTP

 

if this is not in the production kit, try to remove the clock and add again and let us know.

 

Can you also post show version ?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

10 Replies 10

Reza Sharifi
Hall of Fame
Hall of Fame

So, this command does not work on Nexus?

 

service timestamps log datetime localtime show-timezone

 

HTH

That command does not appear to be available on the nexus platform.

 

xxx# conf t
Enter configuration commands, one per line. End with CNTL/Z.
xxx(config)# service timest?
^
% Invalid command at '^' marker.
xxx(config)# service ?
unsupported-transceiver Configure support for transceivers not supported by Cisco

xxx(config)#

That's already been done. show clock and show logging still report in UTC for whatever reason.

What is the output of

show clock detail

HTH

What time zone are you ? show us your clock config and NTP config

 

show clock

show ntp status.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

In PST.

 

Added the detail in a screenshot - note the time matches the windows clock in systray. NTP, etc is working fine - the time is synched and proper.... just that it's being displayed in UTC instead.

i just tried my nexus, i do not see any issue

 

switch# show clock
22:08:43.289 UTC Fri Dec 20 2019
Time source is NTP
switch# show ntp status
Distribution : Disabled
Last operational state: No session
switch# config t
switch(config)# clock timezone GMT 0 0
switch(config)# end
switch# show clock
22:09:21.746 GMT Fri Dec 20 2019
Time source is NTP

 

if this is not in the production kit, try to remove the clock and add again and let us know.

 

Can you also post show version ?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Code is 7.0(3)I2(2d). We will be upgrading shortly due to an unrelated bug we hit.

 

This is a pure L2 switch so time shouldn't matter. I took out the "clock timezone PST -8 0" and put it back in - now show clock and logging show the proper time zone. Super weird... but hey, I'm all for simple fixes. Thanks!

Glad it works, I know sometimes it happens, finally, it got over now.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card