[FC] hp procurve & nortel

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
User avatar
floaty
Posts: 21
Joined: Tue Mar 06, 2007 10:27 am

[FC] hp procurve & nortel

Post by floaty »

hello,

i have updated the "mactrack_hp_ng.php" script
(now portnames [ifAlias] are displayed instead of the portnumber in the name field )
and i made a snmp-adapted version for nortel-switches from it.

there is no recognizing of vlan-trunks and uplinks ... you have to exclude unwanted ports in your device/device-type settings to avoid duplicates

tested with Version 0.8.6j / mactrack-0.0.1b

should work for all procurve-switches from 26XX and for nortel ers (former passport8X00 not tested ! - please post when you did it) and baystacks with an actual firmware (tested: bs420 -> SW:v3.1.1.01; ers5520 -> SW:v5.0.7.017)

###### how? #######

copy scripts in: <path>/plugins/mactrack/lib

and register in: <path>/plugins/mactrack/lib/mactrack_vendors.php

Code: Select all


<?php
/*
 +-------------------------------------------------------------------------+
 | Copyright (C) 2005 Larry Adams                                          |
 |                                                                         |
 | This program is free software; you can redistribute it and/or           |
 | modify it under the terms of the GNU General Public License             |
 | as published by the Free Software Foundation; either version 2          |
 | of the License, or (at your option) any later version.                  |
 |                                                                         |
 | This program is distributed in the hope that it will be useful,         |
 | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
 | GNU General Public License for more details.                            |
 +-------------------------------------------------------------------------+
*/

include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_cabletron.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_cisco.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_norbay.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_hp.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_hp_ng.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_norbay_ng.php");

?>

then setup in mactrack -> device and -> device-types

if you see uglies and rubbish ... clean it ... and post it !
Attachments
hp+norbay_ng.tar
(12 KiB) Downloaded 627 times
track.PNG
track.PNG (59.15 KiB) Viewed 8365 times
tommyj
Posts: 43
Joined: Thu Jun 23, 2005 5:16 pm
Location: Stockholm, Sweden

Post by tommyj »

Thank you for this, works fine for me on Procurve 2524, 2510, 2626 and 2824 switches.

FYI I get an error when I run the poller manually on row 85:

Code: Select all

PHP Notice:  Undefined index:  ifAlias in /var/www/html/plugins/mactrack/lib/mactrack_hp_ng.php on line 85
But as the output seems to be correct I'm not sure if it is something that needs to be digged into
User avatar
floaty
Posts: 21
Joined: Tue Mar 06, 2007 10:27 am

Post by floaty »

:o
thats right, i inserted bullshit there. unfortunatly i can't remember why i have inserted this (it seems i have forget to delete it)

... and a test after I've commented out this line: everything still works ...
the same line in the norbay_ng-script should also be useless.

The problem is: my php-skills are reduced to carefully-try&error-altering-of-given-code.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

floaty,

I have incorporated your revised/new scripts in the 2.0 development. Can you please provide a CVS export of your device type table?

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?
wantmoore
Posts: 2
Joined: Thu May 07, 2009 3:57 pm

Logical port name

Post by wantmoore »

First of all - thanks for the procurve_ng script... Works GREAT!

One thing though... Is it possible to return ifName from a ProCurve in the Port Number field? On a modular switch (like our 4208 and 5406's, "Port 35" isn't nearly as helpful as "Port B9"

Here's the info I'm after:

Code: Select all

snmpwalk -v 2c -c public_snmp 10.10.1.2 1.3.6.1.2.1.31.1.1.1.1
IF-MIB::ifName.1 = STRING: A1
IF-MIB::ifName.2 = STRING: A2
IF-MIB::ifName.3 = STRING: A3
If it's not possible to get this info in the Port Number field, can we prepend it somehow on the front of the Port Name field?
wantmoore
Posts: 2
Joined: Thu May 07, 2009 3:57 pm

Re: Logical port name

Post by wantmoore »

Anyone that can help with this?
wantmoore wrote:First of all - thanks for the procurve_ng script... Works GREAT!

One thing though... Is it possible to return ifName from a ProCurve in the Port Number field? On a modular switch (like our 4208 and 5406's, "Port 35" isn't nearly as helpful as "Port B9"

Here's the info I'm after:

Code: Select all

snmpwalk -v 2c -c public_snmp 10.10.1.2 1.3.6.1.2.1.31.1.1.1.1
IF-MIB::ifName.1 = STRING: A1
IF-MIB::ifName.2 = STRING: A2
IF-MIB::ifName.3 = STRING: A3
If it's not possible to get this info in the Port Number field, can we prepend it somehow on the front of the Port Name field?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I suggest you edit the file and modify the function to do this. There is reference code on how to do this in the cisco functions. When done, upload your revised copy and then PM me. I will make sure it goes into the 2.0 code base.

Right now I am focusing on Cacti 0.8.8. MacTrack development will pick up again after that. There is only 1 of me.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests