[mrtg-developers] 3com patch

-ray ray at ops.selu.edu
Fri Jun 16 21:03:55 MEST 2006


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:mrtg-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-developers-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/mrtg-developers



More information about the mrtg-developers mailing list