Configure an account with inactivity warning

About this task

When defining or editing an account that automatically expires, you can specify a duration after which a warning is generated about the inactivity of the account.

By default, users are not warned about the inactivity of their account. Use the acct-inactivity-warning-period parameter to configure the number of days after which a warning is generated about the account being inactive. For example, when set to 20 days, a warning will be generated when a specific user account is inactive for 20 days.

Note

Note

Without configuring expiry period, warning period cannot be configured.

Procedure

  1. In the previleged EXEC mode, enter the configure terminal command.
    SLX # configure terminal
                        
  2. Enter the username command with the acct-inactivity-warning-period command with the number of days.
    SLX (config)# username aming role user password Tijd1spw acct-inactivity-warning-period 20
                        
    The account aming is now configured to generate a warning after 20 continuous days of the account being inactive. Warning RASLOG is generated when time crosses the account inactivity warning period.