On 4 August 2010 17:33, Brendan Tauras <[email protected]> wrote: > is SNMP_MSG_GET or SNMP_MSG_GETBULK > (with non-repeaters set) preferred when requesting a couple OIDs > scattered throughout the MIB tree?
It depends on whether you are retrieving object with known indexes, or require fuzzy matching (and whether you want one value for each specified OID, or multiple values). In general, GET is always going to be more efficient than GETNEXT (or GETBULK). But it depends on exactly what you want to do. > What is the difference between > > 1. SNMP_MSG_GET > # snmpget -d sysDescr sysContact > > and > > 2. SNMP_MSG_GETBULK > # snmpbulkget -C n2 -C r0 -d sysDescr sysContact The first one will inevitably fail! :-) The GETBULK request is the exact equivalent of $ snmpgetnext .... sysDescr sysContact The corresponding GET request would actually be $ snmpget .... sysDescr.0 sysContact.0 Dave ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
