password-control alert-before-expire

Syntax

password-control alert-before-expire alert-time

undo password-control alert-before-expire

View

System view

Default level

2: System level

Parameters

alert-time: Specifies the number of days before a user’s password expires during which the user is warned of the pending password expiration, in the range of 1 to 30.

Description

Use password-control alert-before-expire to set the number of days before a user’s password expires during which the user is warned of the pending password expiration.

Use undo password-control alert-before-expire to restore the default.

By default, a user is warned of pending password expiration 7 days before the user’s password expires.

Examples

# Configure the device to warn a user about pending password expiration 10 days before the user’s password expires.

<Sysname> system-view
[Sysname] password-control alert-before-expire 10