Solved

Retrieve AEBS router configuration info using terminal rather than Airport Utility

Posted on 2011-03-22
1
554 Views
Last Modified: 2012-05-11
I have an Airport Extreme Base Station (AEBS).  Apple provides an application called Airport Utility to view and maintain this router's settings.  Most other routers have web page access to them, but as far as I know, the AEBS has no internal web page access.  How can I access the AEBS' configuration information using Terminal instead of the Airport Utility?
0
Comment
Question by:lisfolks
1 Comment
 
LVL 9

Accepted Solution

by:
lisfolks earned 0 total points
ID: 35191347
Found an answer:  SNMP can be used.  Here is an example script which pulls the WAN IP address directly from the AEBS.  SNMP is turned on and the SNMP Community String is "public".  (In the Airport Utility, under Advanced, in the "Logging and Statistics" section, the "Allow SNMP" box must be checked.  However, the "Allow SNMP over WAN" box need not be checked - unless I want to access these settings remotely over the Internet - which I'm not interested in at this time.)

#!/bin/sh

SNMPKEY="public"

if [ $# = 1 ] ; then
   SNMPKEY="$1"
fi
IFS=" "
set -- $(netstat -nr | egrep '^0.0.0.0|^default')
ROUTER=$2
set -- $(snmpwalk -Os -c "$SNMPKEY" -v 1 "$ROUTER" ipRouteNextHop.0.0.0.0)
set -- $(snmpwalk -Os -c "$SNMPKEY" -v 1 "$ROUTER" ipRouteNextHop.$4)

echo $4

Open in new window


Thanks to 'runforresterrun' over at Mac World's Mac OS X Hints area for this script:
http://hints.macworld.com/article.php?story=20091222232613368

Now, I just need to learn more SNMP to get the rest of the stuff...  :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this tutorial I will show you with short command examples how to obtain a packet footprint of all traffic flowing thru your Juniper device running ScreenOS. I do not know the exact firmware requirement, but I think the fprofile command is availab…
SUMMARY Enterprise backup in a heterogeneous network is a subject full of complications and restrictions. Issues such as filename & path structure, attributes and extended metadata always tend to complicate the subject to the extent where either …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now