Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
fuss:apple_airport [2015/12/21 22:13] – [Get the External IP Address of an Airport Device] officefuss:apple_airport [2022/04/19 08:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Enable SNMP on Airport Devices ======
  
 +If you are under OSX Lion and onward you will notice that the Aiport Utility does not allow you to enable SNMP, along with a bunch of other options that may have been useful to you. Do not worry, the settings are there but they are just hidden by the dumbed-down interface. Just load Snow Leopard and use the Aiport Utility in Snow Leopard to enable SNMP.
 +
 +====== Query Apple Aiport or TimeCapsule Devices over SNMP ======
 +
 +To set-up SNMP on the machine quarrying the device:
 +
 +  - The foremost thing to do is to enable SNMP on the Aiport.
 +  - On Debian-like systems, issue: ''aptitude install snmp snmp-mibs-downloader'' which will install SNMP along with the most vital MIBs.
 +  - Download the [[http://www.opensource.apple.com/source/net_snmp/net_snmp-121/mibs/AIRPORT-BASESTATION-3-MIB.txt?txt|AIRPORT-BASESTATION-3-MIB.txt]] file ({{fuss:airport-basestation-3-mib.txt|local mirror available}}) and place it in ''/usr/share/snmp/mibs''.
 +
 +You can now, for example, walk the entire tree of the Airport machine:
 +<code bash>
 +snmpwalk -v1 -c public 192.168.0.1 -m AIRPORT-BASESTATION-3-MIB
 +</code>
 +
 +where:
 +
 +  * ''192.168.0.1'' - is the IP address of the Airport station.
 +
 +====== Get the External IP Address of an Airport Device ======
 +
 +Consider a scenario where you have an Airport device that routes all the traffic to clients behind the Airport. You may need to retrieve the real IP address that the Airport currently has leased from your ISP.
 +
 +Provided you have installed the necessary SNMP tools as mentioned in the previous section of this page, the following bash command:
 +
 +<code bash>
 +snmpwalk -v1 -c public 192.168.0.1 -m AIRPORT-BASESTATION-3-MIB  RFC1213-MIB::ipAdEntAddr | head -1 | awk '{ print $4 }'
 +</code>
 +
 +where:
 +
 +  * ''192.168.0.1'' is the IP address on your local network of the Airport device
 +
 +should retrieve the external IP address of the Airport device.

fuss/apple_airport.1450736035.txt.bz2 · Last modified: 2015/12/21 22:13 by office

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.