Password Policy:
[Switch] password-control enable // open password policy
[Switch] password-control aging 7 // 7 7DA
[Switch] password-control length 10 // 10 length
[Switch] password-control composition type-number 3 type-length 1 // Password Complexity (3 characters)
[Switch] password-control complexity user-name check // The password can not contain the user name
[Switch] password-control complexity same-character check // prohibited three consecutive characters in the same
[Switch] password-control alert-before-expire 1 // 1 day in advance prompted to change your password
[Switch] undo password-control history en // prohibit password history to remember
[Switch] password-control login-attempt 5 ex lock-time 1 // wrong password five times after lock 1 minute