195
View
System view
Default level
2: System level
Parameters
idle-time: Specifies the maximum account idle time, in the range 0 to 365, in days. 0 means no restriction
for account idle time.
Description
Use the password-control login idle-time command to set the maximum account idle time. If a user
account is idle for this period of time, it becomes invalid.
Use the undo password-control login idle-time command to restore the default.
By default, the maximum account idle time is 90 days.
Related commands: display password-control.
Examples
# Set the maximum account idle time to 30 days.
<Sysname> system-view
[Sysname] password-control login idle-time 30
password-control login-attempt
Syntax
password-control login-attempt login-times [ exceed { lock | lock-time time | unlock } ]
undo password-control login-attempt
View
System view
Default level
2: System level
Parameters
login-times: Specifies the maximum number of consecutive failed login attempts, in the range 2 to 10.
exceed: Specifies the action to be taken when a user fails to log in after the specified number of attempts.
lock: Permanently prohibits a user who fails to log in after the specified number of attempts from logging
in.
lock-time time: Forces a user who fails to log in after the specified number of attempts to wait for a period
of time before trying again. The time argument is in minutes and in the range 1 to 360.
unlock: Allows a user who fails to log in after the specified number of attempts to continue trying to log
in.
Description
Use the password-control login-attempt command to specify the maximum number of consecutive failed
login attempts and the action to be taken when a user fails to log in after the specified number of
attempts.