sureshmsi.co.nr

  • co.nr

Root password of MySQL in Ensim linux

Posted by sureshm on February 21, 2008

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

Posted in Control Panels, Ensim, Linux, Technical | Tagged: | Leave a Comment »

Synchronize VPFS of Ensim

Posted by sureshm on February 13, 2008

How to Synchronize Virtual Private File System of Ensim Servers

VPFS means Virtual Private File System. Each domain (site) has its own system files and this is populated with a default set of service files from the template.

The template directory is located in the ‘/home/virtual/FILESYSTEMTEMPLATE’.

When a service RPM is upgraded or installed in the server, say you have installed ‘php-mbstring’ in the server, the VPFS needs to be updated so that it will get updated for all domains hosted in the server.

The command used is synchronizeFST.

To run it manually:

# /usr/local/sbin/synchronizeFST -Sv

The switches of synchronizeFST are :

# /usr/local/sbin/synchronizeFST

-h : –help
-v : –verbose
-p : –previous | the time when the script was last executed successfully.
-l : –listrpms | lists the RPMs that were updated since the script was last executed successfully.
-R : –rpmformat | format in which you want RPM names to be displayed.
-T : –timeformat | format in which you want the time to display for all time-related information.
-t : –touch | shows the time you want the script to assume for the last successful run.
-S : –synchronize

Commonly used switches:

To synchronize FST of all sites:

# /usr/local/sbin/synchronizeFST -Sv

View the time when this was last run successfully:

# /usr/local/sbin/synchronizeFST -p
# usr/local/sbin/synchronizeFST -p -T ‘%A’

Automate the process

The script at ‘/usr/local/sbin/scheduleMaintenance’ will help to automate the process. You can check more information about this script with -h or –help command.

Posted in Control Panels, Ensim, Linux, Technical | Tagged: , | Leave a Comment »

Customize Ensim X Pro configuration

Posted by sureshm on February 13, 2008

The configuration files are located at:

#  /etc/ensim/epl.conf [ Main Configuration: Don't edit ]
#  /etc/appliance/customization/epl.conf

This can be done easily with an utility ‘eplconf’

The usage is given below.

Path of binary :

# /usr/local/sbin/eplconf

Display the List of Directives of configuration

# /usr/local/sbin/eplconf get
OR simply,
# /usr/local/sbin/eplconf

Retrieve the value of selected directive

# /usr/local/sbin/eplconf get <DIRECTIVE_NAME>

Change the value of selected directive

# /usr/local/sbin/eplconf set <DIRECTIVE_NAME> <VALUE>

Undo the changes of selected directive

# /usr/local/sbin/eplconf unset <DIRECTIVE_NAME> <VALUE>

Posted in Control Panels, Ensim, Linux, Technical | Tagged: | Leave a Comment »

Convert IP based site to namebased and vice-versa in Ensim

Posted by sureshm on February 13, 2008

01) IP-based to name-based

#   EditVirtDomain -c ipinfo,namebased=1,ipadrs=\[IP\] nbaddrs=\[domain_name.com\]

02) Name-based to IP-based

#   EditVirtDomain -c ipinfo,namebased=0,ipadrs=\[IP\] nbaddrs=\[domain_name.com\]

where IP = IP of the site and domain_name.com = domainname

Posted in Control Panels, Ensim, Linux, Technical | Tagged: | Leave a Comment »

Ensim Maintenance Mode

Posted by sureshm on February 13, 2008

To run Ensim through maintenance, follow the steps.

# /usr/local/sbin/set_maintenance
# /usr/local/sbin/set_pre_maintenance
# /usr/local/sbin/set_post_maintenance
# /etc/init.d/webppliance restart OR /etc/init.d/epld restart (for EnsimPro)

Please note, during the maintenance mode, the sites hosted on the server are inaccessible.

Posted in Control Panels, Ensim, Linux, Technical | Tagged: | Leave a Comment »

Re-run analog stats in Ensim

Posted by sureshm on February 13, 2008

Inorder to re-run the analog status in Ensim, run the following from the shell.

# /usr/lib/opcenter/analog/genAnalogHTML.py >/dev/null 2>/dev/null

Posted in Control Panels, Ensim, Linux, Technical | Tagged: | Leave a Comment »

Rotate logs for a domain in Ensim Servers

Posted by sureshm on February 13, 2008

To rotate the logs of a single domain in the Ensim server, run logrotate as

chroot /home/virtual/site#/fst/ logrotate -c /etc/logrotate.conf ; service httpd restart

Posted in Control Panels, Ensim, Linux, Technical | Tagged: , | Leave a Comment »

SMBIOS/DMI information in the Linux server

Posted by sureshm on February 13, 2008

Run this command from shell

$ dmidecode -q | less

OR

$ /usr/local/sbin/dmidecode -q | less

To install dmidecode:

$ wget http://download.savannah.gnu.org/releases/dmidecode/dmidecode-2.10.tar.gz

$ tar xzvf dmidecode-2.10.tar.gz ; cd dmidecode-2.10

$ make ; make install

Posted in Linux, Technical | Leave a Comment »

List all domain names with IP addresses in Ensim

Posted by sureshm on February 13, 2008

Inorder to view the domains in the server with their corresponding ips:

ListAllVirtDomains | awk ‘{print $1, $3}’

Posted in Control Panels, Ensim, Linux, Technical | Tagged: , , , | Leave a Comment »

Something you may not know

Posted by sureshm on December 16, 2007

Here are somethings you may not know……

1. Coca-Cola was originally green.

2.  The most common name in the world is  Mohammed.

3.  The name of all the continents ends with the same letter that  they start  with.

4.  The strongest muscle in the body is the tongue.

5.  There are two credit cards for every person in the United  States .

6.  TYPEWRITER is the longest word that can be made using the  letters
only on one row of the  keyboard.

7.  Women blink nearly twice as much as  men!

8.  You can’t kill yourself by holding your  breath..

9.  It is impossible to lick your  elbow.

10.  People say “Bless you” when you sneeze because when you
Sneeze, your  heart stops for a  millisecond.

11.  It is physically impossible for pigs to look up into the  sky.

12.  The “sixth sick sheik’s sixth sheep’s sick” is said to be the
toughest  tongue twister in the English  language.

13.  If you sneeze too hard, you can fracture a rib. If you try  to suppress a sneeze; you can rupture a blood vessel in your head or  neck and  die.

14.  Each king in a deck of playing cards represents great king from History.  “Spades” – King David; “Clubs” – Alexander the Great; “Hearts” – Charlemagne; “Diamonds” –  Julius  Caesar.

15.  111,111,111 x 111,111,111 =  12,345,678,987,654,321

16.  If a statue of a warrior on a horse has both front  legs in the air, the person died in battle. If the
horse has one front  leg in the air, the person died as a result of wounds received in  battle.
If the horse has a all four legs on the  ground, the person died of  natural causes.

17. What do bullet proof vests, fire escapes, windshield wipers and  laser printers all have in  common?
Ans. – All invented by  women.

18.  Honey – This is the only food that doesn’t spoil.

19.  A crocodile cannot stick its tongue out.

20.  A snail can sleep for three years.

21.  All polar bears are left  handed.

22.  American Airlines saved $40,000 in 1987 by eliminating one olive from each salad served in  first-class.

23.  Butterflies taste with their  feet.

24.  Elephants are the only animals that can’t  jump.

25.  In the last 4000 years, no new animals have been  domesticated.

26.  On average, people fear spiders more than they do death.

27.  Shakespeare invented the word ‘assassination’ and  ‘bump’.

28.  Stewardesses is the longest word typed with only the left  hand.

29.  The ant always falls over on its right side when  intoxicated.

30.  The electric chair was invented by a  dentist.

31.  The human heart creates enough pressure when it pumps out to  the body to squirt blood 30  feet.

32.  Rats multiply so quickly that in 18 months, two rats could have  over million descendants.

33.  Wearing headphones for just an hour will increase the bacteria in your ear by 700  times.

34.  The cigarette lighter was invented before the  match.

35.  Most lipstick contains fish  scales.

36.  Like fingerprints, everyone’s tongue print is  different

37.  And finally 99% of people who read this will try to lick their elbow. Dont try to do it in public 😉

Last,…  try to lick the your nose … can you ?  I can 🙂

Posted in Entertainment | Tagged: , , , , , | Leave a Comment »