12-20-2019 11:27 AM
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.
Solved! Go to Solution.
12-20-2019 02:11 PM
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 ?
12-20-2019 11:44 AM - edited 12-20-2019 11:52 AM
So, this command does not work on Nexus?
service timestamps log datetime localtime show-timezone
HTH
12-20-2019 11:46 AM
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)#
12-20-2019 11:54 AM - edited 12-20-2019 11:57 AM
How about just configuring ?
clock timezone <zone> -x x
12-20-2019 11:59 AM
That's already been done. show clock and show logging still report in UTC for whatever reason.
12-20-2019 12:14 PM
What is the output of
show clock detail
HTH
12-20-2019 12:30 PM
What time zone are you ? show us your clock config and NTP config
show clock
show ntp status.
12-20-2019 01:20 PM
12-20-2019 02:11 PM
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 ?
12-20-2019 02:27 PM
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!
12-20-2019 02:33 PM
Glad it works, I know sometimes it happens, finally, it got over now.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide