Fix up various issues with discovery
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10493 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9f82fb4654
commit
24c6a5bef2
@ -42,5 +42,9 @@ elif [ $reason = "BOUND6" ]; then
|
||||
if [ ! -z "$new_ip6_address" ]; then
|
||||
ip addr add dev $interface $new_ip6_address/$new_ip6_prefixlen
|
||||
fi
|
||||
elif [ $reason = "RELEASE" ]; then
|
||||
if [ ! -z "$old_ip_address" ]; then
|
||||
ip addr del dev $interface $old_ip_address/$old_subnet_mask
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
@ -83,7 +83,7 @@ CPUTYPE=`cat /tmp/cpumod|awk -F':' '{print $2}'|sed -e 's/^ //'`
|
||||
echo '<xcatrequest>' > /tmp/discopacket
|
||||
echo "<command>findme</command>" >> /tmp/discopacket
|
||||
echo "<arch>$ARCH</arch>" >> /tmp/discopacket
|
||||
if [ ! -z "$IAMAVM" ]; then
|
||||
if [ "$IAMAVM"=1 ]; then
|
||||
echo "<nodetype>virtual</nodetype>" >> /tmp/discopacket
|
||||
fi
|
||||
echo "<cpucount>$CPUCOUNT</cpucount>" >> /tmp/discopacket
|
||||
@ -99,7 +99,7 @@ for dev in `ip link|grep -B1 ether|grep UP|awk '{print $2}'|sed -e s/://`; do
|
||||
DRIVER=`grep DRIVER /sys/class/net/$dev/device/uevent|awk -F= '{print $2}'`
|
||||
ADDRESS=`ip address show dev $dev|grep "inet "|grep global|awk '{print $2}'`
|
||||
MAC=`ip link show dev $dev|grep ether|awk '{print $2}'`
|
||||
echo "<mac>$DRIVER|$MAC|$ADDRESS</mac>" >> /tmp/discopacket
|
||||
echo "<mac>$DRIVER|$dev|$MAC|$ADDRESS</mac>" >> /tmp/discopacket
|
||||
done
|
||||
echo "<xcatpubkey>$PUBKEY</xcatpubkey>" >> /tmp/discopacket #this is not secure to use by itself, switch sourced pubkey for security
|
||||
echo "<sha512sig>" >> /tmp/discopacket
|
||||
@ -123,7 +123,7 @@ while [ ! -r /restart ]; do
|
||||
for dhcps in `grep dhcp-server /var/lib/dhclient/dhclient.leases|awk '{print $4}'|sed -s 's/;//'`; do
|
||||
(cat /tmp/discopacket | udpcat.awk $dhcps $XCATPORT ) &
|
||||
done
|
||||
cat /tmp/discopacket
|
||||
#cat /tmp/discopacket
|
||||
sleep 5
|
||||
done
|
||||
/bin/restart
|
||||
|
Loading…
Reference in New Issue
Block a user