[mrtg] CicolocIfDescr test in cfgmaker v2.9.17

Daniel R. Ehrlich ehrlich at ceinetworks.com
Tue Jul 31 20:03:32 MEST 2001


Finally figured out (I think) why cfgmaker was refusing to use CiscolocIfDescr when specifying --descint and/or
--ifdescr=alias.  The attached patch seems to fix things.

Enjoy.

-- Dan Ehrlich


===================================================================
RCS file: RCS/cfgmaker,v
retrieving revision 1.1
diff -c -r1.1 cfgmaker
*** cfgmaker    2001/07/24 17:29:23     1.1
--- cfgmaker    2001/07/31 17:57:43
***************
*** 93,99 ****
                        ifAdminStatus ifOperStatus);
      if ($routers->{$router}{deviceinfo}{Vendor} eq 'cisco' &&
        $routers->{$router}{deviceinfo}{sysDescr} =~ m/Version\s+(\d\d\.\d+)/) {
!       push @Variables,  ($1 > 11.0) ? "ifAlias" : "CiscolocIfDescr";
      }
  
      my $descr = $routers->{$router}{deviceinfo}{sysDescr};
--- 93,99 ----
                        ifAdminStatus ifOperStatus);
      if ($routers->{$router}{deviceinfo}{Vendor} eq 'cisco' &&
        $routers->{$router}{deviceinfo}{sysDescr} =~ m/Version\s+(\d\d\.\d+)/) {
!       push @Variables,  ($1 < 11.0) ? "ifAlias" : "CiscolocIfDescr";
      }
  
      my $descr = $routers->{$router}{deviceinfo}{sysDescr};


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list