A. Mikkelsen VMware ESX scripts, commands, tools and other nice to know things that will make your virtualization days easier!!!!

Monday, April 16, 2007

Health script version 0.008 released

Filed under: Scripting — A. Mikkelsen @ 14:19 pm

Dafa has done it again and added:

– Added show number of cpu cores and KHz

2 Comments »

  1. Great script although I found a small problem with the way you pull out the ntp servers from the ntp.conf using tr. A better way is to use sed so the line becomes:
    my_ntp_server=`grep ^server /etc/ntp.conf|sed -e ‘s/^server *//’`

    Additionally changing the check for ssh rootlogin to ignore comments is a bit cleaner (at least in my environment)

    my_ssh_rootlogin=`grep PermitRootLogin /etc/ssh/sshd_config | grep -v ‘#’`

    Thanks

    Nick

    Comment by Nick Rosenberg — Tuesday, April 17, 2007 @ 13:52 pm

  2. Thanks for the comment i’ll update the script ASAP…..

    Comment by amikkelsen — Tuesday, April 17, 2007 @ 14:05 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress