Creating an account with clock-restricted access

When defining or editing an account, you can specify permitted access hours.

By default, users can log in 24 hours a day. The access-time parameter enables you to limit access to defined hours, as per the system time defined for the operating system. For the current system time, enter show clock.

  1. In privileged EXEC mode, enter the configure terminal command.
    device# configure terminal
    
  2. Enter the username command, with the access-time parameter.
    device(config)# username aming role user password Tijd1spw access-time 0800 to 1800