June 2014
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Categories

June 2014
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  

AIX PowerHA (HACMP) Commands

Most commands should work on all PowerHA (HACMP prior to 5.5) versions. If there is some syntax error, please consult the manual page for that command.

PowerHA(HACMP) Commands How to start cluster daemons (options in that order: clstrmgr, clsmuxpd, broadcast message, clinfo, cllockd) clstart -m -s -b -i -l How to show cluster state and […]

AIX Install packages, upgrade, patching commands

To see the details of installed file sets:

#lslpp -l

To list the installation history of all file set in bos.net packages:

#lslpp -ha bos.net.*

To list the files in the bos.rte package:

#lslpp -f bos.rte

To list the file set which contain /etc/hosts file:

#lslpp -w /etc/hosts

To list the pre requisites for bos.net.nfs.server […]

Top 12 ‘PS’ Performance Commands

I use following ps commands in order to check for performance probelms:

1) Displaying top CPU_consuming processes:

# ps aux|head -1; ps aux|sort -rn +2|head -10

2) Displaying top 10 memory-consuming processes:

# ps aux|head -1; ps aux|sort -rn +3|head

3) Displaying process in order of being penalized:

# ps -eakl|head -1; ps -eakl|sort […]

UNIX Bourne Shell Scripting

UNIX Bourne Shell Scripting

These are the workshop notes I used to use for teaching a course on Bourne shell (sh) scripting. I haven’t taught the class for some time now, but the material is all still current since the Bourne shell hasn’t changed. Often you’ll find that these notes are a bit short of […]

Apache webserver

Versions

The default with Centos/Redhat is 2.2.x (CentOS like the Red Hat OS it derives from, are geared towards stability and so tend to lag behind what’s cutting edge)

2.4 is available and offers improved performance 2.4 moves away from Prefork MPM and moves to “event” mpm which uses a lot less memory

new features […]

UNIX Shell Scripting

UNIX Shell Scripting

The basic concept of a shell script is a list of commands, which are listed in the order of execution. A good shell script will have comments, preceded by a pound sign, #, describing the steps. There are conditional tests, such as value A is greater than value B, loops allowing us […]

lv_root: UNEXPECTED INCONSISTENCY fsck MANUALLY

lv_root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

*** An error occured during hte file system check *** Dropping you to a shell;the system will reboot *** when you leave the shell. Give root password for maintenance (or type Control-D to continue):

now what? First of all i would not worry to much about this error, […]

REDHAT 7 NEW LOOK

[gview file=”http://rmohan.com/wp-content/uploads/2014/06/SHARE-Anaheim-2014-v3.pdf”]

TOTAL/USED/AVAILABLE memory in AIX

TOTAL/USED/AVAILABLE memory in AIX

  #!/usr/bin/ksh #memory calculator um=`svmon -G | head -2|tail -1| awk {‘print $3’}` um=`expr $um / 256` tm=`lsattr -El sys0 -a realmem | awk {‘print $2’}` tm=`expr $tm / 1000` fm=`expr $tm – $um` echo “\n\n———————–“; echo “System : (`hostname`)”; echo “———————–\n\n”; echo “Memory Information\n\n”; echo “total memory = $tm MB” […]

maximum-number-of-file-descriptors solaris

Before I get into details here is the bottom line. If you start MySQL on Solaris as a non-root (ie, mysql) user and for some reason you need to adjust the […]