[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Testbed-admins] STuck



You you are right the print just gave me text value, but running it with the -x option gives you the clean picture. Any easy fix in mind ??

root@pc62:/usr/local/etc/emulab/rc# sh -x /usr/local/etc/emulab/rc/rc.ipod
+ . /etc/emulab/paths.sh
+ LOGDIR=/var/tmp
+ LOCKDIR=/var/tmp
+ [ -d /usr/local/etc/emulab ]
+ BINDIR=/usr/local/etc/emulab
+ [ -e /etc/emulab/client.pem ]
+ ETCDIR=/etc/emulab
+ VARDIR=/var/emulab
+ BOOTDIR=/var/emulab/boot
+ LOGDIR=/var/emulab/logs
+ LOCKDIR=/var/emulab/lock
+ DBDIR=/var/emulab/db
+ export ETCDIR
+ export BINDIR
+ export VARDIR
+ export BOOTDIR
+ export LOGDIR
+ export DBDIR
+ export LOCKDIR
+ PATH=/usr/local/etc/emulab:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/site/bin:/usr/site/sbin
+ /usr/local/etc/emulab/tmcc ipodinfo
+ IPODINFO=HOST=128.163.143.10 MASK=255.255.255.255 HASH=fca4b3328257112088c3188fb66be36d
+ [ xHOST=128.163.143.10 MASK=255.255.255.255 HASH=fca4b3328257112088c3188fb66be36d != x ]
+ echo HOST=128.163.143.10 MASK=255.255.255.255 HASH=fca4b3328257112088c3188fb66be36d
+ sed -e s/.*HOST=\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \2 \3 \4/
+ awk { printf "%d\n", $1*16777216+$2*65536+$3*256+$4 }
+ IPODHOST=2147483647
+ echo HOST=128.163.143.10 MASK=255.255.255.255 HASH=fca4b3328257112088c3188fb66be36d
+ sed -e s/.*MASK=\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \2 \3 \4/
+ awk { printf "%d\n", $1*16777216+$2*65536+$3*256+$4 }
+ IPODMASK=2147483647
+ echo HOST=128.163.143.10 MASK=255.255.255.255 HASH=fca4b3328257112088c3188fb66be36d
+ sed -e s/.*HASH=\(.*\)/\1/
+ IPODKEY=fca4b3328257112088c3188fb66be36d
+ sysctl net.ipv4.icmp_ipod_version
+ version=net.ipv4.icmp_ipod_version = 2
+ [ net.ipv4.icmp_ipod_version = 2x = x ]
+ sysctl -w net.ipv4.icmp_ipod_host=2147483647
+ sysctl -w net.ipv4.icmp_ipod_mask=2147483647
+ sysctl -w net.ipv4.icmp_ipod_key=fca4b3328257112088c3188fb66be36d
+ sysctl -w net.ipv4.icmp_ipod_enabled=1
+ str=Authenticated
+ echo HOST=128.163.143.10 MASK=255.255.255.255 HASH=fca4b3328257112088c3188fb66be36d
+ sed -e s/.*HOST=\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*/\1/
+ IPODHOST=128.163.143.10
+ echo HOST=128.163.143.10 MASK=255.255.255.255 HASH=fca4b3328257112088c3188fb66be36d
+ sed -e s/.*MASK=\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*/\1/
+ IPODMASK=255.255.255.255
+ echo Authenticated IPOD enabled from 128.163.143.10/255.255.255.255
Authenticated IPOD enabled from 128.163.143.10/255.255.255.255
cheers,

Hussam
(Hussamuddin Nasir)

Netlab Operations Team 

-------------------------------------------------------------------
Laboratory for Adv. Networking  Phone  : (859)218-0059
James F Hardymon Building       Fax    : (859)323-3740
301 Rose Street, Rm 202         E-mail : nasir@netlab.uky.edu
Lexington, KY 40506-0495        Web    : http://www.netlab.uky.edu

                        University of Kentucky
                        **********************
------------------------------------------------------------------- 


Ryan Jackson wrote:
* Hussamuddin Nasir <nasir@netlab.uky.edu> [090217 11:56]:
  
Guess not.. Let me look into this  step by step in detail on our side.  
I'll get back to you guys .
    

Mike mentioned that the rc.ipod script might be doing the wrong thing.
You could try running it with 'sh -x /usr/local/etc/emulab/rc/rc.ipod'
and see if the wrong values are being passed to 'sysctl -w'.