How to reset the DX Netops Virtual Network Assurance (VNA) REST UI password if forgotten.
search cancel

How to reset the DX Netops Virtual Network Assurance (VNA) REST UI password if forgotten.

book

Article ID: 211789

calendar_today

Updated On:

Products

CA Virtual Network Assurance DX NetOps CA Spectrum

Issue/Introduction

How to reset the DX Netops Virtual Network Assurance (VNA) REST UI password if forgotten

This is the password for the swagger rest UI at:

http://VNAHOSTNAME:8080/vna

Environment

DX Netops Virtual Network Assurance 20.2.5 and later

Resolution

To update a forgotten DX Netops Virtual Network Assurance (VNA) UI Password

 

1) Generate the cryptographic SHA-256 hash of the new password text and note the value

# echo -n 'NEWPASSWORD' | sha256sum

Replace NEWPASSWORD with the password you wish to set.

Example:

# echo -n 'NEWPASSWORD' | sha256sum
9a7bbe47e69b04f21376672566ee7232191ee35574c1527dc46ce77b57cfd8db  -

In that example the resulting hash is: 

9a7bbe47e69b04f21376672566ee7232191ee35574c1527dc46ce77b57cfd8db

2) Get the VNA database name:

# grep vna_db_name /etc/VNA.cfg

Example:
# vna_db_name=vna_myhostname

In that example the VNA database name is "vna_myhostname".

 

3) Log into the VNA database:

#  /opt/CA/MySql/bin/mysql -uroot -p VNADATABASENAME

Replace VNADATABASENAME with the VNA database from step 2.
Enter the VNA database password when prompted (admin is default password, but this may have been changed at install time)

 

4) Update the SWAGGER_UI_PASSWORD:

# update vnaconfig set configValue='XXXXXXXXXXXX' where  configKey = 'SWAGGER_UI_PASSWORD';

Replace XXXXXXXXXXXX with the hash that was generated step 1.

Example:
# update vnaconfig set configValue='9a7bbe47e69b04f21376672566ee7232191ee35574c1527dc46ce77b57cfd8db' where  configKey = 'SWAGGER_UI_PASSWORD';

 

5) Verify the value has updateed:

# select * from vnaconfig where configKey = 'SWAGGER_UI_PASSWORD';

Example:
mysql> select * from vnaconfig where configKey = 'SWAGGER_UI_PASSWORD';
+----+---------------------+------------------------------------------------------------------+
| id | configKey           | configValue                                                      |
+----+---------------------+------------------------------------------------------------------+
|  4 | SWAGGER_UI_PASSWORD | 25f43b1486ad95a1398e3eeb3d83bc4010015fcc9bedb35b432e00298d5021f7 |
+----+---------------------+------------------------------------------------------------------+
1 row in set (0.00 sec)

 

6) If the value is correct, commit the change and exit:

commit;
exit

 If not just exit without committing and open a support issue for assistance.


7) Verify you can log into the VNA swagger UI using the new password.