Mohammedz.com

For Linux and Shell scripting.

Mysql root passwords on Ensim servers

Leave a comment


Do you want to get mysql root passwords from your Ensim servers. Here are the ways to get it:

Windows:

1. Start –> Run

2.  regedit


3. HKEY_LOCAL_MACHINE/software/ensim/services/mysql will give you the root password

Linux:

Login to the server as root and run the script:

ensim-python -c “import sys;sys.path.append(\”/usr/lib/opcenter/mysql\”);import mysqlbe;print mysqlbe.read_mysqlpass()”

OR

ensim-python -c “from vh3 import virthost; from vh3.modules import mysql; print mysql.GetMySQLRootPass()”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s