The following example defines a password policy that places restrictions on minimum length and enforces character restrictions and account lockout.
device# configure terminal Entering configuration mode terminal device(config)# password-attributes min-length 8 max-retry 4 character-restriction lower 2 upper 1 numeric 1 special-char 1 max-lockout-duration 5000