Monday, December 22, 2008

AIX vs FreeBSD vs HP-UX vs RedHat vs Solaris vs Tru64

Working in lot of flavours of Unix/Linux? Not able to remember all the commands? 

Then here is the help for you:

Cheers,
Thiru

Glance - HP Way of optimizing the system's performance

I have found a webcast which explains how to use HP glance for monitoring and tuning HP Unix systems. Click here for more information. 

Few things to notice
1. We need to buy license from HP (or you can use 60 day trial version)
2. It even supports monitoring AIX, Linux, Solaris apart from HP Unix.
3. Supports drill down to find out what is going on system

To me Glance looks like more powerful nmon. For those of you who are sick of monitoring systems using vmstat, sar, iostat etc  glance (and nmon) are good tools.

Cheers,
Thiru

Thursday, December 18, 2008

Be proud of being developer


Click the image to enlarge

Thursday, December 11, 2008

Executing command on remote host, remote monitoring unix/Linux flavour

I was given some exercise on remote monitoring. Here is how I cracked the same. I have splited the task into 2 parts. 1) Executing a command on remote host 2) Run vmstat in remote host and collect performance statistics.

Steps for Executing the command on remote host

  1. Create/update .netrc file in user home directory and add credentials of all the machines that we need to be accessed remotely. Format should be as follows: machine  login  password 
  2. Execute “chmod 600 .netrc” so that only owner will have read/write access.
  3. To execute the command on remote host use the following command:rexec   

Few examples for remote monitoring
HP Unix:
rexec remote_hp_ux_host vmstat 1 2 | tail -1 | awk '{print "Load Average : "$1"\nFree Mem :"$5"\nUser CPU : "$16"\nSystem CPU : "$17"\nIdle : "$18}'
 
AIX:
Rexec remote_aix_host vmstat 1 2 | awk -v  psize="`pagesize`" '{if (NR ==2) print "Total "$4"\nPage Size : " psize}{if (NR == 8) print "Free list sz: "$4"\nUser CPU   : "$14"\nSystem CPU : "$15"\nIdle       : "$16"\nIO Wait    : "$17}'

Rest of Flavours:
Give a try and send me a feed back.

Remote monitoring Linux/unix servers from linux/unix server

Steps for Executing the command on remote host

  1. Create/update .netrc file in user home directory and add credentials of all the machines that we need to be accessed remotely. Format should be as follows

machine login password

 

  1. Execute “chmod 600 .netrc” so that only owner will have read/write access.
  2. To execute the command on remote host use the following command
rexec

To remote monitor
rexec remotehost vmstat 1 10