8-258 C122-E003-02EN
GSWB
CHAPTER 8 CLI Operations
8.3.8.8 show logging trap
This command displays the stored trap log contents.
(1) Synopsis
(2) Options
z tail: Displays the specified number of last log items.
- number: Specifies the number of log items to be displayed (1 to 1023).
(3) Command mode
enabled exec
(4) See also
clear logging trap
(5) Examples
• Displays all the message log contents
• Displays the last message log item
Displayed items:
show logging trap [tail <number>]
switch#show logging trap
seq date hostname logid code messages
---- ------------------- -------- ----- ---- ----------
0001 2001-01-01 00:00:32 switch : 8500 0001 LinkUp <1>
0002 2001-01-01 00:00:32 switch : 8500 0001 LinkUp <2>
0003 2001-01-01 00:00:33 switch : 8500 0001 LinkUp <3>
0004 2001-01-01 00:00:33 switch : 8500 0001 LinkUp <4>
0005 2001-01-01 00:00:33 switch : 8500 0001 LinkUp <5>
0006 2001-01-01 00:00:33 switch : 8500 0001 LinkUp <6>
switch#show logging trap tail 1
seq date hostname logid code messages
---- ------------------- -------- ----- ---- --------------
0474 2004-12-27 17:45:16 switch : 8400 0003 TopologyChange
switch#