Hi guys,
I just finish to code a scanning function for Cisco's access point Aironet. I have to monitoring some of them, all are Aironet 1130 AG with IOS 12.4(10b). It work well for me, but I don´t know if it will work on other Aironet models.
All the scan is based on this OID :
Object : cDot11ClientIpAddress
OID : 1.3.6.1.4.1.9.9.273.1.2.1.1.16
MIB : CISCO-DOT11-ASSOCIATION-MIB
So if you can´t have result for a snmpwalk with this OID, the function won't work.
Moreover if you don't use a router for know the MAC to IP association by ARP, you can uncomment this line in the file :
//$new_macs_ips[$j]["ip_address"] = $new_ip;
And this bloc :
/*$device["ips_total"] = sizeof($new_macs_ips);
db_execute("UPDATE mac_track_devices SET ips_total ='" . $device["ips_total"] . "' WHERE device_id='" . $device["device_id"] . "'");
foreach($new_macs_ips as $new_macs_ip) {
$insert_string = "REPLACE INTO mac_track_ips " .
"(site_id,device_id,hostname,device_name,port_number," .
"mac_address,ip_address,scan_date)" .
" VALUES ('" .
$device["site_id"] . "','" .
$device["device_id"] . "','" .
$device["hostname"] . "','" .
$device["device_name"] . "','" .
$port_number . "','" .
$new_macs_ip["mac_address"] . "','" .
$new_macs_ip["ip_address"] . "','" .
$scan_date . "')";
//mactrack_debug("SQL: " . $insert_string);
db_execute($insert_string);
}*/
It will directly associate MAC and IP (aironet can see IP).
Rename the file "mactrack_aironet.php" and place it to your "/mactrack/lib/" folder. Then edit "/mactrack/lib/mactrack_vendors.php" and add this line : include_once(dirname(__FILE__) . "/mactrack_aironet.php");
Tell me if you have any problems, I hope it will work for other models as well.
EDIT : oups I uploaded a bad version of the file, there is the right one.
Cisco Aironet Scanning Function
Moderators: Developers, Moderators
Cisco Aironet Scanning Function
- Attachments
-
- mactrack_aironet.txt
- (7.4 KiB) Downloaded 293 times
Re: Cisco Aironet Scanning Function
Awesome,
just tested it on one AP and works perfect.
just tested it on one AP and works perfect.
Joris.
http://www.routerjanitor.com
http://www.routerjanitor.com
Re: Cisco Aironet Scanning Function
thx a lot.
works with 1042N, too
works with 1042N, too
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
Who is online
Users browsing this forum: No registered users and 4 guests