Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

AAA Accounting

Direct answer

AAA accounting records what users did and when — logins, commands, session times — and sends the records to a TACACS+ or RADIUS server for audit and billing.

When to use this

Use it when you need a record of who logged in and which commands were run.

First 30 seconds

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.

Operational verification

session/command → accounting record → AAA server

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · IOS/IOS XE
Key commandshow aaa servers
Scope / prerequisiteUse it when you need a record of who logged in and which commands were run.
Show · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.

Command lookup Jump straight to Cisco syntax
Key points
  • 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
  • local fallback 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.
Key checks
  • show aaa sessions — sessions
  • show 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

TypeRecords
execShell session start and stop, with user, source and duration
commands <level>Each command at that privilege level
connectionOutbound connections from the device (telnet/ssh from the CLI)
systemSystem events such as reloads
networkNetwork sessions (802.1X, PPP)

start-stop versus stop-only

OptionBehaviour
start-stopRecord at the start and at the end
stop-onlyRecord at the end only
noneNo accounting for that list

Using accounting

QuestionAccounting 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Embedded reference data

Quick lookup tables

Accounting · technical reference

Compact network access/security mechanics, policy and evidence boundaries for fast lookup.

EventTypical value
EXEC start/stopSession accountability
Command recordAdministrative action trail
TimestampCorrelation with other evidence
Server receiptSeparate from device send attempt
Confirmation

Confirm action

Continue?