Hello Egan I work with Antoine Tabary ... see below the attacched file result of the : diff -Naur old_pre.sles new_pre.sles > diff_pre.sles
thanks Regards Patrick Jaeger 17 Avenue De L'europe HPC I/T Specialist Bois Colombes Cedex, 92275 SSIS - ECIS 0233AA France Global Technology Services Phone: +33-1-5875-2455 Mobile: +33-6.7192.2077 e-mail: [email protected] From: Egan Ford <[email protected]> To: xCAT Users Mailing list <[email protected]> Date: 18/11/2011 19:09 Subject: Re: [xcat-user] nodestat does not inform which rpm is being installed Can you send the diff as an attachment or just attach new_pre.sles? Thanks. On Fri, Nov 18, 2011 at 10:31 AM, Antoine Tabary < [email protected]> wrote: Hello, I eventually found out a way to have nodestat give information about which rpm is being installed during rinstall of a node. All modifications are in pre.sles. 1/ There was a typo xcatdport instead of xcatiport 2/ The y2logRPM file does not seem to exist anymore, so I used y2log and looked into it for the last entry about an rpm installation, and syntax is different therefore the way to extract rpm name also differs. In case someone is interested, here is a summary of the modifications I made : chou:/opt/xcat/share/xcat/install/scripts # diff -Naur old_pre.sles new_pre.sles --- old_pre.sles 2011-08-07 14:42:01.000000000 +0200 +++ new_pre.sles 2011-11-18 18:19:56.000000000 +0100 @@ -14,7 +14,7 @@ #!$AWK -f BEGIN { - xcatdport = "#TABLE:site:key=xcatiport:value#" + xcatiport = "#TABLE:site:key=xcatiport:value#" xcatdhost = "#XCATVAR:XCATMASTER#" ns = "/inet/tcp/0/" xcatdhost "/" xcatiport @@ -65,14 +65,19 @@ } if(\$1 == "stat") { - while((getline < "/mnt/var/log/YaST2/y2logRPM") > 0) { + linerpm = "prep" + while((getline < "/var/log/YaST2/y2log") > 0) { line = \$0 + if(line ~ /\.rpm'/) { + linerpm = line + } } - close("/mnt/var/log/YaST2/y2logRPM") + close("/var/log/YaST2/y2log") + line = linerpm - if(line ~ /\.rpm /) { - sub(/\.[^\.]+\.rpm .*$/,"",line) - sub(/^.* /,"",line) + if(line ~ /\.rpm'/) { + sub(/\.[^\.]+\.rpm'.*$/,"",line) + sub(/^.*\//,"",line) } else { line = "prep" chou:/opt/xcat/share/xcat/install/scripts # Best regards, Antoine Tabary 17 Avenue De L'europe Certified HPC I/T Specialist Bois Colombes Cedex, 92275 0233AA France ITS e-mail: [email protected] Sauf indication contraire ci-dessus:/ Unless stated otherwise above: Compagnie IBM France Siège Social : 17 avenue de l'Europe, 92275 Bois-Colombes Cedex RCS Nanterre 552 118 465 Forme Sociale : S.A.S. Capital Social : 639.291.962.10 ? SIREN/SIRET : 552 118 465 03644 - Code NAF 6202A ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user Sauf indication contraire ci-dessus:/ Unless stated otherwise above: Compagnie IBM France Siège Social : 17 avenue de l'Europe, 92275 Bois-Colombes Cedex RCS Nanterre 552 118 465 Forme Sociale : S.A.S. Capital Social : 639.291.962.10 ? SIREN/SIRET : 552 118 465 03644 - Code NAF 6202A
<<image/gif>>
<<image/gif>>
diff_pre.sles
Description: Binary data
------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
