21-60
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 21 Configuring Switch Access Using AAA
Configuring Accounting
Accounting Configuration Guidelines
Follow these guidelines when configuring accounting on the switch:
•
Configure RADIUS and servers before enabling accounting. See the
“Specifying
Servers” section on page 21-17
or the
“Specifying RADIUS Servers” section on
page 21-24
for more information on server setup.
•
Configure RADIUS and keys to encrypt protocol packets before enabling accounting.
See the
“Specifying the Key” section on page 21-19
or the
“Specifying the RADIUS
Key” section on page 21-24
for more information on the key setup.
Note
The amount of DRAM allocated for one accounting event is approximately 500 bytes. The total
amount of DRAM used by accounting depends on the number of
concurrent
accountable events in
the system.
Configuring Accounting
These sections describe how to configure RADIUS and accounting on the switch:
•
Enabling Accounting, page 21-60
•
Disabling Accounting, page 21-61
Enabling Accounting
To enable accounting on the switch, perform this task in privileged mode:
This example shows how to enable stop-only accounting events:
Console> (enable)
set accounting connect enable stop-only
Accounting set to enable for connect events in stop-only mode.
Console> (enable)
Task
Command
Step 1
Enable accounting for connection events.
set accounting connect
enable
{
start-stop
|
stop-only
} {
|
radius
}
Step 2
Enable accounting for EXEC mode.
set accounting exec enable
{
start-stop
|
stop-only
} {
|
radius
}
Step 3
Enable accounting for system events.
set accounting system enable
{
start-stop
|
stop-only
} {
|
radius
}
Step 4
Enable accounting of configuration commands.
set accounting commands
enable
{
config
|
all
}
{
stop-only
}
Step 5
Enable suppression of information for unknown
users.
set accounting suppress null-username
enable
Step 6
Configure accounting to be updated as new
information is available.
set accounting update
{
new-info
| {
periodic
[
interval
]}}
Step 7
Verify the accounting configuration.
show accounting