R3721-F3210-F3171-HP High-End Firewalls Access Control Command Reference-6PW101

172
length: Enables the minimum password length restriction function.
Description
Use password-control { aging | composition | history | length } enable to enable the password aging,
composition restriction, history, or minimum password length restriction function.
Use undo password-control { aging | composition | history | length } enable to disable the specified
function.
By default, the four password control functions are all enabled.
NOTE:
For these four functions to take effect, the password control feature must be enabled globally.
You must enable a function for its relevant configurations to take effect. For example, if the minimum
password length restriction function is not enabled, the setting by the password-control length
command does not take effect.
The system stops recording history passwords after you execute the undo password-control history
enable command, but the prior records still exist.
Related commands: password-control enable and display password-control.
Examples
# Enable the password control feature globally.
<Sysname> system-view
[Sysname] password-control enable
# Enable the password composition restriction function.
[Sysname] password-control composition enable
# Enable the password aging function.
[Sysname] password-control aging enable
# Enable the minimum password length restriction function.
[Sysname] password-control length enable
# Enable the password history function.
[Sysname] password-control history enable
password-control aging
Syntax
password-control aging aging-time
undo password-control aging
View
System view, user group view, local user view
Default level
2: System level
Parameters
aging-time: Password aging time in days, in the range of 1 to 365.