AAA Commands

Use these M4500 CLI commands to create authentication login and accounting method lists, apply accounting to console, Telnet, and SSH lines, and clear statistics.

This section describes the commands you use to add, manage, and delete system users. Software has two default users: admin and guest. The admin user can view and configure system settings, and the guest user can view settings.

Note: You cannot delete the admin user. There is only one user allowed with read/write privileges. You can configure up to five read-only users on the system.

show accounting

This command displays ordered methods for accounting lists.

Format show accounting
Mode

Privileged EXEC

User EXEC

Example: The following shows example CLI display output for this command.

CODE
(M4500-32C) #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 sent 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

show accounting methods

This command displays configured accounting method lists.

Format show accounting methods
Mode

Privileged EXEC

User EXEC

Example: The following shows example CLI display output for this command.

CODE
(M4500-32C) #show accounting methods

AcctType   MethodName       MethodType   Method1   Method2
--------   --------------   ----------   -------   -------
Exec       dfltExecList     none         tacacs
Commands   dfltCmdList      none         tacacs
DOT1X      dfltDot1xList    start-stop   radius

Line           EXEC Method List   Command Method List
------------   ----------------   -------------------
Console        dfltExecList       dfltCmdList
Telnet         dfltExecList       dfltCmdList
SSH            dfltExecList       dfltCmdList

aaa authentication login

This command creates an authentication login list. The <listname> is up to 12 alphanumeric characters and is not case sensitive. Up to 5 authentication login lists can be configured on the switch.

If the authentication login list does not exist, a new authentication login list is first created and then the authentication methods are set in the authentication login list. The possible method values are enable, line, local, none, radius and tacacs.

To authenticate a user, the authentication methods in the user’s login will be attempted in order until an authentication attempt succeeds or fails.

Note: The default login list included with the default configuration cannot be changed
Default

.defaultList. Used by the console and only contains the method local.

.networkList. Used by telnet and SSH and only contains the method local.

Format aaa authentication login {<listname> | default | network} method1 [method2…]
Mode Global Config
Parameter Definition
default Uses the listed authentication methods that follow this argument as the default list of methods when a user logs in.
listname Character string of up to 15 characters used to name the list of authentication methods activated when a user logs in.
method1… At least one from the following:
[method2…] enable. Uses the enable password for authentication. line. Uses the line password for authentication. local. Uses the local username database for authentication. none. Uses no authentication. radius. Uses the list of all RADIUS servers for authentication. tacacs. Uses the list of all TACACS servers for authentication.

Example: The following shows an example of the command.

CODE
(M4500-32C) (Config)#aaa authentication login default radius local enable none

no aaa authentication login

This command returns to the default.

Format no aaa authentication login {<listname> | default | network}
Mode Global Config

aaa accounting

Use this command in Global config mode to create an accounting method list for either user EXEC sessions or for user-executed commands. This list is identified by default or a user-specified listname. Accounting records, when enabled for a line-mode, can be sent at both the beginning and at the end (start-stop) or only at the end (stop-only). If none is specified, then accounting is disabled for the specified list. If tacacs is specified as the accounting method, accounting records are notified to a TACACS+ server. If radius is the specified accounting method, accounting records are notified to a RADIUS server.

Note:

Please note the following:

  • A maximum of five Accounting Method lists can be created for each exec and command type.
  • The same list-name can be used for both exec and commands accounting type.
  • AAA Accounting for commands with RADIUS as the accounting method is not supported.
  • Only the default Accounting Method list can be created for DOT1X. There is no provision to create mode.
  • Start-stop or None are the only supported record types for DOT1X accounting. Start-stop enables accounting and None disables accounting.
  • RADIUS is the only accounting method type supported for DOT1X accounting.
Format aaa accounting {exec | commands | dot1x} {default | <listname>} {start-stop | stop-only | none}

method1 [method2]

Parameter Definition
exec Provides accounting for a user EXEC terminal sessions.
commands Provides accounting for all user executed commands.
dot1x Provides accounting for DOT1X user commands.
default The default list of methods for accounting services.
listname Character string used to name the list of accounting methods.
start-stop Sends a start accounting notice at the beginning of a process and a stop accounting notice at the end of a process.
stop-only Sends a stop accounting notice at the end of the requested user process.
none Disables accounting services on this line.
method Use either TACACS or the radius server for accounting purposes.
Mode Global Config

no aaa accounting

This command deletes the accounting method list.

Format no aaa accounting {exec | commands | dot1x} {default | <listname>}
Mode Global Config

Example: The following shows an example of the command.

CODE
(M4500-32C) (Config)#aaa accounting commands userCmdAudit stop-only tacacs
(M4500-32C) (Config)#no aaa accounting commands userCmdAudit

accounting

Use this command in Line Configuration mode to apply the accounting method list to a line config (console/telnet/ssh).

Format accounting {exec | commands} {default | <listname>}
Mode Line Config
Parameter Definition
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 list of methods for accounting services.
listname Enter a string of not more than 15 characters.

Example: The following shows an example of the command.

CODE
(M4500-32C) (Config)#line console
(M4500-32C) (Config-line)#accounting exec default
(M4500-32C) (Config-line)#exit

no aaa accounting

Use this command to remove accounting from a Line Configuration mode.

Format no accounting {exec | commands}
Mode Line Config

clear aaa ias-users

This command clears the IAS user database.

Format clear aaa ias-users
Mode Privileged Exec

Example:

CODE
(M4500-32C) #clear aaa ias-users
Are you sure you want to clear all IAS user entries (y/n) y
All Internal Authentication Server user database entries are cleared.

clear accounting statistics

This command clears the accounting statistics.

Format clear accounting statistics
Mode Privileged Exec

Example:

CODE
(M4500-32C) #clear accounting statistics