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    


hp procurve & nortel

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



Joined: 06 Mar 2007
Posts: 7

PostPosted: Wed Jan 23, 2008 8:14 pm    Post subject: hp procurve & nortel Reply with quote

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:


<?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 !



track.PNG
 Description:
 Filesize:  59.15 KB
 Viewed:  2333 Time(s)

track.PNG



hp+norbay_ng.tar
 Description:

Download
 Filename:  hp+norbay_ng.tar
 Filesize:  12 KB
 Downloaded:  199 Time(s)

Back to top
tommyj



Joined: 23 Jun 2005
Posts: 32
Location: Stockholm, Sweden

PostPosted: Sat Feb 02, 2008 7:37 pm    Post subject: Reply with quote

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:

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
Back to top
floaty



Joined: 06 Mar 2007
Posts: 7

PostPosted: Fri Feb 22, 2008 7:24 am    Post subject: Reply with quote


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.
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