3com patch
-ray <[email protected]> Fri, 16 Jun 2006 14:03:55 -0500 (CDT)
| Newsgroups | gmane.network.mrtg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello all,
The newer generation of 3com switches support the ifAlias description for
a port. I am not an MRTG developer, but please consider this very small
patch for the cfgmaker utility. Thanks.
--- src/mrtg-2.14.3/bin/cfgmaker 2006-06-16 12:43:55.851851616
-0500
+++ bin/cfgmaker 2006-06-16 13:24:10.563952948 -0500
@@ -165,7 +165,7 @@
$routers->{$router}{deviceinfo}{sysDescr} =~ m/Version\s+(\d\d\.\d+)/) {
push @Variables, ($1 > 11.0) ? "ifAlias" : "CiscolocIfDescr";
if ($1 > 11.2) {push @Variables, "vmVlan";};
- } elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|foundry|dellLan|force10|extremenetworks)/) {
+ } elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|foundry|dellLan|force10|3com|extremenetworks)/) {
push @Variables, "ifAlias";
}
-ray
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ray DeJean http://www.r-a-y.org
Systems Engineer Southeastern Louisiana University
IBM Certified Specialist AIX Administration, AIX Support
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
Unsubscribe mailto:[email protected]?subject=unsubscribe
Help mailto:[email protected]?subject=help
Archive http://lists.ee.ethz.ch/mrtg-developers