02-26-2015 01:49 AM - edited 03-01-2019 07:49 AM
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
Solved! Go to Solution.
04-03-2015 02:17 PM
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
03-09-2015 06:51 AM
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.
07-30-2015 10:58 AM
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.
09-11-2016 12:12 PM
I deployed using a + and I get the same error you got about spaces and the admin password does not work either.
09-11-2016 01:19 PM
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.
04-03-2015 02:17 PM
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
09-11-2016 12:36 PM
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.
04-04-2015 09:20 AM
Thanks Eric
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide