From 658d2e4b0db842a584eed4fdbd54b26a008d0028 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 6 Sep 2008 22:25:07 +0000 Subject: [PATCH] -Have getipmi in nbroot block on error and give a lound error when server gives error git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2085 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot/overlay/bin/getipmi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/xCAT-nbroot/overlay/bin/getipmi b/xCAT-nbroot/overlay/bin/getipmi index deb1bf53e..0f50d4349 100644 --- a/xCAT-nbroot/overlay/bin/getipmi +++ b/xCAT-nbroot/overlay/bin/getipmi @@ -3,8 +3,22 @@ if ! getipmi.awk 301 > /dev/null 2>&1; then let i=400 for srv in `cat /tmp/dhcpserver`; do if getipmi.awk $i > /dev/null 2>&1 ; then + while grep '' /tmp/ipmi.data; do + echo "ERROR RETRIEVING BMC CONFIGURATION, CHECK SERVER LOGS AND TABLES!"; + let sleepy=$RANDOM%60+60 + echo "Retrying in $sleepy seconds" + sleep $sleepy + getipmi.awk $i + done exit fi let i=i+1 done fi +while grep '' /tmp/ipmi.data; do + echo "ERROR RETRIEVING BMC CONFIGURATION, CHECK SERVER LOGS AND TABLES!"; + let sleepy=$RANDOM%60+60 + echo "Retrying in $sleepy seconds" + sleep $sleepy + getipmi.awk 301 +done