2007-10-31 03:42:29 +00:00
|
|
|
#!/bin/sh
|
2008-04-09 20:22:46 +00:00
|
|
|
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
|
2008-09-06 22:25:07 +00:00
|
|
|
while grep '<error>' /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
|
2008-04-09 20:22:46 +00:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
let i=i+1
|
|
|
|
done
|
2007-10-31 03:42:29 +00:00
|
|
|
fi
|
2008-09-06 22:25:07 +00:00
|
|
|
while grep '<error>' /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
|