Related to the previous question, is SNMP_MSG_GET or SNMP_MSG_GETBULK (with non-repeaters set) preferred when requesting a couple OIDs scattered throughout the MIB tree?
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 other than bulk requests require version 2c or 3? Thank you for your time. Brendan On Mon, Aug 2, 2010 at 03:40, Dave Shield <[email protected]> wrote: > On 30 July 2010 15:21, shardul kumar <[email protected]> wrote: >> But the same thing [returning multiple values] can be achieved by filling >> oids in var_bind list of GETNEXT PDU. I can provide all the >> oids of a table in var_bind and get the entire data in one shot. > > Listing all the column OIDs within a GETNEXT request > will return the full information for the next row. > One request - one row. > If there are twenty rows in the table, it will take 20 > (actually 21) requests to retrieve the complete table. > > > Listing all the column OIDs within a GETBULK request > will return the full information for the next N rows > (where N is the value for max-repetitions) > One request - multiple rows. > The same table can probably be retrieved with just > one or two requests. > > > > Try running 'snmptable -d ....' on a table and compare the traffic > patterns with the results of 'snmptable -d -CB' > > 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 > ------------------------------------------------------------------------------ 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
