Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Mar 22, 2019 5:42 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Cisco Aironet Scanning Function
PostPosted: Fri Aug 12, 2011 2:17 am 
Offline

Joined: Thu Jul 14, 2011 1:55 am
Posts: 10
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.


Attachments:
mactrack_aironet.txt [7.4 KiB]
Downloaded 242 times
Top
 Profile  
 
 Post subject: Re: Cisco Aironet Scanning Function
PostPosted: Thu Sep 01, 2011 8:35 am 
Offline
Cacti User
User avatar

Joined: Mon Oct 02, 2006 1:22 pm
Posts: 209
Location: Belgium
Awesome,

just tested it on one AP and works perfect.

_________________
Joris.
http://www.routerjanitor.com


Top
 Profile  
 
 Post subject: Re: Cisco Aironet Scanning Function
PostPosted: Fri Jul 13, 2012 7:48 am 
Offline
Cacti User

Joined: Fri Oct 09, 2009 8:59 am
Posts: 121
Location: Germany
thx a lot.
works with 1042N, too

_________________
System: Ubuntu [email protected], 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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group