From c45cbaf7cdd80a78fff41c79a3be80c162351b4c Mon Sep 17 00:00:00 2001 From: ellen56 Date: Tue, 18 Oct 2011 06:06:24 +0000 Subject: [PATCH] fix defect 3423405 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10816 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-rmc/plugin/rmcmon.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xCAT-rmc/plugin/rmcmon.pm b/xCAT-rmc/plugin/rmcmon.pm index 1117d5b63..d3c6c3875 100644 --- a/xCAT-rmc/plugin/rmcmon.pm +++ b/xCAT-rmc/plugin/rmcmon.pm @@ -1150,6 +1150,18 @@ sub addNodes { } } + #check if hmc node added to management domain successfully + my $n = 6; + while($n > 0){ + $result = `/usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc | grep $node`; + if ($result =~ /\s$node\s/){ + last; + } else { + sleep 10; + $n = $n - 1; + } + } + #define AllServiceableEvents_B condition on the HMC $result=`CT_MANAGEMENT_SCOPE=3 /usr/bin/mkrsrc-api IBM.Condition::Name::"AllServiceableEvents_B"::ResourceClass::"IBM.Sensor"::EventExpression::"String=?\\\"LSSVCEVENTS_ALL%\\\""::SelectionString::"Name=\\\"CSMServiceableEventSensor\\\""::NodeNameList::{\\\"$node\\\"}::EventBatchingInterval::1::BatchedEventRetentionPeriod::72 2>&1`; if (($?) && ($result !~ /2618-201|2618-008|2636-050/)){