[hobbit] monitoring patch status?

Everett, Vernon Vernon.Everett at woodside.com.au
Sun Nov 16 12:23:10 CET 2008


Hi Guys

I have used this small report to assist us (Solaris mob) and the Wintel guys to determine kernel update/revision level, which we use an an indication of patch level.

I have created a directory, /usr/lib/hobbit/custom where I put this sort of script.

#!/bin/ksh
export BBHOME=/usr/lib/hobbit
typeset -L20 HOST
mkdir -p /usr/lib/hobbit/custom/data
cd /usr/lib/hobbit/custom/data
INCLUDES=$(grep ^include /etc/hobbit/bb-hosts | awk '{ print $2 }')
cat /etc/hobbit/bb-hosts $INCLUDES | egrep -h -v "^#|^page|^$|^subpage|^group|^include" | awk '{ print $2 }' \
   | while read HOSTNAME
     do
        wget -O $HOSTNAME -o /dev/null http://hobbit/hobbit-cgi/bb-hostsvc.sh\?HOST\=$HOSTNAME\&SERVICE\=info &
     done
wait
for HOSTNAME in /usr/lib/hobbit/custom/data/*
do
   OSVER=$(grep OS: $HOSTNAME | sed 's/OS://g'| sed -e :a -e 's/<[^>]*>//g;/</N;//ba')
   HOST=$(basename $HOSTNAME)
   echo "$HOST  $OSVER"
done
rm /usr/lib/hobbit/custom/data/*

It works for us, but your mileage may vary.

Cheers
     V




-----Original Message-----
From: Martin Flemming [mailto:martin.flemming at desy.de]
Sent: Saturday, 15 November 2008 11:19 PM
To: hobbit at hswn.dk
Subject: Re: [hobbit] monitoring patch status?


Ok, my fault ... it's only a update not a patch-mechanism ..

        martin

On Sat, 15 Nov 2008, Rich Smrcina wrote:

> T.J. Yang wrote:
>>  For my understanding, there is no patch concept for Linux OS.
>>  Solaris and HP-UX are two Unix OS that I need to deal with have OS
>> patches.
>>  Windows has patch also but is there an open source pca script  doing
>> patch  report ?
>>
>>
>>  tj
>
> The enterprise or server versions of major distros (like SLES) have
> regular patch distribution and notification processes.  If specific
> people in an installation sign up for notification of patches, they
> are sent emails that patches are available.  Patch servers can also be
> set up that can download these patches so that the internal servers
> can have the patches available without having to all fetch them from the distributor (Novell in this case).
> I'm going to guess that RedHat Satellite does something similar.
>
> --
> Rich Smrcina
> VM Assist, Inc.
> Phone: 414-491-6001
> Ans Service:  360-715-2467
> http://www.linkedin.com/in/richsmrcina
>
> Catch the WAVV!  http://www.wavv.org
> WAVV 2009 - Orlando, FL - May 15-19, 2009
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>
>

Gruss

        Martin Flemming


______________________________________________________
Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : 040 - 8998 - 4667
22603 Hamburg      mail   : martin.flemming at desy.de
______________________________________________________

To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk



NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.




More information about the Xymon mailing list