unlock username

Unlocks a locked user account.

Syntax

unlock username name

Parameters

name
Specifies the name of the user account.

Modes

Privileged EXEC mode

Usage Guidelines

Use this command to unlock a user who has been locked out because of unsuccessful login attempts. A user account is locked by the system when the configured threshold for login retries has been reached.

Examples

The following example unlocks a user account.

device# unlock username testUser
Result: Unlocking the user account is successful