Exec Authorization

Use these commands to configure exec authorization for a line mode.

When exec authorization is configured for a line mode, the user may not be required to use the enable command to enter Privileged EXEC mode. If the authorization response indicates that the user has sufficient privilege levels for Privileged EXEC mode, then the user bypasses User EXEC mode entirely.

The exec authorization usage scenario is as follows:

  1. Configure Authorization Method List

    CODE
    aaa authorization exec listname method1 [method2....]
  2. Apply AML to an Access Line Mode (console, telnet, SSH)

    CODE
    authorization exec listname
  3. When the user logs in, in addition to authentication, authorization will be performed to determine if the user is allowed direct access to Privileged EXEC mode.

Format aaa authorization {commands | exec} {default | list-name} method1 [method2]
Mode Global Config
Parameter Description
commands Provides authorization for all user-executed commands.
exec Provides exec authorization.
default The default list of methods for authorization services.
list-name Alphanumeric character string used to name the list of authorization methods.
method TACACS+, RADIUS, Local, and none are supported.
CODE
(NETGEAR Switch) #
(NETGEAR Switch) #configure
(NETGEAR Switch) (Config)#aaa authorization exec default  tacacs+ none
(NETGEAR Switch) (Config)#aaa authorization commands default tacacs+ none

no aaa authorization

This command deletes the authorization method list.

Format no aaa authorization {commands | exec} {default | list-name}
Mode Global Config

authorization commands

M4250

M4350

This command applies a command authorization method list to an access method (console, Telnet, SSH). After you enter this command, command authorization is required for each command execution attempt.

  • Access the Line Config mode by entering the line console command from the Global Config mode.
  • Access the SSH Config mode by entering the line ssh command from the Global Config mode.
  • Access the Telnet Config mode by entering the line telnet command from the Global Config mode.

For usage scenarios on per command authorization, see the command aaa authorization.

Format authorization commands [default | list-name]
Mode

Line Config

SSH Config

Telnet Config

no authorization commands

This command removes command authorization from a configuration in Line Config, SSH Config, or Telnet Config mode.

Format no authorization {commands | exec}
Mode

Line Config

Telnet Config

SSH Config

Command example:

CODE
(NETGEAR Switch) (Config)#line console
(NETGEAR Switch) (Config-line)#authorization commands list2

(NETGEAR Switch) (Config-line)#
(NETGEAR Switch) (Config-line)#exit

authorization exec

M4250

M4350

This command applies a command authorization method list to an access method so that the user may not be required to use the enable command to enter Privileged EXEC mode.

  • Access the Line Config mode by entering the line console command from the Global Config mode.
  • Access the SSH Config mode by entering the line ssh command from the Global Config mode.
  • Access the Telnet Config mode by entering the line telnet command from the Global Config mode.

For usage scenarios on exec authorization, see the command aaa authorization.

Format authorization exec list-name
Mode

Line Config

SSH Config

Telnet Config

Parameter Description
list-name The command authorization method list.

no authorization exec

This command removes command authorization from a configuration in Line Config, SSH Config, or Telnet Config mode.

Format no authorization exec
Mode

Line Config

SSH Config

Telnet Config

authorization exec default

M4250

M4350

This command applies a default command authorization method list to an access method so that the user may not be required to use the enable command to enter Privileged EXEC mode.

  • Access the Line Config mode by entering the line console command from the Global Config mode.
  • Access the SSH Config mode by entering the line ssh command from the Global Config mode.
  • Access the Telnet Config mode by entering the line telnet command from the Global Config mode.

For usage scenarios on exec authorization, see the command aaa authorization.

Format authorization exec default
Mode

Line Config

SSH Config

Telnet Config

no authorization exec default

This command removes command authorization from the Line Config, SSH Config, or Telnet Config mode.

Format no authorization exec default
Mode

Line Config

SSH Config

Telnet Config

show authorization methods

M4250

M4350

This command displays the configured authorization method lists.

Format show authorization methods
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch) #show authorization methods

Command Authorization List     Method
--------------------------     --------------------------------------
dfltCmdAuthList                tacacs         none
list2                          none           undefined
list4                          tacacs         undefined

Line         Command Method List
------------ ------------------------------
Console      dfltCmdAuthList
Telnet       dfltCmdAuthList
SSH          dfltCmdAuthList

Exec Authorization List     Method
-----------------------     --------------------------------------
dfltExecAuthList            tacacs         none
list2                       none           undefined
list4                       tacacs         undefined

Line         Exec Method List
------------ ------------------------------
Console      dfltExecAuthList
Telnet       dfltExecAuthList
SSH          dfltExecAuthList

enable authentication (Line Config)

M4250

M4350

Use this command to specify the authentication method list when accessing a higher privilege level from a remote telnet or console.

Format enable authentication {default | list-name}
Mode Line Config
Parameter Description
default Uses the default list created with the aaa authentication enable command.
list-name Uses the indicated list created with the aaa authentication enable command.

Command example:

The following example specifies the default authentication method to access a higher privilege level console:

CODE
(NETGEAR Switch)(config)# line console
(NETGEAR Switch)(config-line)# enable authentication default

no enable authentication (Line Config)

Use this command to return to the default specified by the enable authentication command.

Format no enable authentication
Mode Line Config

username (Global Config)

M4250

M4350

This command adds a new user to the local user database, allowing the user to enter a password in plain text. However, the password is displayed as a series of asterisks (*). That is, when you configure a user password, the password does not display in clear text but encrypted. The exception is when you enter the command in the following format that includes the encrypted keyword:

  • username name password password level level encrypted [override-complexity-check]
  • username name password password {encryption-type {sha256 | sha512}} encrypted [override-complexity-check]
  • username name password password {encryption-type {sha256 | sha512}} level level encrypted [override-complexity-check]

In these situations, the entered password (as in password) does display in clear text.

For a new user, the default (privilege) level is 1.

The optional parameter override-complexity-check disables the validation of the password strength.

You can also use the email-id keyword and associated email-address argument to set an email address for the user, and as an option, use the mfa-enable keyword to enable multi-factor authentication for the user.

Format username name {password password [encryption-type {sha256 | sha512}] [encrypted [override-complexity-check] | level level [encrypted [override-complexity-check]] | override-complexity-check]} | {level level [override-complexity-check] password password [encryption-type encryption-type]} [email-id email-address] [mfa-enable]}
Mode Global Config
Parameter Description
name The name of the user. The range is from 1 to 64 characters.
password password

Indicates that the user must enter a plain text password.

This password must range from 8 to 64 characters. Even though the password is entered in plain text, the password is shown as a series of asterisks (*).

The special characters allowed in the password include the following:

! # $ % & ' ( ) * + , - . / : ; < = > @ [ \ ] ^ _ ` { | } ~.

The password length can be zero if the no passwords min-length command is executed.

encryption-type sha256 | sha512 The encryption algorithm type, which can be SHA-512 (the default) or SHA-256.
override-complexity-check Disables the validation of the password strength.
level level The user level. Level 0 can be assigned by a level 15 user to another user to suspend that user’s access. The range is from 0 to 15. Enter access level 1 for Read Access or 15 for Read/Write Access. In a situation in which the level is optional and you do not specify it, the level is set to 1.
encrypted Requires an encrypted password to be entered or copied from another switch configuration.
email-id email-address The email address for the user.
mfa-enable Enables the multi-factor authentication feature at the user level.

Command example:

The following example configures a password for the user “bob” with (privilege) level 15:

CODE
(NETGEAR Switch)(Config)#username bob level 15 password

Enter new password:*********
Confirm new password:*********

Command example:

The following example configures a password for the user “test123” with (privilege) level 15, and the encryption set to SHA-512:

CODE
(NETGEAR Switch)(Config)#username test123 level 15 password encryption-type sha512

Enter new password:********
Confirm new password:********

Command example:

The following example configures a password for the user “test1234” with the override-complexity-check password keyword set:

CODE
(NETGEAR Switch)(Config)#username test1234 override-complexity-check password

Enter new password:********
Confirm new password:********

no username

Use this command to remove a user name.

Format no username name
Mode Global Config

username name nopassword

M4250

M4350

This command removes an existing user’s password (NULL password).

Format username name nopassword [level level]
Mode Global Config
Parameter Description
name The name of the user. Range: 1-32 characters.
password The authentication password for the user. Range 8-64 characters.
level The user level. Level 0 can be assigned by a level 15 user to another user to suspend that user’s access. Range 0-15.

username sshkey file

M4250

M4350

This command configures the SSH public key file for a user. The public key file must be entered by a user to encrypt messages with a remote server.

Format username name sshkey file filename
Mode Global Config
Parameter Description
name The name of the user. The range is from 1 to 64 characters.
filename The name of the SSH public key file.

no username sshkey file

This command removes the SSH public key file for a user.

Format no username name sshkey file
Mode Global Config

username unlock

M4250

M4350

This command allows a locked user account to be unlocked. Only a user with read/write access can reactivate a locked user account.

Format username name unlock
Mode Global Config

show users

M4250

M4350

This command displays the configured user names and their settings. The show users command displays truncated user names. Use the show users long command to display the complete usernames. The show users command is only available for users with read/write privileges. The SNMPv3 fields are displayed only if SNMP is available on the system.

Format show users
Mode Privileged EXEC
Term Definition
User Name The name the user enters to login using the serial port, Telnet or Web.
Access Mode Shows whether the user is able to change parameters on the switch (Read/Write) or is only able to view them (Read Only). As a factory default, the “admin” user has Read/Write access and the “guest” has Read Only access.
SNMPv3 Access Mode The SNMPv3 Access Mode. If the value is set to ReadWrite, the SNMPv3 user is able to set and retrieve parameters on the system. If the value is set to ReadOnly, the SNMPv3 user is only able to retrieve parameter information. The SNMPv3 access mode may be different than the CLI and Web access mode.
SNMPv3 Authentication The authentication protocol to be used for the specified login user.
SNMPv3 Encryption The encryption protocol to be used for the specified login user.

show users long

M4250

M4350

This command displays the complete user names of the configured users on the switch.

Format show users long
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch) #show users long
User Name
------------
admin
guest
test1111test1111test1111test1111

show users accounts

M4250

M4350

This command displays the local user status with respect to user account lockout and password aging. This command displays truncated user names. Use the show users long command to display the complete user names.

Format show users accounts [detail]
Mode Privileged EXEC
Term Definition
User Name The local user account’s user name.
Access Level The user’s access level (1 for read-only or 15 for read/write).
Password Aging Number of days, since the password was configured, until the password expires.
Password Expiry Date The current password expiration date in date format.
Lockout Indicates whether the user account is locked out (true or false).

If the detail keyword is included, the following additional fields display.

Term Definition
Password Override Complexity Check Displays the user's Password override complexity check status. By default it is disabled.
Password Strength Displays the user password's strength (Strong or Weak). This field is displayed only if the Password Strength feature is enabled.

Command example:

The following example displays information about the local user database.

CODE
(NETGEAR Switch)#show users accounts

UserName            Privilege Password Password     Lockout
                              Aging    Expiry date
------------------- --------- -------- ------------ -------
admin               15        ---      ---          False
guest               1         ---      ---          False

console#show users accounts detail

UserName....................................... admin
Privilege...................................... 15
Password Aging................................. ---
Password Expiry................................ ---
Lockout........................................ False
Override Complexity Check...................... Disable
Password Strength.............................. ---

UserName....................................... guest
Privilege...................................... 1
Password Aging................................. ---
Password Expiry................................ ---
Lockout........................................ False
Override Complexity Check...................... Disable
Password Strength.............................. ---

show users login-history [long]

M4250

M4350

Use this command to display information about the login history of users.

Format show users login-history [long]
Mode Privileged EXEC

show users login-history

M4250

M4350

Use this command to display information about the login history of users.

Format show users login-history [username name]
Mode Privileged EXEC
Parameter Description
name Name of the user. Range: 1-20 characters.

Command example:

The following example shows user login history outputs:

CODE
Console>show users login-history
Login Time            Username  Protocol  Location
--------------------  --------- --------- ---------------
Jan 19 2005 08:23:48  Bob       Serial
Jan 19 2005 08:29:29  Robert    HTTP      172.16.0.8
Jan 19 2005 08:42:31  John      SSH       172.16.0.1
Jan 19 2005 08:49:52  Betty     Telnet    172.16.1.7

login authentication (Line Config)

M4250

M4350

Use this command to specify the login authentication method list for a line (console, telnet, or SSH). The default configuration uses the default set with the command aaa authentication login.

Access the Line Config mode by entering the line console command in Global Config mode.

Format login authentication {default | list-name}
Mode Line Config
Parameter Description
default Uses the default list created with the aaa authentication login command.
list-name Uses the indicated list created with the aaa authentication login command.

Command example:

The following example specifies the default authentication method for a console:

CODE
(NETGEAR Switch) (config)# line console
(NETGEAR Switch) (config-line)# login authentication default

no login authentication

Use this command to return to the default specified by the authentication login command.

Format no login authentication {default | list-name}
Mode Line Config

password (Line Config)

M4250

M4350

Use the password command in Line Config, Telnet Config, or SSH Config mode to specify a password on a line, or allow it to be copied from a script file or configuration file. The default configuration is that no password is specified.

Script files or configuration files with password commands that include plain text passwords do not work.

  • Access the Line Config mode by entering the line console command from the Global Config mode.
  • Access the SSH Config mode by entering the line ssh command from the Global Config mode.
  • Access the Telnet Config mode by entering the line telnet command from the Global Config mode.
Format password [encryption-type encryption-type] | password [encryption-type encryption-type] [encrypted]]
Mode

Line Config

SSH Config

Telnet Config

Parameter Definition
password The password in encrypted format.
encrypted The password that is entered or copied from another switch configuration is already encrypted. For SHA-256 salted hash, the password must be 63 characters in length. For SHA-512 salted hash (the default), the password must be 106 characters in length.
encryption-type The encryption algorithm type, which can be SHA-512 (the default) or SHA-256.

Command example:

The following example configures a plain text password with the SHA-256 encryption type on a line:

CODE
(NETGEAR Switch)(Config-line)#password encryption-type sha256
Enter new password:********
Confirm new password:********

Command example:

The following example configures a plain text password with the SHA-512 encryption type on a line:

CODE
(NETGEAR Switch)(Config-line)#password encryption-type sha512
Enter new password:********
Confirm new password:********

Command example:

The following example configures an encrypted password with the SHA-256 encryption type on a line:

CODE
(NETGEAR Switch)(Config-line)#password
$5$8XLN8qHQLKvx61X8$vsIiv0ZqnesHqX/F5yeche4laH4B9WChxyRh5b3vGPB encryption-type sha256
encrypted

Command example:

The following example configures an encrypted password with the SHA-512 encryption type on a line:

CODE
(NETGEAR Switch)(Config-line)#password
$6$iiOcwxwa96ZKoa1F$P6NjilVODkH5suf8ic90gj2FJ34EgiK1skJGt3nLevA6C6HJSBxNVOgtz.4DktM/SmE
NiIGFzqkdvhBgX8EGF/ encryption-type sha512 encrypted

no password (Line Config)

Use this command to remove the password from a configuration in Line Config, SSH Config, or Telnet Config mode.

Format no password
Mode

Line Config

SSH Config

Telnet Config

password (User EXEC)

M4250

M4350

This command allows a user to change the password. The user must enter this command after the password has aged. The user is prompted to enter the old password and the new password.

Format password
Mode User EXEC

Command example:

The following example shows the prompt sequence for executing the password command:

CODE
(NETGEAR Switch)>password
Enter old password:********
Enter new password:********
Confirm new password:********

enable password (Privileged EXEC)

M4250

M4350

Use the enable password configuration command to set a local password to control access to the privileged EXEC mode.

Script files or configuration files with password commands that include plain text passwords do not work.

Note: When you configure a user password, the password does not display in clear text.
Format enable password [encryption-type encryption-type] | [password [encryption-type encryption-type] [encrypted]]
Mode Privileged EXEC
Parameter Description
encryption-type The encryption algorithm type, which can be SHA-512 (the default) or SHA-256.
password The password in encrypted format.
encrypted The password that is entered or copied from another switch configuration is already encrypted. For SHA-256 salted hash, the password must be 63 characters in length. For SHA-512 salted hash (the default), the password must be 106 characters in length.

Command example:

The following example configures a plain text password with the SHA-256 encryption type:

CODE
(NETGEAR Switch)#enable password encryption-type sha256
Enter old password:********
Enter new password:********
Confirm new password:********

Command example:

The following example configures a plain text password with the SHA-512 encryption type:

CODE
(NETGEAR Switch)#enable password encryption-type sha512
Enter old password:********
Enter new password:********
Confirm new password:********

Command example:

The following example configures an encrypted password with the SHA-256 encryption:

CODE
(NETGEAR Switch)#enable password
$5$8XLN8qHQLKvx61X8$vsIiv0ZqnesHqX/F5yeche4laH4B9WChxyRh5b3vGPB encryption-type sha256
encrypted

Command example:

The following example configures an encrypted password with the SHA-512 encryption type:

CODE
(NETGEAR Switch)#enable password
$6$Zhe76BxSM7ZOh8/.$.acXOoNVZMbXJuG/L7Ilcfd5iLHL7dd8Gt79bpQacL6UBSdD4GvEudGgP/eaT/wW.Xu
wT3j0o9qKFgLhGZoXz/ encryption-type sha512 encrypted

no enable password (Privileged EXEC)

M4250

M4350

Use the no enable password command to remove the password requirement.

Format no enable password
Mode Privileged EXEC

passwords min-length

M4250

M4350

Use this command to enforce a minimum password length for local users. The value also applies to the enable password. The length argument is a number in the range 8–64.

Default 8
Format passwords min-length length
Mode Global Config

no passwords min-length

Use this command to set the minimum password length to the default value.

Format no passwords min-length
Mode Global Config

passwords history

M4250

M4350

Use this command to set the number of previous passwords that can be stored for each user account. When a local user changes his or her password, the user is not able to reuse any password stored in password history. This ensures that users do not reuse their passwords often. The number argument is a number in the range 0–10.

Default 0
Format passwords history number
Mode Global Config

no passwords history

Use this command to set the password history to the default value.

Format no passwords history
Mode Global Config

passwords aging

M4250

M4350

Use this command to implement aging on passwords for local users. When a user’s password expires, the user is prompted to change it before logging in again. The days argument is a number in the range 1–365 days. The default is 0, or no aging.

Default 0
Format passwords aging days
Mode Global Config

no passwords aging

Use this command to set the password aging to the default value.

Format no passwords aging
Mode Global Config

passwords lock-out

M4250

M4350

Use this command to strengthen the security of the switch by locking user accounts that have failed login due to wrong passwords. When a lockout count is configured, a user that is logged in must enter the correct password within that count. Otherwise the user will be locked out from further switch access. Only a user with read/write access can reactivate a locked user account. Password lockout does not apply to logins from the serial console. The number argument is a number in the range 1–5. The default is 0, or no lockout count enforced.

Default 0
Format passwords lock-out number
Mode Global Config

no passwords lock-out

Use this command to set the password lock-out count to the default value.

Format no passwords lock-out
Mode Global Config

passwords strength-check

M4250

M4350

Use this command to enable the password strength feature. It is used to verify the strength of a password during configuration.

Default Disable
Format passwords strength-check
Mode Global Config

no passwords strength-check

Use this command to set the password strength checking to the default value.

Format no passwords strength-check
Mode Global Config

passwords strength maximum consecutive-characters

M4250

M4350

Use this command to set the maximum number of consecutive characters to be used in password strength. The number argument is a number in the range 0–15. The default is 0. Minimum of 0 means no restriction on that set of characters.

Default 0
Format passwords strength maximum consecutive-characters number
Mode Global Config

passwords strength maximum repeated-characters

M4250

M4350

Use this command to set the maximum number of repeated characters to be used in password strength. The number argument is a number in the range 0–15. The default is 0. Minimum of 0 means no restriction on that set of characters.

Default 0
Format passwords strength maximum repeated-characters number
Mode Global Config

passwords strength minimum uppercase-letters

M4250

M4350

Use this command to enforce a minimum number of uppercase letters that a password should contain. The number argument is a number in the range 0–16. The default is 2. Minimum of 0 means no restriction on that set of characters.

Default 2
Format passwords strength minimum uppercase-letters number
Mode Global Config

no passwords strength minimum uppercase-letters

Use this command to reset the minimum uppercase letters required in a password to the default value.

Format no passwords strength minimum uppercase-letters
Mode Global Config

passwords strength minimum lowercase-letters

M4250

M4350

Use this command to enforce a minimum number of lowercase letters that a password should contain. The number argument is a number in the range 0–16. The default is 2. Minimum of 0 means no restriction on that set of characters.

Default 2
Format passwords strength minimum lowercase-letters number
Mode Global Config

no passwords strength minimum lowercase-letters

Use this command to reset the minimum lowercase letters required in a password to the default value.

Format no passwords strength minimum lowercase-letters
Mode Global Config

passwords strength minimum numeric-characters

M4250

M4350

Use this command to enforce a minimum number of numeric characters that a password should contain. The number argument is a number in the range 0–16. The default is 2. Minimum of 0 means no restriction on that set of characters.

Default 2
Format passwords strength minimum numeric-characters number
Mode Global Config

no passwords strength minimum numeric-characters

Use this command to reset the minimum numeric characters required in a password to the default value.

Format no passwords strength minimum numeric-characters
Mode Global Config

passwords strength minimum special-characters

M4250

M4350

Use this command to enforce a minimum number of special characters that a password should contain. The number argument is a number in the range 0–16. The default is 2. Minimum of 0 means no restriction on that set of characters.

Default 2
Format passwords strength minimum special-characters number
Mode Global Config

no passwords strength minimum special-characters

Use this command to reset the minimum special characters required in a password to the default value.

Format no passwords strength minimum special-characters
Mode Global Config

passwords strength minimum character-classes

Use this command to enforce a minimum number of characters classes that a password should contain. Character classes are uppercase letters, lowercase letters, numeric characters and special characters. The number argument is a number in the range 0–4. The default is 4.

Default 4
Format passwords strength minimum character-classes number
Mode Global Config

no passwords strength minimum character-classes

Use this command to reset the minimum number of character classes required in a password to the default value.

Format no passwords strength minimum character-classes
Mode Global Config

passwords strength exclude-keyword

M4250

M4350

Use this command to exclude the specified keyword while configuring the password. The password does not accept the keyword in any form (in between the string, case insensitive and reverse) as a substring. You can configure up to a maximum of three keywords.

Format passwords strength exclude-keyword keyword
Mode Global Config

no passwords strength exclude-keyword

Use this command to reset the restriction for the specified keyword or all the keywords configured.

Format no passwords strength exclude-keyword [keyword]
Mode Global Config

passwords unlock timer

M4250

M4350

Use this command to configure the time after which a locked user account is unlocked (that is, the unlock time) and password authentication can be attempted again. By default, the period for the minutes argument is 5 minutes and the range is from 1 to 60 minutes.

Default 5
Format passwords unlock timer minutes
Mode Global Config

no passwords unlock timer

Use this command to reset the unlock time to the default time.

Format no passwords unlock timer
Mode Global Config

passwords unlock timer mode

M4250

M4350

Use this command to configure the password unlock timer mode. If the user account is locked, the timer mode is enabled (which it is by default), and the unlock time expires, the user account is unlocked. If the timer mode is disabled and the unlock time expires, the user account remains locked.

Default Enabled
Format passwords unlock timer mode {enabled | disabled}
Mode Global Config

no passwords unlock timer mode

Use this command to reset the unlock timer mode to its default.

Format no passwords unlock timer mode
Mode Global Config

show passwords configuration

M4250

M4350

Use this command to display the configured password management settings.

Format show passwords configuration
Mode Privileged EXEC
Term Definition
Minimum Password Length The minimum number of characters that the password must include.
Password Aging (day) The length in days that a password is valid.
Password History The number of passwords to store for reuse prevention.
Lockout Attempts The number of failed password login attempts allowed before lockout occurs.
Password Strength Check Indicates if the password strength check is enabled.
Minimum Password Uppercase Letters The minimum number of uppercase characters that the password must include.
Minimum Password Lowercase Letters The minimum number of lowercase characters that the password must include.
Minimum Password Numeric Characters The minimum number of numeric characters that the password must include.
Minimum Password Special Characters The minimum number of special characters that the password must include.
Maximum Password Repeated Characters The maximum number of repeated characters that the password can include.
Maximum Password Consecutive Characters The maximum number of consecutive repeated characters that the password can include.
Minimum Password Character Classes The minimum number of character classes (uppercase, lowercase, numeric and special) that the password must include.
Password Exclude-Keywords The set of keywords to be excluded from the configured password when strength checking is enabled.
Unlock Timer Mode Indicates if the unlock timer mode is enabled.
Unlock Time (mins) The time after which a locked user account is unlocked.

show passwords result

M4250

M4350

Use this command to display the last password set result information.

Format show passwords result
Mode Privileged EXEC
Term Definition
Last User Whose Password Is Set Shows the name of the user with the most recently set password.
Password Strength Check Shows whether password strength checking is enabled.
Last Password Set Result Shows whether the attempt to set a password was successful. If the attempt failed, the reason for the failure is included.

aaa ias-user username

M4250

M4350

The Internal Authentication Server (IAS) database is a dedicated internal database used for local authentication of users for network access through the IEEE 802.1X feature.

Use the aaa ias-user username command in Global Config mode to add the specified user to the internal user database. This command also changes the mode to AAA IAS User Config mode.

Format aaa ias-user username user
Mode Global Config

no aaa ias-user username

Use this command to remove the specified user from the internal user database.

Format no aaa ias-user username user
Mode Global Config

Command example:

CODE
(NETGEAR Switch) #
(NETGEAR Switch) #configure
(NETGEAR Switch) (Config)#aaa ias-user username client-1
(NETGEAR Switch)(Config-aaa-ias-User)#exit
(NETGEAR Switch) (Config)#no aaa ias-user username client-1
(NETGEAR Switch) (Config)#

aaa session-id

M4250

M4350

Use this command in Global Config mode to specify if the same session-id is used for Authentication, Authorization and Accounting service type within a session.

Default common
Format aaa session-id [common | unique]
Mode Global Config
Parameter Description
common Use the same session-id for all AAA Service types.
unique Use a unique session-id for all AAA Service types.

no aaa session-id

Use this command in Global Config mode to reset the aaa session-id behavior to the default.

Format no aaa session-id [unique]
Mode Global Config

aaa accounting

M4250

M4350

Use this command in Global Config mode to create an accounting method list for user EXEC sessions, user-executed commands, or DOT1X. This list is identified by the default keyword or by a user-specified list-name. 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, 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 the following:

  • A maximum of five Accounting Method lists can be created for each exec and commands type.
  • Only the default Accounting Method list can be created for DOT1X. There is no provision to create more.
  • 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.
  • 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 | list-name} {start-stop | stop-only |none} method1 [method2…]
Mode Global Config
Parameter Description
exec Provides accounting for 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.
list-name 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 radius server for accounting purposes.

Command example:

CODE
(NETGEAR Switch) #
(NETGEAR Switch) #configure
(NETGEAR Switch) #aaa accounting commands default stop-only tacacs
(NETGEAR Switch) #aaa accounting exec default start-stop radius
(NETGEAR Switch) #aaa accounting dot1x default start-stop radius
(NETGEAR Switch) #aaa accounting dot1x default none
(NETGEAR Switch) #exit

Command example:

For the same set of accounting type and list name, the administrator can change the record type, or the methods list, without having to first delete the previous configuration:

CODE
(NETGEAR Switch) #
(NETGEAR Switch) #configure
(NETGEAR Switch) #aaa accounting exec ExecList stop-only tacacs
(NETGEAR Switch) #aaa accounting exec ExecList start-stop tacacs
(NETGEAR Switch) #aaa accounting exec ExecList start-stop tacacs radius

The first aaa command creates a method list for exec sessions with the name ExecList, with record-type as stop-only and the method as tacacs. The second command changes the record type from stop-only to start-stop for the same method list. The third command, for the same list changes the methods list from tacacs to tacacs,radius.

no aaa accounting

This command deletes the accounting method list.

Format no aaa accounting {exec | commands | dot1x} {default | list-name}
Mode Global Config

Command example:

CODE
(NETGEAR Switch) #
(NETGEAR Switch) #configure
(NETGEAR Switch) #aaa accounting commands userCmdAudit stop-only tacacs radius
(NETGEAR Switch) #no aaa accounting commands userCmdAudit
(NETGEAR Switch) #exit

aaa accounting update

M4250

M4350

Use this command to send interim accounting records to the accounting server or to configure how often new or interim accounting records must be sent to the accounting server.

Default

newinfo: Disabled

Periodic: 5 minutes

Format aaa accounting update [newinfo [periodic 1-200] | periodic 1-200]
Mode Global Config
Parameter Definition
newinfo Updates are sent to the RADIUS server whenever there is new information available, such as reauthentication of a client.
periodic The interval at which interim accounting records are sent, in minutes.

Command example:

CODE
(NETGEAR Switch) #(Config)#aaa accounting update newinfo periodic 20

no aaa accounting update

This command resets sending the interim accounting records to the default values.

Format no aaa accounting update
Mode Global Config

password (AAA IAS User Config)

M4250

M4350

Use this command to specify a password for a user in the IAS database. You can also use the encrypted keyword to enter the password in encrypted format (32 characters in hexadecimal format).

Format password {password | encrypted password}
Mode AAA IAS User Config
Parameter Definition
password Password for this level. Range: 8-64 characters.

Command example:

CODE
(NETGEAR Switch) #
(NETGEAR Switch) #configure
(NETGEAR Switch) (Config)#aaa ias-user username client-1
(NETGEAR Switch) (Config-aaa-ias-User)#password client123
(NETGEAR Switch) (Config-aaa-ias-User)#no password

Command example:

The following is an example of adding a MAB Client to the Internal user database:

CODE
(NETGEAR Switch) #
(NETGEAR Switch) #configure
(NETGEAR Switch) (Config)#aaa ias-user username 1f3ccb1157
(NETGEAR Switch) (Config-aaa-ias-User)#password 1f3ccb1157
(NETGEAR Switch) (Config-aaa-ias-User)#exit
(NETGEAR Switch) (Config)#

no password (AAA IAS User Config)

Use this command to clear the password of a user.

Format no password
Mode AAA IAS User Config

clear aaa ias-users

M4250

M4350

Use this command to remove all users from the IAS database.

Format clear aaa ias-users
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch) #clear aaa ias-users

show aaa ias-users

M4250

M4350

Use this command to display configured IAS users and their attributes. Passwords configured are not shown in the show command output.

Format show aaa ias-users [username]
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch) #show aaa ias-users

UserName
-------------------
Client-1
Client-2

Following are the IAS configuration commands shown in the output of show running-config command. Passwords shown in the command output are always encrypted.

CODE
aaa ias-user username client-1
password a45c74fdf50a558a2b5cf05573cd633bac2c6c598d54497ad4c46104918f2c encrypted
exit

accounting

M4250

M4350

Use this command to apply an accounting method list to a configuration in Line Config, SSH Config, or Telnet Config mode.

  • Access the Line Config mode by entering the line console command from the Global Config mode.
  • Access the SSH Config mode by entering the line ssh command from the Global Config mode.
  • Access the Telnet Config mode by entering the line telnet command from the Global Config mode.
Format accounting {exec | commands} {default | list-name}
Mode

Line Config

SSH Config

Telnet Config

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.
list-name Enter a string of not more than 15 characters.

Command example:

CODE
(NETGEAR Switch) #
(NETGEAR Switch) #configure
(NETGEAR Switch) (Config)#line telnet
(NETGEAR Switch)(Config-line)# accounting exec default
(NETGEAR Switch) #exit

no accounting

Use this command to remove accounting from a configuration in Line Config, SSH Config, or Telnet Config mode.

Format no accounting {exec | commands}
Mode

Line Config

SSH Config

Telnet Config

show accounting

M4250

M4350

Use this command to display ordered methods for accounting lists.

Format show accounting
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch) #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

show accounting methods

M4250

M4350

Use this command to display configured accounting method lists.

Format show accounting methods
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch) #
(NETGEAR Switch) #show accounting methods

Acct Type    Method Name     Record Type    Method Type
----------   ------------    ------------   ------------
Exec         dfltExecList    start-stop     TACACS
Commands     dfltCmdsList    stop-only      TACACS
Commands     UserCmdAudit    start-stop     TACACS
DOT1X        dfltDot1xList   start-stop     radius

Line     EXEC Method List    Command Method List
-------  ---------------------------------------
Console  dfltExecList          dfltCmdsList
Telnet   dfltExecList          dfltCmdsList
SSH      dfltExecList          UserCmdAudit

show accounting update

M4250

M4350

Use this command to display the accounting interim update information.

Format show accounting update
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch) #show accounting update

aaa accounting  update newinfo  : Enabled
aaa accounting  update periodic : 10 minutes

clear accounting statistics

M4250

M4350

This command clears the accounting statistics.

Format clear accounting statistics
Mode Privileged EXEC

show domain-name

M4250

M4350

This command displays the configured domain-name.

Format show domain-name
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch) #show domain-name

Domain               : Enable
Domain-name          :abc