cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7118
Views
10
Helpful
7
Replies

Cisco Prime DCNM - change GUI admin password from CLI

athemistocleous
Level 1
Level 1

Hi,

We have had a third party install an instance of DCNM with the Vmware OVA file, but it seems like they never capture the GUI (admin) password during the setup stage.

 

Does anybody know the process of rerunning the configuration script or changing the admin password from the SSH session, so we are able login to the GUI?

Thanks

Andreas

 

1 Accepted Solution

Accepted Solutions

Eric Scott
Cisco Employee
Cisco Employee

Hi Andreas,

Sorry I was not able to answer before the OVA was redeployed, however, it is possible to change the admin password from the server's CLI.

1.  SSH to the DCNM server

2.  cd to /usr/local/cisco/dcm/fm/bin

3.  "./addUser.sh  --help" to see the syntax of the command. 

The syntax for the addUser.sh script is "./addUser.sh <username> <password> <dbpassword>".  The adduser script can be used to add new user accounts or to change the password of existing user accounts.

4.  To change the admin password, the command would look something like this,

"./addUser.sh admin <new password> <dbpassword>"

If you have forgetten the database password, then you can find it in the file, /usr/local/cisco/dcm/jboss-as.7.2.0-Final/standalone/conf/postgres.cfg.xml.  Use the command "cat /usr/local/cisco/dcm/jboss-as.7.2.0-Final/standalone/conf/postgres.cfg.xml" to print the contents of the file to the screen.

-Eric

View solution in original post

7 Replies 7

athemistocleous
Level 1
Level 1

It seems like the password cannot be changed. The DCNM password is corrupt when using special characters when being pushed down from VMware credentials..

 

We had to redeploy the VMware OVA file for DCNM.

I had this problem too, where after deploying, I could not log into the web interface.  I tried the addUser.sh script and it kept telling me to not use a password with spaces in it, even though I wasn't.  I ended up redeploying and noticed in the setup that it states when setting the password "It can contain only the special characters .(dot), +(plus), and -(hyphen)."  My password had an @ sign in it, so I am guessing that was the problem.  I redeployed with a password that only had one of the three "acceptable" special characters and was able to log in successfully.

I deployed using a + and I get the same error you got about spaces and the admin password does not work either. 

In the latest version 10.x you cannot even use the three acceptable to log onto the GUI. It works for the SSH sessions just not the GUI.

Eric Scott
Cisco Employee
Cisco Employee

Hi Andreas,

Sorry I was not able to answer before the OVA was redeployed, however, it is possible to change the admin password from the server's CLI.

1.  SSH to the DCNM server

2.  cd to /usr/local/cisco/dcm/fm/bin

3.  "./addUser.sh  --help" to see the syntax of the command. 

The syntax for the addUser.sh script is "./addUser.sh <username> <password> <dbpassword>".  The adduser script can be used to add new user accounts or to change the password of existing user accounts.

4.  To change the admin password, the command would look something like this,

"./addUser.sh admin <new password> <dbpassword>"

If you have forgetten the database password, then you can find it in the file, /usr/local/cisco/dcm/jboss-as.7.2.0-Final/standalone/conf/postgres.cfg.xml.  Use the command "cat /usr/local/cisco/dcm/jboss-as.7.2.0-Final/standalone/conf/postgres.cfg.xml" to print the contents of the file to the screen.

-Eric

Eric, In 7.2 and 10.x vApp the above path for locating the DB password is incorrect it is /usr/local/cisco/dcm/jboss-as-7.2.0.Final/standalone/conf/postgresql.cfg.xml. Also the password is encrypted in that file as well.

athemistocleous
Level 1
Level 1

Thanks Eric

Review Cisco Networking for a $25 gift card