[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Determining Solaris patch revisions
From: |
Tim Nelson |
Subject: |
Re: Determining Solaris patch revisions |
Date: |
Fri, 23 Sep 2005 10:57:31 +1000 (EST) |
On Wed, 21 Sep 2005 rader@ginseng.hep.wisc.edu wrote:
> I was thinking of writing a module that would parse the output of 'showrev
> -p',
> determine the latest rev and then for each patch print out:
>
> =patch_<patchrev>=<rev>
>
> For example:
>
> =patch_118558=3
>
> Numerical comparisons could then be used to determin if a rev was equal,
> greater, or less than.
>
> Any other ideas?
#!/usr/bin/perl -w
use strict;
open(IN,"showrev -p |");
while(<IN>) {
if ( $_ =~ /^Patch: (\d+)\-(\d+)/ ) {
print "=solaris_patchrev_$1=$2\n";
}
}
close(IN);
....seems simple enough?
....but do you know what patches you care about in advance? The set
of classes defined by the (any) module needs to be explictly defined
with addinstallable = ( )
Those of you playing with Solaris patches may want to check out
http://astro.uchicago.edu/~davidr/cfengine-tools/
If you read their LISA 2000 paper, it talks about their Solaris patch
stuff. They have code that does the stuff they were talking about.
I've made code (http://arpmats.sourceforge.net/) that does most of the
same stuff they talk about *except* the Solaris patch stuff, but I've left in
the database table, etc, for dealing with the patch stuff, so it should be easy
to implement in Arpmats if someone wants to take the time to do it.
:)
--
Kind Regards,
Tim Nelson
Server Administrator
P: 03 9934 0888
F: 03 9934 0899
E: tim.nelson@webalive.biz
W: www.webalive.biz
WebAlive Technologies
Level 1, Innovation Building
Digital Harbour
1010 La Trobe Street
Docklands Melbourne VIC 3008
This email (including all attachments) is intended solely for the named
addressee. It is confidential and may contain legally privileged information.
If
you receive it in error, please let us know by reply email, delete it from your
system and destroy any copies. This email is also subject to copyright. No
part of it should be reproduced, adapted or transmitted without the written
consent of the copyright owner.
Emails may be interfered with, may contain computer viruses or other defects
and may not be successfully replicated on other systems. We give no
warranties in relation to these matters. If you have any doubts about the
authenticity of an email purportedly sent by us, please contact us immediately.