Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Find an Airport Extreme's WAN address in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Find an Airport Extreme's WAN address in Terminal
Authored by: digitalsushi on Dec 13, '10 08:23:06AM
I couldnt figure out how to make my mib resolve my 2009 airport extreme... but i have no idea how snmp works, either.
But this works for me. I don't figure this is specific to my general device (i think this is generic)

ROUTER=`netstat -nr|awk '/^ {print $2}'`
gw=`snmpwalk -Os -c public -v 1 $ROUTER iso.|awk '{print $4}'`
ip=`snmpwalk -Os -c public -v 1 $ROUTER iso.$gw|awk '{print $4}'`
echo $ip

[ Reply to This | # ]