Use it after configuring or changing AAA, and when administrators cannot log in.
Verification · AAA
Verifying AAA means testing that login, authorization and accounting work against the server, and that the fallback works when the server is unreachable.
1. test aaa group <group> <user> <password> new-code — accepted.
2. show aaa servers — counters for requests and responses.
3. Log in through SSH as that user; show privilege.
4. Server unreachable → local account accepted?
5. Accounting: records arrive on the server.
aaa new-model → method list defined → applied to lines → login request sent to the first method → server answers accept/reject → fallback only if unavailable → authorization and accounting recorded
Verify method-list selection and authorization/accounting result for the actual service.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
test aaa group <group> <username> <password> legacyPrimary Commands
Configuration and operational commands for this Topic.
Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show running-config | section aaaShowDisplay only the AAA part of the running configuration.
Use when: Use this command at the AAA / RADIUS / TACACS+ boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Server reachability does not prove credentials, authorization or accounting; login success does not prove command authorization.
Cisco IOS / IOS XE · mixedshow aaa serversShowInspect AAA server state/statistics.
Use when: Use after confirming the Security target and before changing state.
Quick note: Cross-platform security / Cisco / Linux / Windows. A control being configured does not prove enforcement, visibility, containment or acceptable residual risk.
IOS/IOS XE · mixedVerification & 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 First 30 seconds Verify boundary
Immediate answer: Verify method-list selection, server reachability, authentication result, authorization and accounting for the exact access service.
Verification chain: access service → method list → server selection/transport → authentication → authorization → accounting → usable session
Stop condition: AAA server reachability or successful authentication does not show authorization, accounting or the intended method list was used.
Step 2 Known-good, broken and proof-boundary verification Verify boundary
Known-good AAA means the intended method list is bound to the access path, the expected server group is contacted from the correct source, authentication succeeds for a controlled account, required authorization works and accounting is produced when configured. Broken state can be fallback-only success, timeout, reject or phase-specific authorization failure. Server reachability alone does not show AAA success, and login success does not show authorization/accounting; those are explicit limits of what the checks show.
Step 3 Verification and output interpretation Verify boundary
Capture the method list, selected server, transaction result and server-side log. Then verify post-login privilege/command authorization and confirm accounting records where configured. Compare timestamps and source device identity. If local fallback appears, determine whether it followed an operational server error or was selected by policy. The final evidence set should answer identity accepted? privileges correct? actions recorded? independently. Verify each AAA layer separately.
Step 4 Verification & troubleshooting Narrow the fault
2. Verify shared secret, ports and group membership.
3. Verify line/service method list.
5. Show fallback safely.
Step 5 Failure isolation: observation → implication → next check Narrow the fault
If login fails immediately, confirm the correct line/console/VTY method list and local fallback before blaming the server. If requests time out, inspect source IP/VRF, route, ACL/firewall and server availability. If the server replies reject, compare user policy, shared secret/key and requested service. If authentication succeeds but commands are denied, move to authorization; if accounting is missing, inspect that phase independently. Preserve one test user and timestamp for server-log correlation.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Test both outcomes: a valid user is accepted, an invalid one rejected. Then simulate a server outage and confirm the local fallback. A rejected login does not fall back — that is by design.
show running-config | section aaa— method lists for login, exec and commands.show aaa servers— RADIUS/TACACS+ servers, state and request counters.show aaa sessions— active AAA sessions.test aaa group <group> <user> <password> new-code— test authentication against a server.debug aaa authentication— step-by-step decision (briefly).
ReferenceHow it works1 section · depth on demand
Mechanics, state owner and dependency boundary
AAA verification separates method-list selection, server reachability, authentication/authorization/accounting exchange and local fallback behavior. A reachable RADIUS/TACACS+ server does not show the device is using the intended method list, and successful authentication does not show command authorization or accounting. Source interface/VRF, shared-secret or key state, server-group order and timeout/deadtime handling are distinct dependencies.
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
Verifying AAA without locking yourself out
AAA changes affect how you log in. Verify from a second session while the first one stays open.
C9300# show aaa method-lists all
C9300# show aaa servers
RADIUS: id 1, priority 1, host 10.10.50.31, auth-port 1812, acct-port 1813
State: current UP, duration 812331s, previous duration 0s
Dead: total time 0s, count 0
C9300# show tacacs
C9300# test aaa group ISE alice <password> new-code
Sending password
User successfully authenticated
USER ATTRIBUTES
username 0 "alice"
priv-lvl 0 15
C9300# show aaa sessions
C9300# debug aaa authentication ! briefly
C9300# debug tacacs ! briefly
The Catalyst 9300 TACACS+ guide documents show tacacs for server statistics, and notes that the default method list applies to all lines unless a named list overrides it.
Verification checklist
| Check | What it confirms |
|---|---|
show aaa method-lists all | Which lists exist and their method order |
show running-config \| section line | Which list each line uses |
test aaa group <grp> <user> <pw> new-code | The server accepts the user and returns attributes (for example priv-lvl 15) |
show tacacs / show aaa servers | Server reachable; packets sent and received; no dead state |
| Login from a new SSH session | Real end-to-end result |
| Command authorization test | A command a restricted user must not run is denied |
| Accounting record on the server | Records arrive |
Failure patterns
| Symptom | Likely cause |
|---|---|
% Authorization failed right after login | Exec authorization denied; missing shell profile |
| Login takes 10–20 s before falling back | Server timeouts; reduce timeout or fix reachability |
| Works on VTY, not on console | Console uses a different list, or aaa authorization console |
| Server sees requests from an unexpected IP | Source interface not set |
Safe change procedure
1. Keep a console session or a second SSH session open.
2. Configure servers and groups, then test aaa.
3. Apply method lists to VTY lines first, and test.
4. Apply to the console last, with local fallback.
Documented example, not captured output.
Method
AAA verification confirms servers are reachable and logins follow the intended method lists.
1. show aaa servers — server state and response statistics.
2. test aaa group TACACS user1 <password> new-code — authenticate without logging in.
3. Log in from a second session while keeping the first one open.
4. Check the server's live logs for the request and result.
5. Check privilege level and command authorisation (show privilege).
| Symptom | Likely cause |
|---|---|
| Server DEAD | Reachability, source interface, key mismatch |
| Rejected despite correct password | Server policy, wrong user group |
| Logged in at wrong privilege | Missing exec authorisation attributes |
| Local login used unexpectedly | Server unreachable |
State model and technical mechanics
A useful AAA verification model starts with the configured method lists and selected server groups, then checks the actual runtime transaction. Authentication, EXEC/command authorization and accounting should be observed as distinct request types. The device can have multiple access paths—console, VTY/SSH and possibly API/HTTP—whose AAA bindings differ. Verification therefore needs the exact access method and username/session context rather than only a generic 'AAA works' statement.
Limits and common misconceptions
One successful test session is not universal evidence: another VTY range, source VRF, username group or command set can follow a different policy. Likewise, a failed login does not identify whether transport, authentication policy or authorization caused the failure. Verification should preserve exact context and separate the layers so ChatGPT can reason about a real error from the captured evidence.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Maintain a known safe test identity and a documented recovery method. When validating a change, use a second session so the existing administrative session remains available. Test expected allow and expected deny behavior, not only a positive login. Avoid production verification that depends on intentionally disabling all AAA servers; method/fallback state can be confirmed from server health and controlled testing without manufacturing a management outage.
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 → Verification. 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%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Quick lookup tables
Verification · technical reference
Compact network access/security mechanics, policy and evidence boundaries for fast lookup.
| Check | Evidence target |
|---|---|
| Method/server | Which path handled request |
| Authentication | Identity success/reject/error |
| Authorization | Effective privilege/commands |
| Accounting | Server received expected records |