Thank you sir for the great details. Regards, Dave
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Tuesday, August 07, 2012 4:32 PM To: Dave Hsu Cc: [email protected] Subject: Re: varbindlist size On 7 August 2012 09:07, Dave Hsu <[email protected]> wrote: > I am using version 2c. > > Will using version 3 help? I have no idea. Try it. > Another related question: Does get_bulk request require only the parent oid > and then it would traverse through all child oids(plus indexes) OR can we > mix different kinds of OIDS (some for HCInOctets, some for HCOutOctets, some > for discards etc.)? It's best not to think of low level SNMP in terms of "parent" and "child" OIDs. I know that "snmpwalk" works that way, but the basic SNMP protocol is purely concerned with "lexical next" OIDs, with no concept of heirarchy. The GetNext request allows you to retrieve the "next" instance following the list of supplied OIDs - returning one value for each. The supplied list can be a mixture of table, table column objects, instances within a table, scalar objects (or instances), or anything else. GetNext doesn't care. The agent just takes each one, identifies the next valid instance (which may be in a completely different area of the MIB tree), and returns that value. GetBulk is much the same, but instead of returning one value for each supplied OID, it returns multiple values - striped across the original list. (It's difficult to describe - best to experiment for yourself using "snmpbulkget") The important thing here is that the client can send a relatively small request, and the agent will return as many varbinds as it can handle (within the parameters supplied by the client). But you will need to be prepared to handle two things: - the agent returning less information than you ideally want (due to hitting the maximum size) - the agent returning varbinds that you don't actually need (due to running off the end of a table) Dave ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
