I have been working
for years with Net::SNMP, not to be confused with use SNMP of UCD-SNMP
fame. As my bosses and colleagues reqest more information via my perl
scripts they get slower and slower. Wait for the response from one OID
from the CDP mib, grab the unique dots and grab the specific info. For example
1.3.6.1.4.1.9.9.23.1.2.1.1.4.x.x will be the OID for an address of a cdp
neighbor, grab the x.x and concatenate to 1.3.6.1.4.1.9.9.23.1.2.1.1.6 and get
the name as it appears in the cdp cache of the same device. Obviously all
the get and get_next requests move slowly, especially to overseas remote
sites. Therefore, I tried using Net::SNMP asynchronously with
callbacks. Is is it my imagination, or, because of the asynchronous nature
do I get things returned out of order? That is, if I have an array of ip
addresses that are placed into asynchronous calls, it seems that the script just
keeps executing the callback regardless. Therefore, if I perform a request
on a switch or router in Japan well before one on the east coast, it appears
that I am parsing the snmp session results of the east coast come back first so
I can't track what is where. Am I doing something wrong, or is this the
just the asynchronous nature of the beast.
Thanks,
Mitch
Mitch Raful, MCSE CCNP
Network Engineer
HQMC MCCS
3044 Catlin Avenue
Quantico, VA 22134
703-784-5991
"T'm Mitch Raful, and I approved this message."
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
