1.5.4.1 Local Accounting

Information

Local Accounting records all the CLI and REST access activities by users from all channels. It logs andhelps to track all the configuration changes and show command executions happened at the switch forauditing or accounting purposes. This accounting information is captured and made available locally(Enabled by default and always active) and, if desired, for sending to remote AAA servers:

- Exec Accounting: user login/logout events.
- Command accounting: commands executed by users.
- System accounting: remote accounting On/Off events.
- Interactions on the non-CLI interfaces: REST and WebUI.

The following is not captured or made available as accounting information:

- CLI commands that reboot the switch.
- Interactions in the bash shell. ( On the other hand, logging of "start-shell" CLI is supported . It helps in auditing)

Local accounting logs provide immediate access to user activity and configuration changes directly on the switch, ensuring visibility even when external logging systems are unavailable.

Solution

switch(config)# aaa accounting commands {exec|command|system} local

Impact:

Enhances operational resilience and supports faster troubleshooting during network outages or remote accounting server failures.

See Also

https://workbench.cisecurity.org/benchmarks/24202