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.");
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