|
|
| Author |
Message |
floaty
Joined: 06 Mar 2007 Posts: 7
|
Posted: Wed Jan 23, 2008 8:14 pm Post subject: hp procurve & nortel |
|
|
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 !
| Description: |
|
| Filesize: |
59.15 KB |
| Viewed: |
2333 Time(s) |

|
| 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
|
Posted: Sat Feb 02, 2008 7:37 pm Post subject: |
|
|
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
|
Posted: Fri Feb 22, 2008 7:24 am Post subject: |
|
|
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 |
|
 |
|