Issues with Juniper port scanner

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
csherry
Posts: 11
Joined: Fri Jan 08, 2010 4:09 pm

Issues with Juniper port scanner

Post by csherry »

When I run the mactrack_scanner from CLI using get_JEX_switch_ports:

INFO: HOST:BLAH, TYPE: Juniper Networks, Inc. ex4200-48t intern, TOTAL PORTS: 0, ACTIVE PORTS: 369

Problem is, this is a stack of two 48 port switches (Juniper EX4200). Nowhere near 369 ports. If I use the get_generic_switch_ports, it spits this out:

INFO: HOST: BLAH, TYPE: Juniper Networks, Inc. ex4200-48t intern, TOTAL PORTS: 102, OPER PORTS: 48

That's more inline with the number of ports on the switch.

Looking through the mactrack_juniper function (my PHP knowledge being very limited, think third grade reading level), this stood out:

Code: Select all

       foreach($ifIndexes as $ifIndex) {
                $ifInterfaces[$ifIndex]["trunkPortState"] = @$vlan_trunkstatus[$ifIndex];

                if (($ifInterfaces[$ifIndex]["ifType"] == "propVirtual(53)" ) or ($ifInterfaces[$ifIndex]["ifType"] == "ieee8023adLag(161)" )) {
                        $device["ports_total"]++;
                }

                if ($ifInterfaces[$ifIndex]["trunkPortState"] == 3) {
                        $device["ports_trunk"]++;
                }
        }
        mactrack_debug("ifInterfaces assembly complete.");
What I am seeing is that $vlan_trunkstatus doesn't get initialized anywhere like it is in the other functions (HP, Cisco, etc). This leaves "ports_trunk" without a value. Then ports_total is getting incremented with 53 and 161 ifTypes only. That means "ports_total" is just the number of trunks. Again, forgive my ignorance on the terminology... I call them as I see them...

I guess what I am looking for is a better understanding of how this is envisioned to work. Maybe ideas on how to make it fit my environment.

Thanks for all the hard work on this...

Chris
csherry
Posts: 11
Joined: Fri Jan 08, 2010 4:09 pm

Post by csherry »

Is anyone using MacTrack with Juniper EX switch?

Chris.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Is the author's e-mail address in the scanning function. If so, alert him to this post and hopefully, we can get a patch out of him/her.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
csherry
Posts: 11
Joined: Fri Jan 08, 2010 4:09 pm

Post by csherry »

Sadly there is no information from the author.

Chris.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Kind of sucks. Hmm. I wish there were more hours in the day.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
csherry
Posts: 11
Joined: Fri Jan 08, 2010 4:09 pm

Post by csherry »

I completely understand.... I am going to hit up one of our programmers and see if he can give me a couple hours. Maybe I can give something back....

Chris.
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Re: Issues with Juniper port scanner

Post by scruboy01 »

Anyone get this one fixed? We just got some Juniper switches and would like to extend the mactrack features to that portion of the network.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests