当前位置:文库下载 > 所有分类 > cisco纪律时间戳及端口状态变化
侵权投诉

cisco纪律时间戳及端口状态变化

大型网络,时间记录非常重要。

buf
service timestamps log datetime msec localtime

service timestamps log datetime msec localtime show-timezone

service timestamps debug uptime

service timestamps log datetime msec localtime

service timestamps log datetime msec localtime
logging buffered 7
logging on






clock set HH:MM:SS XXX DD YYYY


Cisco日志如何显示日期和时间?
我现在的Cisco 4506 的日志显示是X年X周的格式(如1y21w),我怎么样设置才可以让Log显示年月日和时间呢?谢谢!

Cisco4506#show clock
09:55:55.415 GMT Thu Aug 28 2008

Cisco4506#show log
Syslog logging: enabled (0 messages dropped, 6 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled)
Console logging: disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 13983 messages logged, xml disabled,
filtering disabled
Exception Logging: size (8192 bytes)
Count and timestamp logging messages: disabled
Trap logging: level informational, 13987 message lines logged

Log Buffer (4096 bytes):
lan 126 is flapping between port Gi3/3 and port Gi3/5
1y21w: %C4K_EBM-4-HOSTFLAPPING: Host 00:0E:35:B5:79:25 in vlan 126 is flapping between port Gi3/5 and port Gi3/3
1y21w: %C4K_EBM-4-HOSTFLAPPING: Host 00:0E:35:B5:79:25 in vlan 126 is flapping between port Gi3/5 and port Gi3/3
1y21w: %C4K_L2MAN-6-INVALIDSOURCEADDRESSPACKET: (Suppressed 275 times)Packet received with invalid source MAC address (D9:9A:C5:5D:11:B1) on port Gi3/1 in vlan 105
1y21w: %C4K_EBM-4-HOSTFLAPPING: Host 00:0E:35:B5:79:25 in vlan 126 is flapping between port Gi3/5 and port Gi3/3
1y21w: %C4K_EBM-4-HOSTFLAPPING: Host 00:0E:35:B5:79:25 in vlan 126 is flapping between port Gi3/5 and port Gi3/3
UID1067 帖子15 积分65 威望26 阅读权限30 在线时间34 小时 注册时间2005-4-5 最后登录2008-12-4 查看详细资料
TOP


icefired
版主



超级软件邮差

精华4 积分3610 个人空间 发短消息 加为好友 当前离线 2# 大 中 小 发表于 2008-8-28 10:39 只看该作者
这个容易,把系统时间设置正确就可以咯。
#clock set HH:MM:SS XXX DD YYYY
别忘了设置时区
#clock timezone BJT +8白天图生存,晚上求发展.
----------------------------------------
解决问题,创造价值,凝聚财富。
UID55 帖子1422 积分3610 威望2517 阅读权限150 来自广东 在线时间631 小时 注册时间2005-1-28 最后登录2011-2-11 查看详细资料
TOP


sorghum
劳苦功高



精华2 积分536 个人空间 发短消息 加为好友 当前离线 3# 大 中 小 发表于 2008-8-28 14:21 只看该作者
楼上得配置只是调整了时间,还没有


调整显示log和debug时间方式
siwtch(config)#service timestamps debug datetime msec localtime show-timezone
siwtch(config)#service timestamps log datetime

第1页

猜你喜欢

TOP相关主题

返回顶部