Hello monks,
I am trying to do a snmpwalk for interface descriptions on a cisco device using SNMP module, it looks there is no walk procedure available, I am trying the following and it walks through the whole MIBs instead of the branch just for interfaces.
Below is the script:
appreciate help, thanks!
use SNMP;
$sess = new SNMP::Session(DestHost => cisco_router, Community => publ
+ic);
$vb = new SNMP::Varbind([.1.3.6.1.2.1.2.2.1.2]);
do {
$val = $sess->getnext($vb);
print "@{$vb}\n";
} until ($sess->{ErrorNum});