Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
6-101
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 6 Security Commands
show accounting log
show accounting log
To display the accounting log contents, use the show accounting log command.
show accounting log [size] [start-time year month day HH:MM:SS] [end-time year month day
HH:MM:SS]
Syntax Description
Command Default None
Command Modes EXEC mode
Command History
Examples This example shows how to display the entire accounting log:
switch# show accounting log
This example shows how to display 400 bytes of the accounting log:
switch# show accounting log 400
This example shows how to display the accounting log starting at 16:00:00 on February 16, 2008:
switch# show accounting log start-time 2008 Feb 16 16:00:00
This example shows how to display the accounting log starting at 15:59:59 on February 1, 2008 and
ending at 16:00:00 on February 29, 2008:
switch# show accounting log start-time 2008 Feb 1 15:59:59 end-time 2008 Feb 29 16:00:00
Related Commands
size (Optional) The amount of the log to display in bytes. The range is from 0 to
250000.
start-time year month
day HH:MM:SS
(Optional) Specifies a start time. The year argument is in yyyy format. The
month is the three-letter English abbreviation. The day argument range is
from 1 to 31. The HH:MM:SS argument is in standard 24-hour format.
end-time year month
day HH:MM:SS
(Optional) Specifies an end time. The year argument is in yyyy format. The
month is the three-letter English abbreviation. The day argument range is
from 1 to 31. The HH:MM:SS argument is in standard 24-hour format.
Release Modification
4.0(0)N1(1a) This command was introduced.
Command Description
clear accounting log Clears the accounting log.