[mrtg] cfgmaker truncating ifdescr descriptions at 64 characters?
John Kemp
kemp at network-services.uoregon.edu
Wed Feb 2 20:12:11 MET 2000
So I used snmp query to verify this, to see what I get for ifdescr,
and it appears in all Title and PageTop sections of the ".cfg" produced,
cfgmaker (mrtg 2.8.11) has truncated these lines to 64 characters in length.
Anyone else seen this?
Since our ifdescr descriptions are typically longer, I
want cfgmaker to blast out the whole description.
For example, here's an ifdescr for one interface:
secret-gw - eth4/2 - 255.255.55.0/23 - 255.255.55.0/23 - Multibuilding (Bowerman, Esslinger, Mac Court, Upward Bound, ...)"
( I used snmpwalk -v 1 secret-gw public .1.3.6.1.4.1.9.2.2.1.1.28 )
In the config and obviously later in all the web pages,
that ends up as this:
<TITLE>secret-gw - eth4/2 - 255.255.55.0/23 - 255.255.55.0/23 - Multibu</TITLE>
It looks like 64 characters truncation. Looking at the script, cfgmaker,
I would guess something in this area???:
237 my(%sifdesc,%siftype,%sifspeed,%sifadminstatus,%sifoperstatus,%sciscod
237 escr);
238
239 ### May need the cisco IOS version number so we know which oid to use
240 ### to get the cisco description.
241 ###
242 ### - mjd 2/5/98 (Mike Diehn) (mdiehn at mindspring.net)
243 ###
244 my ($cisco_ver, $cisco_descr_oid, @ciscodescr);
245 if ( $ciscobox ) {
246 ($cisco_ver) = ($sysDescr =~ m/Version\s+([\d\.]+)\(\d/o);
247 $cisco_descr_oid = ($cisco_ver ge "11.2") ? "ifAlias" : "CiscolocIfD
247 escr";
248 }
249
250 $session->map_table ([[1,3,6,1,2,1,2,2,1,1], # ifIndex
251 [1,3,6,1,2,1,2,2,1,2], # ifDescr
252 [1,3,6,1,2,1,2,2,1,3], # ifType
253 [1,3,6,1,2,1,2,2,1,5], # ifSpeed
254 [1,3,6,1,2,1,2,2,1,7], # ifAdminStatus
255 [1,3,6,1,2,1,2,2,1,8]], # ifOperStatus
256 sub ($@) {
257 my ($rowindex,$index,$ifdescr,$iftype,$ifspeed,$ifadminstatus,$ifope
257 rstatus) = @_;
258 grep (defined $_ && ($_=pretty_print $_),
259 ($index,$ifdescr,$iftype,$ifspeed,$ifadminstatus,$ifoperstatus
259 ));
260 $sifdesc{$index} = $ifdescr;
261 $siftype{$index} = $iftype;
262 $sifspeed{$index} = $ifspeed;
263 $sifadminstatus{$index} = $ifadminstatus;
264 $sifoperstatus{$index} = $ifoperstatus;
???
Thanks in advance if anyone can spot the location of the limit.
John Kemp (kemp at ns.uoregon.edu)
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg
mailing list