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:


1. Start –> Run

2.  regedit

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


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()”


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


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s