HP MSR2000/3000/4000 Router Series Fundamentals Command Reference
50
command accounting
Use command accounting to enable command accounting.
Use undo command accounting to restore the default.
Syntax
command accounting
undo command accounting
Default
Command accounting is disabled, and the accounting server does not record executed commands.
Views
User line view, user line class view
Predefined user roles
network-admin
Usage guidelines
When command accounting is enabled but command authorization is not, every executed command is
recorded on the HWTACACS server.
When both command accounting and command authorization are enabled, only authorized commands
that are executed are recorded on the HWTACACS server.
Invalid commands issued by users are not recorded.
Examples
# Enable command accounting for user line VTY 0.
<Sysname> system-view
[Sysname] line vty 0
[Sysname-line-vty0] command accounting
Related commands
• command authorization
• accounting command (Security Command Reference)
command authorization
Use command authorization to enable command authorization.
Use undo command authorization to restore the default.
Syntax
command authorization
undo command authorization
Default
Command authorization is disabled. Logged-in users can execute commands without authorization.
Views
User line view, user line class view










