-Have nbroot set to be picky about form of arp responses

-Have nbroot do a ping, to force the discover server to have correct arp table, avoid race by having it done client side instead of server side

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@871 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-03-21 21:17:57 +00:00
parent ea9f8750f8
commit 8bf44b15fa
2 changed files with 9 additions and 0 deletions

View File

@ -72,6 +72,7 @@ while :; do
echo "<serial>$SERIAL</serial>"
fi
echo "</xcatrequest>" ) > /tmp/discout
ping -c 1 $XCATMASTER
cat /tmp/discout | udpcat.awk $XCATMASTER $XCATPORT & #can't figure out how to make a hung gawk behave..
if usleep 8000000 #Give the preferred method 5 seconds to complete before resorting
then
@ -81,8 +82,10 @@ while :; do
for dnic in `ifconfig -a|grep HWaddr|grep -v sit|awk '{print $1}'|grep -v $nic`; do
ifconfig $dnic down
done
ping -c 1 $XCATMASTER
cat /tmp/discout | udpcat.awk $XCATMASTER $XCATPORT & #can't figure out how to make a hung gawk behave..
for dhcps in `cat /tmp/dhcpserver`; do
ping -c 1 $dhcps
cat /tmp/discout | udpcat.awk $dhcps $XCATPORT &
done
for dnic in `ifconfig -a|grep HWaddr|grep -v sit|awk '{print $1}'|grep -v $nic`; do

View File

@ -12,6 +12,12 @@ echo "cat /etc/motd" >> /etc/profile
modprobe ohci-hcd
modprobe uhci-hcd
modprobe ehci-hcd
for d in /proc/sys/net/ipv4/conf/*; do
echo 1 > $d/arp_filter
echo 1 > $d/arp_ignore
done
for i in $(lspci -n | awk '{print $1 "%" $3}')
do
PCI=$(echo $i | awk -F% '{print $1}')