Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


MacTrack and Foundry Networks
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
TheWitness
Developer


Joined: 14 May 2002
Posts: 13161
Location: MI, USA

PostPosted: Mon Mar 05, 2007 11:47 pm    Post subject: Reply with quote

So, really, they are members of two VLANS?

TheWitness
Back to top
Tybio
Cacti User


Joined: 16 Feb 2006
Posts: 79

PostPosted: Tue Mar 06, 2007 9:33 am    Post subject: Reply with quote

Exactly,

4095 is the RSTP control VLAN, every port on the switch is a member of it. However, is it comes last in the SNMP walk it is "Squashing" the real VLAN of the port. So it would be ideal to just say "Ignore any mention of vlan 4095".



example..JPG
 Description:
 Filesize:  26.12 KB
 Viewed:  6949 Time(s)

example..JPG


Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 13161
Location: MI, USA

PostPosted: Tue Mar 06, 2007 1:30 pm    Post subject: Reply with quote

Ok, put your think generically hat on, is there "any" reason someone would want to know that VLAN 4095 is on a port? I revise the VLAN function to return multiple entries. It screws up the design a little. Comments appreciated.
Back to top
msw1970
Cacti User


Joined: 09 Jan 2007
Posts: 186
Location: London, UK

PostPosted: Tue Mar 06, 2007 2:04 pm    Post subject: Reply with quote

TheWitness wrote:
Ok, put your think generically hat on, is there "any" reason someone would want to know that VLAN 4095 is on a port? I revise the VLAN function to return multiple entries. It screws up the design a little. Comments appreciated.


One point to note, certainly with Foundry POE switches a port can be configured as "dual-mode" to allow it to be in 2 VLANS. We have this so that an IP Phone plugs into the switchport and the PC then plugs into a port on the phone and the switchport sit's in both the Voice & Data VLAN's.
Back to top
msw1970
Cacti User


Joined: 09 Jan 2007
Posts: 186
Location: London, UK

PostPosted: Tue Mar 06, 2007 3:02 pm    Post subject: Reply with quote

TheWitness wrote:
Well right now, if you goto the Main Cacti page and look at how to get access to Cacti SVN, you can take that connection line and change the path from /var/svnroot/cacti to /var/svnroot/mactrack instead. However, please note that I am currently moving it to /var/svnroot/cacti_plugins.

Once downloaded and put in place, you have to run the "database_upgrade.php" script.

TheWitness


OK, I've downloaded and installed from SVN... When I run database_upgrade.php I get the following errors....

PHP Warning: file(http://standards.ieee.org/regauth/oui/oui.txt): failed to open stream: Connection timed out in /var/www/html/test_cacti/plugins/mactrack/lib/mactrack_functions.php on line 1568
OUI Database Download from IEEE Complete
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/test_cacti/plugins/mactrack/lib/mactrack_functions.php on line 1592
Back to top
Tybio
Cacti User


Joined: 16 Feb 2006
Posts: 79

PostPosted: Tue Mar 06, 2007 4:20 pm    Post subject: Reply with quote

msw1970 wrote:

One point to note, certainly with Foundry POE switches a port can be configured as "dual-mode" to allow it to be in 2 VLANS. We have this so that an IP Phone plugs into the switchport and the PC then plugs into a port on the phone and the switchport sit's in both the Voice & Data VLAN's.


I would hope not vlan 4095.

From what I've found, vlan 4095 is defined for local switch control use.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 13161
Location: MI, USA

PostPosted: Tue Mar 06, 2007 8:17 pm    Post subject: Reply with quote

msw1970,

Your firewall is blocking the download of this file. Goto the site and manually download the file. Then I think I provided a function to manually import it. Check the Mactrack directory for something like "mactrack_import_ouidb.php" or something like that.

TheWitness
Back to top
msw1970
Cacti User


Joined: 09 Jan 2007
Posts: 186
Location: London, UK

PostPosted: Wed Mar 07, 2007 5:39 pm    Post subject: Reply with quote

TheWitness wrote:
msw1970,

Your firewall is blocking the download of this file. Goto the site and manually download the file. Then I think I provided a function to manually import it. Check the Mactrack directory for something like "mactrack_import_ouidb.php" or something like that.

TheWitness


Got the file imported.

Been having a good play with this new version on our test setup and I have to say it's looking really good. Just one point, it seems that when the ARP process / DNS resolver manages to get an IP address and/or DNS name I seem to loose the info from the MAC Vendor column. When it doesn't get an IP address the Vendor remains listed... This seems to be consistent across the 70 or so Layer 2 switches I've added so far.

I'm hoping to do some more testing on one of our larger sites tomorrow which consists of approx 5000 user ports!!!!
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 13161
Location: MI, USA

PostPosted: Thu Mar 08, 2007 8:28 am    Post subject: Reply with quote

Yea, at my last employer with a Quad 3.06GHz Win2003 box and a custom php_snmp.dll file (bulkwalk), I was doing well over 150k ports in 28 minutes.

TheWitness
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 13161
Location: MI, USA

PostPosted: Thu Mar 08, 2007 8:29 am    Post subject: Reply with quote

Oh, post the problemtic output. Thanks,

TheWitness
Back to top
chadd
Cacti User


Joined: 24 Mar 2005
Posts: 220
Location: Ocoee, Florida

PostPosted: Mon Apr 09, 2007 9:18 am    Post subject: Reply with quote

msw1970 wrote:
Hi

I've written a script file for Foundry FastIron devices that get's the MAC Addresses, Port Names, VLAN ID's and VLAN Names. This all works great.

However, we operate a separate management VLAN for all of our switches and as such, the arp table on the switches only contains details of the gateway and not the IP's of all of the hosts connected. Is there anyway of getting this info and the DNS name of the connected hosts??

Thanks

PS - Attached the script. Place in mactrack/lib folder


Could you please provide all of the settings for the device type that you use with this script? I am not able to get any results using it. I mean, like base oid, device type, and such. Thanks in advance - I am having no luck with my foundry devices at all.
Back to top
msw1970
Cacti User


Joined: 09 Jan 2007
Posts: 186
Location: London, UK

PostPosted: Tue Apr 10, 2007 5:00 am    Post subject: Reply with quote

chadd wrote:
msw1970 wrote:
Hi

I've written a script file for Foundry FastIron devices that get's the MAC Addresses, Port Names, VLAN ID's and VLAN Names. This all works great.

However, we operate a separate management VLAN for all of our switches and as such, the arp table on the switches only contains details of the gateway and not the IP's of all of the hosts connected. Is there anyway of getting this info and the DNS name of the connected hosts??

Thanks

PS - Attached the script. Place in mactrack/lib folder


Could you please provide all of the settings for the device type that you use with this script? I am not able to get any results using it. I mean, like base oid, device type, and such. Thanks in advance - I am having no luck with my foundry devices at all.


Hi

Ok, for a layer 2 fastiron device I used the following....

Description - Foundry FastIron Layer 2
Vendor - Foundry Networks
Device Type - Switch/Hub
System Description Match - Backbone
Vendor SNMP Object ID Match - .1.3.6.1.4.1.1991
MAC Address Scanning Function - get_foundry_switch_ports
IP Address Scanning Function - Not Applicable - Hub/Switch
Serial Number Base OID - .1.3.6.1.2.1.1.3.0
Serial Number Collection Method - SNMP Get
Low User Port Number - 0
High User Port Number - 0

Change System Description Match to FES for a FES and FESX for a FESX!!!

For a Layer 3 device.....

Description - Foundry FastIron Layer 3
Vendor - Foundry Networks
Device Type - Switch/Router
System Description Match - Router
Vendor SNMP Object ID Match - .1.3.6.1.4.1.1991
MAC Address Scanning Function - get_foundry_switch_ports
IP Address Scanning Function - get_standard_arp_table
Serial Number Base OID - .1.3.6.1.2.1.1.3.0
Serial Number Collection Method - SNMP Get
Low User Port Number - 0
High User Port Number - 0

Don't forget to exclude the uplink interfaces when creating your devices or youll report the same MAC Addresses on multiple interfaces.
Back to top
randco



Joined: 04 Nov 2007
Posts: 1

PostPosted: Wed Nov 07, 2007 3:29 am    Post subject: Reply with quote

Hi,

Just to let you know that Mactrack (SVN version) is ok with Foundry BigIron and fastIron (we've just tested it with one of our customer) : thanks for this great Work !!

However I had to modify the script "mactrack_foundry.php" in order to get the low port/high port fonctionnality working. This is really basic but it adds much of the utility of the script :

L107 :
Code:
if (($highPort == 0) || (($ifIndex >= $lowPort) && ($ifIndex <= $highPort)) ) {


L132 :
Code:
}


Hope this will be included in futures releases...

Dev team of http://www.randco.fr



screenshot2-a.JPG
 Description:
 Filesize:  91.13 KB
 Viewed:  5667 Time(s)

screenshot2-a.JPG



screenshot-a.JPG
 Description:
 Filesize:  38.88 KB
 Viewed:  5667 Time(s)

screenshot-a.JPG



mactrack_foundry-patched.php.txt
 Description:
Rename it to mactrack_foundry.php

Download
 Filename:  mactrack_foundry-patched.php.txt
 Filesize:  6.5 KB
 Downloaded:  265 Time(s)

Back to top
psumike



Joined: 12 Sep 2006
Posts: 3

PostPosted: Mon Sep 22, 2008 8:38 am    Post subject: Reply with quote

Tybio wrote:
msw1970 wrote:

One point to note, certainly with Foundry POE switches a port can be configured as "dual-mode" to allow it to be in 2 VLANS. We have this so that an IP Phone plugs into the switchport and the PC then plugs into a port on the phone and the switchport sit's in both the Voice & Data VLAN's.


I would hope not vlan 4095.

From what I've found, vlan 4095 is defined for local switch control use.


I would also like to filter VLAN 4094, this is the single spanning tree vlan and shows like 4095. How did you remove 4095 so I can apply the same logic to 4094.

Thanks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track) All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group