The user-manage clear-invalid-users schedule command enables the function of automatically clearing invalid users and sets the time for automatically clearing invalid users.
The undo user-manage clear-invalid-users schedule command disables the function of automatically clearing invalid users.
By default, the function of automatically clearing invalid user information is disabled.
user-manage clear-invalid-users schedule { daily | weekly { Mon | Tue | Wed | Thu | Fri | Sat | Sun } } HH:MM
undo user-manage clear-invalid-users schedule
| Parameter | Description | Value |
|---|---|---|
daily |
Indicates that invalid users are periodically cleared every day. |
– |
weekly { Mon | Tue | Wed | Thu | Fri | Sat | Sun } |
Indicates that invalid users are periodically cleared every week. |
– |
HH:MM |
Specifies the time for clearing invalid users. HH specifies the hour. mm specifies the minute. The 24-hour time system is used. |
HH ranges from 0 to 23; mm ranges from 0 to 59. |
Invalid users, including users, user group, and security groups exist on the FW in the following situations:
When the device automatically clears the following invalid users (including users, user groups, and security groups), it checks whether all import policies whose import types include users, user groups, and security groups are successfully imported. If all policies are successfully imported, The invalid users (including users, user groups, and security groups) are cleared.
After the command is run, the FW will automatically and periodically delete all invalid users. To manually delete some users, log in to the web UI of the device and choose to view invalid user information and delete specific users.
Invalid users will not be deleted in the following situations:
# Enable the function of automatically clearing invalid users and configure the device to automatically clearing invalid users at 00:00 every Saturday.
<sysname> system-view [sysname] user-manage clear-invalid-users schedule weekly Sat 00:00 Warning: The system will clear invalid users, user groups, and security groups at scheduled time. Continue? [Y/N]:y