You don't snmpwalk in that case, just MIB-for-MIB.
My suggestion would be to put all the router names in a file, read the file line by line, and use that in a snmpget command. I assume you are reading just one or two MIBs from any router, and that they all are equal. If they are not equal, put the MIB in the file containing router addresses as well.
This can be done in Perl if you happen to speak that, but as easy in Bash. If you have to query multiple MIBs in one router, do that in one call to smnpget as creating the snmpget command is expensive in terms of processor time.
The slower execution of Bash (as compared to Perl?) is negligable related to the execution of the snmpget command.
jlinkels
|