Use it when you need a record of who logged in and which commands were run.
AAA Accounting
1. Accounting records who did what (commands, sessions).
2. aaa accounting exec and commands for admin audit.
3. Send to TACACS+.
4. Retain logs.
5. Review regularly.
session/command → accounting record → AAA server
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show aaa serversShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification and output interpretation Verify boundary
Verify that a representative login/session or command causes the expected accounting record on the device and is received by the server with correct username, network device, event type and timestamp. Check both start and stop records where configured. A device-side 'record sent' counter is not the same as durable server ingestion, so correlate both ends. Also verify that sensitive values are not unnecessarily exposed in logs. Verify each AAA layer separately.
Step 2 Verification & troubleshooting Narrow the fault
2. Verify shared secret, ports and group membership.
3. Verify line/service method list.
5. Show fallback safely.
- Authentication, authorization and accounting are separate decisions
- TACACS+ commonly separates AAA functions and encrypts the payload
- RADIUS commonly combines authentication/authorization and is widely used for network access
localfallback is evaluated only according to method-list reachability/failure semantics, not every rejection- Test new method lists on a spare session before closing the known-good session.
show aaa sessions— sessionsshow running-config | include aaa accounting— accounting config- TACACS+/RADIUS server accounting log — records
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
Accounting records what users did and when
The Catalyst 9300 TACACS+ guide describes aaa accounting exec start-stop and aaa accounting network start-stop, which send a record when a session starts and when it ends. Command accounting additionally sends every command entered at a given privilege level.
C9300(config)# aaa accounting exec default start-stop group ISE
C9300(config)# aaa accounting commands 1 default start-stop group ISE
C9300(config)# aaa accounting commands 15 default start-stop group ISE
C9300(config)# aaa accounting connection default start-stop group ISE
C9300(config)# aaa accounting system default start-stop group ISE
C9300# show accounting
C9300# show tacacs
Tacacs+ Server - public :
Server name: ISE-1
Server address: 10.10.50.31
Server port: 49
Socket opens: 4231
Socket closes: 4231
Total Packets Sent: 12872
Total Packets Recv: 12872
Record types
| Type | Records |
|---|---|
exec | Shell session start and stop, with user, source and duration |
commands <level> | Each command at that privilege level |
connection | Outbound connections from the device (telnet/ssh from the CLI) |
system | System events such as reloads |
network | Network sessions (802.1X, PPP) |
start-stop versus stop-only
| Option | Behaviour |
|---|---|
start-stop | Record at the start and at the end |
stop-only | Record at the end only |
none | No accounting for that list |
Using accounting
| Question | Accounting answers |
|---|---|
| Who shut interface Gi1/0/14 at 02:13? | Command accounting |
| Who logged in to the core switch last night? | Exec accounting |
| Was the switch reloaded? | System accounting |
Pair accounting with local logging (archive log config, syslog). If the accounting server is unreachable, records can be lost, while the local archive still exists.
Documented example, not captured output.
Quick reference
AAA accounting records what administrators did: session start and stop, and with TACACS+ every command entered with user, time and device. It provides the audit trail for change investigation.
aaa accounting exec default start-stop group TACACS
aaa accounting commands 15 default start-stop group TACACS
Documented example, not captured output.
Correlate accounting records with configuration backups to see who made each change.
State model and technical mechanics
Accounting emits records for configured events such as EXEC start/stop, commands or network/service sessions. Records normally contain identity, device/session context, timestamps and event attributes sufficient for central logging and audit. Accounting is observational: it reports what the device is configured to record and send; it does not itself permit or deny the action. Start-stop and stop-only behavior differ in what can be reconstructed if a session is interrupted, so the accounting method must match the audit objective.
Limits and common misconceptions
Accounting is not authorization and a complete log is not evidence that the action was safe. Missing records can result from configuration scope, server reachability, retention or clock mismatch, while successful authentication can continue depending on the method design. Separate event generation, transport, server receipt and retention. Use accounting as audit evidence, not as a substitute for access policy or change control.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Choose accounting classes that provide useful administrative traceability without flooding the server with low-value events. Centralize records on a resilient TACACS+/RADIUS service, maintain synchronized time, and preserve device identity/source context so logs can be correlated. Treat accounting-server retention and integrity as part of the design. If the policy must fail closed when accounting is unavailable, document that explicitly because availability/security trade-offs differ from ordinary best-effort logging.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → AAA → Accounting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Quick lookup tables
Accounting · technical reference
Compact network access/security mechanics, policy and evidence boundaries for fast lookup.
| Event | Typical value |
|---|---|
| EXEC start/stop | Session accountability |
| Command record | Administrative action trail |
| Timestamp | Correlation with other evidence |
| Server receipt | Separate from device send attempt |