[rtg] Anyone modified rtgtargmkr.pl
Clay Fiske
clay at bloomcounty.org
Wed Mar 24 11:39:44 EDT 2010
On Mar 24, 2010, at 7:25 AM, Drew Weaver wrote:
> to properly scan for 10Gbps interfaces, and another question does anyone else not get any data from the 'Control Plane Interface' on Cisco 6500s?
We put in a quick little hack for 10G interfaces:
if (($ifspeed ne "") && ($ifspeed == 4294967295)) {
print "Bogus speed on $ifdescr: $ifspeed\n" if ($DEBUG);
if (($ifdescr =~ /TenGig/) ||
($ifdescr =~ /10Gig/)) {
print "Correcting speed to 10Gbps\n" if ($DEBUG);
$ifspeed = 10000000000;
}
}
I suppose the truly correct way would be to first check if the device's SNMP engine supports ifHighSpeed and use that if available.
-c
More information about the RTG
mailing list