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    


no mactrack results with port-security

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
Perry



Joined: 02 Feb 2006
Posts: 3

PostPosted: Tue Nov 27, 2007 11:20 am    Post subject: no mactrack results with port-security Reply with quote

I have enabled port-security on our cisco Switches.
On the Ports i enabled this feature I get now results with mactrack.
When I disable Port-security everything works fine.
Any Ideas?
I use mactrac Version 1.1
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Tue Nov 27, 2007 12:02 pm    Post subject: Re: no mactrack results with port-security Reply with quote

Perry wrote:
I have enabled port-security on our cisco Switches.
On the Ports i enabled this feature I get now results with mactrack.
When I disable Port-security everything works fine.
Any Ideas?
I use mactrac Version 1.1


Did you add the MAC address of your Cacti box to the port that it cannot get the results from?
Back to top
Perry



Joined: 02 Feb 2006
Posts: 3

PostPosted: Wed Nov 28, 2007 3:58 am    Post subject: Re: no mactrack results with port-security Reply with quote

[quote="streaker69"]
Did you add the MAC address of your Cacti box to the port that it cannot get the results from?[/quote]

The Server with mactrack is installed on a Port without Port-security.

The Problem is that I cannot get the Devices on A Switch which are pluged in in a Port with Port security. When I disable Port-Security everything works fine.
I don't understand where the problem is for the mactrack.
Which oids use the mactrack to get the informations from the Switch?
Back to top
Perry



Joined: 02 Feb 2006
Posts: 3

PostPosted: Thu Nov 29, 2007 3:39 am    Post subject: Reply with quote


The ports on the switch are shown as down for mactrack with portsecurity,
When I disable the portsecurity th port is shown as up.
Some Ideas?
Back to top
Feldmann



Joined: 26 Sep 2007
Posts: 10

PostPosted: Thu Jan 10, 2008 4:39 pm    Post subject: Re: Port Security = no info. Reply with quote

Did you get anywhere with this? I am just in the beginnings of installing mactrack, but I see the same thing you do with port security ports. I have PS turned on throughout the enterprise, so if I cant figure it out, mactrack will not work for me. I have a feeling that the scanner has to be customized to go after a different oid set. I can look at it over the next week or so, but didn't want to redo work if you figured something out.

Thanks.
Back to top
StfC



Joined: 18 Oct 2008
Posts: 2

PostPosted: Sat Oct 18, 2008 4:37 pm    Post subject: Reply with quote

Hi,

We have the same problem. When I remove port-security MACTrack works. With port-security 'User ports up' and 'Active Macs' are 0.
I configured my Cisco 3750 to use 'get_IOS_dot1dTpFdbEntry_ports' as Switch/Router.
When I manually walk OID .1.3.6.1.2.1.3.1.1.2, I get all the MAC's, and when I walk OID .1.3.6.1.2.1.2.2.1.8 I get the Up/Down Status of each interface. There is no difference between an interface with or without port-security.

In the debug mode, I get for the right vlan the client of which I turned off port-security: DEBUG: INDEX: '0' MAC ADDRESS: 00:**:**:**:**:**
The clients in the same or other vlan connected to a port with port-security are not listed.

Is there any solution for this? Or where do I have to look in the code to debug this? I already tried, but I can't find the right place where it goes wrong.

Thanks,
Stef
Back to top
homeratspringfield



Joined: 19 Oct 2008
Posts: 1

PostPosted: Sun Oct 19, 2008 4:19 pm    Post subject: Reply with quote

I ran into the same issue and after debugging through the code, found where it fails.
With port-security enabled, cam table records entries as static instead of dynamic. This gets filtered out by default in get_base_dot1dTpFdbEntry_ports function.
To fix it, change line 665 in lib/mactrack_functions.php from:
if (@$port_status[$key] == "3") {
to:
if (@$port_status[$key] == "3"||@$port_status[$key] == "5") {

Enjoy.
Back to top
StfC



Joined: 18 Oct 2008
Posts: 2

PostPosted: Tue Oct 21, 2008 1:03 am    Post subject: port-security Reply with quote

Thanks! It works.

Grz,
Stef
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
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group