do not specify the number of messages, the default is to display the last 20 messages in the buffer (−20).
To display the first five messages in the buffer, use the following code:
Catalyst5000> (enable) show logging buffer 5
2000 Aug 21 09:41:12 %SYS−5−MOD_OK:Module 1 is online
2000 Aug 21 09:41:14 %SYS−5−MOD_OK:Module 3 is online
2000 Aug 21 09:41:14 %SYS−5−MOD_OK:Module 2 is online
2000 Aug 21 09:42:16 %PAGP−5−PORTTOSTP:Port 2/1 joined bridge port 2/1
2000 Aug 21 09:42:16 %PAGP−5−PORTTOSTP:Port 2/2 joined bridge port 2/2
Catalyst5000> (enable)
To display the last five messages in the buffer, use this code:
Catalyst5000> (enable) show logging buffer −5
%PAGP−5−PORTFROMSTP:Port 3/1 left bridge port 3/1
%SPANTREE−5−PORTDEL_SUCCESS:3/2 deleted from vlan 1 (PAgP_Group_Rx)
%PAGP−5−PORTFROMSTP:Port 3/2 left bridge port 3/2
%PAGP−5−PORTTOSTP:Port 3/1 joined bridge port 3/1−2
%PAGP−5−PORTTOSTP:Port 3/2 joined bridge port 3/1−2
Catalyst5000> (enable)
87