Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: Cisco Switch - NTP clock issue

Cisco Switch - NTP clock issue 6 years 10 months ago #32606

  • apit
  • apit's Avatar
  • Offline
  • Senior Member
  • Posts: 227
  • Karma: 0
Hi..

I already configured timezone for my cisco switch (Catalyst 2960G) . Below is the snapshoot.
clock timezone MYT 8
....
....
....
ntp clock-period 36028798
ntp server 202.71.97.92

Output from show clock as below :
#sh clock
.17:10:31.812 MYT Mon Nov 9 2009

The time is correct. Using show logg command & the output ::
#sh logg
Syslog logging: enabled (0 messages dropped, 1 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled)
Console logging: level debugging, 2093 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 2093 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
File logging: disabled
Trap logging: level informational, 2096 message lines logged

Log Buffer (4096 bytes):
PDOWN: Line protocol on Interface GigabitEthernet0/18, changed state to down
4w2d: %LINK-3-UPDOWN: Interface GigabitEthernet0/18, changed state to down
4w2d: %LINK-3-UPDOWN: Interface GigabitEthernet0/18, changed state to up
4w2d: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/18, changed state to up
4w2d: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/18, changed state to down

From the log output , it only show 4w2d and not the real time. Did i missing any command?

Hope reply from you all..

Thanks
The administrator has disabled public write access.

Re: Cisco Switch - NTP clock issue 6 years 10 months ago #32611

  • novembre
  • novembre's Avatar
  • Offline
  • Frequent Member
  • Posts: 58
  • Karma: 0
you probably want something like

[code:1] service timestamps log datetime localtime [/code:1]
The administrator has disabled public write access.

Re: Cisco Switch - NTP clock issue 6 years 10 months ago #32631

  • apit
  • apit's Avatar
  • Offline
  • Senior Member
  • Posts: 227
  • Karma: 0
tq Novembre..It works..
1R1-1>sh logg
Syslog logging: enabled (0 messages dropped, 1 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled)
Console logging: level debugging, 2265 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 2265 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
File logging: disabled
Trap logging: level informational, 2268 message lines logged

Log Buffer (4096 bytes):
down
.Nov 11 02:57:06: %LINK-3-UPDOWN: Interface GigabitEthernet0/43, changed state to down
.Nov 11 07:47:00: %LINK-3-UPDOWN: Interface GigabitEthernet0/32, changed state to up
.Nov 11 07:47:02: %LINK-3-UPDOWN: Interface GigabitEthernet0/32, changed state to down
.Nov 11 07:48:20: %LINK-3-UPDOWN: Interface GigabitEthernet0/32, changed state to up
.Nov 11 07:48:21: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/32, changed state to up

but i can't see "Year" from the log output...
The administrator has disabled public write access.

Re: Cisco Switch - NTP clock issue 6 years 10 months ago #32632

  • novembre
  • novembre's Avatar
  • Offline
  • Frequent Member
  • Posts: 58
  • Karma: 0
add 'year', see this cisco ref guide for all options

[code:1] http://www.cisco.com/en/US/docs/ios/12_3/configfun/command/reference/cfr_1g07.html#wp102955[/code:1]
The administrator has disabled public write access.

Re: Cisco Switch - NTP clock issue 6 years 10 months ago #32634

  • apit
  • apit's Avatar
  • Offline
  • Senior Member
  • Posts: 227
  • Karma: 0
I think the "Year" is not included in IOS version 12.2..
1R1-1(config)#service timestamps log datetime localtime ?
msec Include milliseconds in timestamp
show-timezone Add time zone information to timestamp
<cr>

From your Cisco link stated :
12.2(15)T = The year keyword was added.
The administrator has disabled public write access.

Re: Cisco Switch - NTP clock issue 6 years 10 months ago #32635

  • novembre
  • novembre's Avatar
  • Offline
  • Frequent Member
  • Posts: 58
  • Karma: 0
d'oh! Can you upgrade? Try IOS 15

If you absolutely can't upgrade you might need to check out external syslogging options, your syslog program might be able to timestamp received messages for you (rsyslogd does for me).
The administrator has disabled public write access.
Time to create page: 0.084 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup