How to reset AVI Controller's admin password
search cancel

How to reset AVI Controller's admin password

book

Article ID: 400183

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

If the user is unable to log in with admin credentials, or has forgotten the admin password and wants to reset it.

Environment

VMware AVI Load Balancer.

Cause

- Multiple login attempts with incorrect credentials can result in account lockout in the UI.

- The user forgot the admin password and wants to reset it.

Resolution

To proceed, please ensure you have a local account with Super User access. Alternatively, if you can log in to the UI using another account with the System-Admin role, you may create a local account with the necessary permissions.

When you SSH to the AVI Controller's IP it will as for login as then type 'cli' and hit enter

login as: cli 

Once you get into the shell type attach controller < Controller's IP>, it will take you to the bash access of the AVI Controller

Then follow the below steps:

$ sudo -i

# cd /opt/avi/scripts

#python3 admin_pwd_reset.py

Please enter new password for user 'admin' : <provide a new password and press enter>

Note: The new local admin password should work immediately in the UI and SSH.