From 4f1f15eb2298b32af8560a78d4cb2726be728da7 Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 26 Oct 2009 21:01:16 +0000 Subject: [PATCH] update some scripts due to RMC batch file format change git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-rmc/scripts/logeventtoxcat | 2 +- xCAT-rmc/scripts/updatexcatnodestatus | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-rmc/scripts/logeventtoxcat b/xCAT-rmc/scripts/logeventtoxcat index 9c5d88aab..2c7216e4a 100755 --- a/xCAT-rmc/scripts/logeventtoxcat +++ b/xCAT-rmc/scripts/logeventtoxcat @@ -65,7 +65,7 @@ if (!$batch) { #handle single event my $count; for ($count = 1; $count <= $num_events; $count++) { - my $content=`sed -n "/Event $count\$/,/ERRM_COND_BATCH/ p" $filename`; + my $content=`sed -n "/Event $count:/,/ERRM_COND_BATCH/ p" $filename`; my @content_array=split(/\n/, $content); pop(@content_array); #get rid of last line diff --git a/xCAT-rmc/scripts/updatexcatnodestatus b/xCAT-rmc/scripts/updatexcatnodestatus index 96ebd9b88..482de8fee 100755 --- a/xCAT-rmc/scripts/updatexcatnodestatus +++ b/xCAT-rmc/scripts/updatexcatnodestatus @@ -105,7 +105,7 @@ if (!$batch) { my @inactive=(); my %new_value=(); for ($count = 1; $count <= $num_events; $count++) { - my $content=`sed -n "/Event $count\$/,/ERRM_COND_BATCH/ p" $filename`; + my $content=`sed -n "/Event $count:/,/ERRM_COND_BATCH/ p" $filename`; my @content_array=split(/\n/, $content); pop(@content_array); #get rid of last line