关于交换机日志的疑问

作者:思科培训 来源:来自网络 发布时间:09-12-28

学员提问:

3750和2960两台交换机的日志,今天早上通过show logging 显示的,我想知道那些端口的up和down是不是正常,还有就是我想知道这些时间发生的时间是什么,如这条日志:9w2d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to up
前面的 9w2d是什么意思?
这些日志的保存期限是什么?那几个buffers分别代表什么含义?


2960交换机的日志:
yslog logging: enabled (0 messages dropped, 1 messages rate-limited, 0 flushes,
0 overruns, xml disabled, filtering disabled)
Console logging: level debugging, 152 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 152 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
File logging: disabled
Trap logging: level informational, 155 message lines logged

Log Buffer (4096 bytes):
to up
9w2d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to up
9w2d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to down
9w2d: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to down
9w2d: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to up
9w2d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to up
9w2d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to down
9w2d: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to down
9w2d: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to up
9w2d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to up
9w6d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed s
tate to down
9w6d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed s
tate to up
9w6d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed s
tate to down
9w6d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed s
tate to up
11w3d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to down
11w3d: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to down
11w3d: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to up
11w3d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to up
11w3d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to down
11w3d: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to down
11w3d: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to up
11w3d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed
state to up
13w4d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to down
13w4d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to up
13w4d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to down
13w4d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to up
16w4d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to down
16w4d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to up
20w4d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to down
20w4d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to up
20w4d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to down
20w4d: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to up
25w0d: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, chang
ed state to down
25w0d: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, chang
ed state to down
25w0d: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel2, changed st
ate to down
25w0d: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to d
own
25w0d: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to down
25w0d: %LINK-3-UPDOWN: Interface Port-channel2, changed state to down
25w0d: %LINK-3-UPDOWN: Interface GigabitEthernet0/2, changed state to down
25w0d: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to up
25w0d: %LINK-3-UPDOWN: Interface GigabitEthernet0/2, changed state to up
25w0d: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, chang
ed state to up
25w0d: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, chang
ed state to up
25w0d: %LINK-3-UPDOWN: Interface Port-channel2, changed state to up
25w0d: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel2, changed st
ate to up
25w0d: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to u
p
25w5d: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.17.118)
25w5d: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.8.30)
25w5d: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.8.30)
3750交换机日志:
Syslog logging: enabled (0 messages dropped, 1 messages rate-limited, 0 flushes,
0 overruns, xml disabled, filtering disabled)
Console logging: level debugging, 69 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 69 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
File logging: disabled
Trap logging: level informational, 72 message lines logged

Log Buffer (4096 bytes):
hanged state to up
00:01:05: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/5, changed state to up
00:01:05: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/7, changed state to up
00:01:05: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/11, changed state to up
00:01:05: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/12, changed state to up
00:01:08: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1,
changed state to up
00:01:08: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/2,
changed state to up
00:01:08: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/11,
changed state to up
00:01:08: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/12,
changed state to up
00:01:09: %LINK-3-UPDOWN: Interface Port-channel3, changed state to up
00:01:09: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up
00:01:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel3, changed
state to up
00:01:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed
state to up
00:01:38: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state t
o up
00:01:38: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan4, changed state t
o up
00:01:38: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan5, changed state t
o up
00:01:38: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan6, changed state t
o up
00:01:38: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan7, changed state t
o up
00:01:38: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan8, changed state t
o up
00:03:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/4,
changed state to up
00:03:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/5,
changed state to up
00:03:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/7,
changed state to up
00:03:12: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.8.30)
00:13:48: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.8.30)
2d23h: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.8.30)
2d23h: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.8.30)
2d23h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan16, changed state to
down
2d23h: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.8.30)
2d23h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan16, changed state to
up
2d23h: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.8.30)
4d00h: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/10, changed state to up
4d00h: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/10, ch
anged state to up
4d00h: %LINK-3-UPDOWN: Interface Port-channel8, changed state to up
4d00h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel8, changed st
ate to up
4d00h: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/9, changed state to up
4d00h: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/9, cha
nged state to up
4d01h: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.8.30)
4d06h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan4, changed state to d
own
4d06h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan5, changed state to d
own
4d06h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan6, changed state to d
own
4d06h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan7, changed state to d
own
4d06h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan8, changed state to d
own
4d06h: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.17.118)
4d06h: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.17.118)
4d06h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan4, changed state to u
p
4d06h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan5, changed state to u
p
4d06h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan6, changed state to u
p
4d06h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan7, changed state to u
p
4d06h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan8, changed state to u
p
4d06h: %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.17.118)

 

捷盈讲师及学员解答:

9W2d的意思是9weeks2day,就是9周2天。代表的是设备的运行时间,只要设备重启动或者是关机再启动,这个数值都会重置。
网络设备能记录多少条日志是看buffer的大小的,默认情况下,思科设备的buffer大小是4096Kb。