Steps to rest the EBS Cloud Manager password when current password not working
1. Make sure no jobs are running in EBS Cloud Manager UI.
2. Make sure NodeJS, Quartz server, Chef server and MySQL Database server are down.
$ ps aux | awk '/[s]erver.js/'
$ ps aux | awk '/[j]ob_scheduler.sh/'
$ ps aux | awk '/[m]ysqld/'
$ ps aux | awk '/[o]c_erchef/'
2.1 If they are running, bring them down:
A. for NodeJS: $ sudo pkill -f server.js
B. for Quartz server: $ sudo pkill -f job_scheduler.sh
: $ sudo pkill -f quartz-2.2.3.jar
C. for Chef server: $sudo chef-server-ctl stop
D. MySQL Database server: $ sudo pkill -f mysqld
3. Create file /tmp/resetpassword.ini with 777 permission
$ touch /tmp/resetpassword.ini
$ chmod 777 /tmp/resetpassword.ini
4. Using ViM Add below content to file : /tmp/resetpassword.ini
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Reset@123';
ALTER USER 'ebsoc'@'localhost' IDENTIFIED BY 'Reset@123';
ALTER USER 'quartz'@'localhost' IDENTIFIED BY 'Reset@123';
FLUSH PRIVILEGES;
5. Stat mysql server
$ sudo mysqld --init-file=/tmp/resetpassword.ini --user=mysql &
6. Kill the process
$ sudo pkill -f mysqld
7. Remove file /tmp/resetpassword.ini
$ rm -f /tmp/resetpassword.ini
8. Restart all services and when prompted, enter the new Cloud Manager admin password
$ cd /u01/install/APPS/apps-unlimited-ebs/bin
$ sh ebscloudmgrctl.sh startall
No comments:
Post a Comment