Reference v4.1.0 Instruction Manual
Network OS Command Reference 529
53-1003115-01
password-attributes
2
password-attributes
Configures the user password attributes.
Synopsis password-attributes [min-length minlen] [max-retry maxretry] [character-restriction
[upper numupper] [lower numlower]] [numeric numdigits] [special-char numsplchars]]
no password-attributes [min-length minlen] [max-retry maxretry] [character-restriction]
Operands min-length minlen Specifies the minimum length of the password. Valid values range from 8
through 32 characters. The default is 8 characters.
max-retry maxretry Specifies the number of failed password logins permitted before a user is
locked out. The lockout threshold range is 0 through 16. The default value
is 0.
character-restriction Configures the restriction on various types of characters.
upper numupper
Specifies the minimum number of uppercase alphabetic characters that
must occur in the password. The default is 0, which means there is no
restriction of uppercase characters.
lower numlower Specifies the minimum number of lowercase alphabetic characters that
must occur in the password. The default is 0, which means there is no
restriction of lowercase characters.
numeric num Specifies the minimum number of numeric characters that must occur in
the password. The number of numeric characters range is 0 through 32
characters. The default is 0.
special-char numsplchars
Specifies the number of punctuation characters that must occur in the
password. All printable, nonalphanumeric punctuation characters, except
colon (:) are allowed. The default value is 0.
Defaults The default for minlen is 8. All other defaults are 0.
Command Modes Global configuration mode
Description Use this command to configure global password attributes.
Usage Guidelines Enter no password-attributes parameters to set the specified password attributes to their default
values.
Examples To configure global password attributes and to verify the configuration:
switch(config)# password-attributes max-retry 4
switch(config)# password-attributes character-restriction lower 2
switch(config)# password-attributes character-restriction upper 1 numeric 1
special-char 1
switch(config)# exit
switch# show running-config password-attributes
password-attributes max-retry 4
password-attributes character-restriction upper 1
password-attributes character-restriction lower 2
password-attributes character-restriction numeric 1