xStack
®
DGS-3120 Series Layer 3 Managed Gigabit Ethernet Switch CLI Reference Guide
88
Example
To create a user-defined accounting method list called “shell_acct”:
DGS-3120-24TC:admin#create accounting method_list_name shell_acct
Command: create accounting method_list_name shell_acct
Success.
5-36 config accounting
Description
This command is used to a user-defined or default method list of accounting methods.
Format
config accounting [default | method_list_name <string 15>] method {tacacs+ | radius |
server_group <string 15> | none}
Parameters
default - Specify the default method list of accounting methods.
method_list_name - Specify the user-defined method list of accounting methods.
<string 15> - Enter the name of the method list.
method - Specify the protocol.
tacacs+ - Specify the built-in TACACS+ server group.
radius – Specify the built-in RADIUS server group.
server_group - Specify the user-defined server group. If the group contains TACACS and
XTACACS server, it will be skipped in accounting.
<string 15> - Enter the name of server group.
none - Specify no accounting.
Restrictions
Only Administrator-level users can issue this command.
Example
To configure a user-defined method list called “shell_acct”, that specifies a sequence of the built-in
TACACS+ server group, followed by the RADIUS server group for accounting service on the
Switch:
DGS-3120-24TC:admin#config accounting method_list_name shell_acct method
tacacs+ radius
Command: config accounting method_list_name shell_acct method tacacs+ radius
Success.