RE: How to differentiate snmpwalk & snmpgetnext request ??
"Pamidipati Suresh-G20238" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
As far as I know, we can not distinguish whether the snmpgetnext request received is from snmpwalk executable or snmpgetnext itself. Regarding the example you mentioned, why do you want to gather all the instances of the table in the 1st getnext itself when snmpwalk is given.? Ideally the agent/application owning the table should give the current OID objects/instances available. So, when the agent/application receives the getnext request, irrespective of whether it is part of snmpwalk, the application should return the next OID instance that is currently exists. Regards, Suresh. -----Original Message----- From: valantina arumugam [mailto:[email protected]] Sent: Thursday, May 08, 2008 12:27 PM To: Pamidipati Suresh-G20238; [email protected] Subject: RE: How to differentiate snmpwalk & snmpgetnext request ?? Thanks. I do know the way how snmpwalk works. Let me explain my requir. in detail. For snmpgetnext request i have to do some operation for xx OID. For snmpwalk request , i have to do the same operation plus some other functionality for xx OID. Eg : snmpwalk of xx table : we gather all the instance of xx table data for the 1st getnext req. itself. while walk is going on , there is a chance an instance may get deleted/added thro' other appln( other than snmp) .which will result in displaying of ambiguous data. In this case how to diff. walk & getnext. Thanks valantina Pamidipati Suresh-G20238 <[email protected]> wrote: Hi Valantina, Snmpwalk is nothing but a series of snmpgetnext requests. For the given OID, snmpwalk first sends an snmpgetnext request. After receiving the response for the getnext, it retrieves the OID from the response and then sends snmpgetnext request on this OID. This way snmpgetnext requests are sent until all OIDs/variables in the subtree (and their values) below the given OID are retrieved. Please see the man page of snmpwalk. Regards, Suresh. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of valantina arumugam Sent: Thursday, May 08, 2008 11:06 AM To: [email protected] Subject: How to differentiate snmpwalk & snmpgetnext request ?? Hi all, Is there a way to differentiate the request from snmpwalk & snmpgetnext ? Like a flag in request structure which diff. walk & getnext.. I have surfed the net-snmp , but i couldn't find out a way. Thanks Valantina _____ Did you know? You can CHAT without downloading messenger. Click <http://in.rd.yahoo.com/tagline_webmessenger_2/*http://in.messenger.yaho o.com/webmessengerpromo.php> here ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _____ From Chandigarh to Chennai - find friends all over India. Click <http://in.rd.yahoo.com/tagline_groups_10/*http://in.promos.yahoo.com/gr oups/citygroups/> here. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ 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