
Monitoring and Clearing the Local AAA Accounting Log
The Cisco NX-OS device maintains a local log for the AAA accounting activity. You can monitor this log
and clear it.
SUMMARY STEPS
1.
show accounting log
[
size
|
last-index
|
start-seqnum number
|
start-time year month day hh:mm:ss
]
2.
(Optional)
clear accounting log
[
logflash
]
DETAILED STEPS
Purpose
Command or Action
Displays the accounting log contents. By default, the
command output contains up to 250,000 bytes of the
show accounting log
[
size
|
last-index
|
start-seqnum
number
|
start-time year month day hh:mm:ss
]
Step 1
accounting log. You can use the
size
argument to limit
Example:
command output. The range is from 0 to 250000 bytes. You
switch#
show accounting log
can also specify a starting sequence number or a starting
time for the log output.The range of the starting index is
from 1 to 1000000. Use the
last-index
keyword to display
the value of the last index number in the accounting log
file.
Clears the accounting log contents. The
logflash
keyword
clears the accounting log stored in the logflash.
(Optional)
clear accounting log
[
logflash
]
Example:
Step 2
switch# clear aaa accounting log
Verifying the AAA Configuration
To display AAA configuration information, perform one of the following tasks:
Purpose
Command
Displays AAA accounting
configuration.
show aaa accounting
Displays AAA authentication login
configuration information.
show aaa authentication
[
login
{
ascii-authentication
|
chap
|
error-enable
|
mschap
|
mschapv2
}]
Displays the AAA server group
configuration.
show aaa groups
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
34
Configuring AAA
Monitoring and Clearing the Local AAA Accounting Log