On 27.10.2012 20:05, Magnus Fromreide wrote: > > Is there any documentation on how to actually use SNMP_MSG_GETBULK? > The algorithm is described in RFC 1905 4.2.3. > > A GetBulk is equivalent to a GetNext with the (non-repeaters) first > arguments to the GetBulk followed by (max-repetitions) GetNext's with > the remaining arguments. > > I think an example is useful here: > > snmpgetbulk -Cn=1 -Cm=2 localhost sysUpTime sysORID sysORDescr > > on my machine generates the response > > sysUpTime.0 = .... > sysORID.1 = .... > sysORDescr.1 = ... > sysORID.2 = ... > sysORDescr.2 = ... I know the shell level requests (snmpbulkwalk), trying to get this done in C ...
> I would suggest that you play around a little with snmpbulkget to try > what GetBulk does and then you can decide if it does what you want to > do. > > Note that snmpbulkwalk does multiple requests, not just quite as many as > snmpwalk. > > How are the variables you wish to look at spread? > Is any of them a table? e.g. I'd want to get several values at the same time that are associated to an interface, e.g. bytes sent, received, errors > If none of them is a table then I think a Get or GetNext suits your use > case better, but remember that you can put many request OID's in them as > well. > Are there any examples of this around? Thanks, Garry ------------------------------------------------------------------------------ WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders