[ First - *please* don't mail me privately, without copying
    any responses to the mailing list.  I don't have the time
    or inclination to offer private, unpaid, SNMP consultancy.
    Keep discussions to the list, where others can both learn
    and offer advice.  Thanks.   ]

On 10 April 2012 17:27, Jasti Durgashree <shreemo...@gmail.com> wrote:
> Thank you guru & dave......i have one more doubt, i have modified snmpget.c
> from apps in net-snmp-5.6.2.pre1 to access object from mib.....

What modifications did you make?
It shouldn't be necessary to change the code of snmpget.c
It's designed to allow you to make general GET requests from an
arbitrary agent - you should be able to use it "as is".


> when i run this code it is giving the response but no snmp packets are
> capturing in wireshark....

Sorry - I don't understand this.
If you are seeing the response to your query, then the packets
must be being transported successfully.   I've no idea why wireshark
is not reporting them.
   (Unless you are querying 'localhost', of course - in which case
the packets never actually get as far as the network interface).


> when i give session.peername=strdup(test.net-snmp.org) means i can see snmp
> packets in wireshark but only get-request, not giving any response.......

What are the exact commands you are using to query the test agent?

> but when i give peername as my ip means am not able to see any
> snmp packets in wireshark
> so how can i get the snmp packets in wireshark?

You haven't really given us sufficient information to answer.
What are the command(s) you are using to query the local agent,
and how are you running wireshark?  (i.e. what filters are you applying?)

Dave

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to