Command Reference Guide

User Account Commands
CLI Command Reference
September 2014 Page 98
HP Moonshot Switch Module CLI Command Reference
accounting
Use this command in Line Configuration mode to apply the accounting method list to a line config (console/
telnet/ssh).
Example: The following is a example of the command.
(Routing) #configure
(Routing) (Config)#line telnet
(Routing)(Config-line)# accounting exec default
no accounting
Use this command to remove accounting from a Line Configuration mode.
show accounting
Use this command to display ordered methods for accounting lists.
Example: The following shows example CLI display output for the command.
(Routing) #show accounting
Number of Accounting Notifications sent at beginning of an EXEC session: 0
Errors when sending Accounting Notifications beginning of an EXEC session: 0
Number of Accounting Notifications at end of an EXEC session: 0
Errors when sending Accounting Notifications at end of an EXEC session: 0
Number of Accounting Notifications sent at beginning of a command execution: 0
Errors when sending Accounting Notifications at beginning of a command execution: 0
Number of Accounting Notifications sent at end of a command execution: 0
Errors when sending Accounting Notifications at end of a command execution: 0
Format
accounting {exec | commands } {default | listname}
Mode Line Configuration
Parameter Description
exec Causes accounting for an EXEC session.
commands This causes accounting for each command execution attempt. If a user is enabling
accounting for exec mode for the current line-configuration type, the user will be logged
out.
default The default Accounting List
listname Enter a string of not more than 15 characters.
Format
no accounting {exec|commands]
Mode Line Configuration
Format
show accounting
Mode Privileged EXEC