3

I need to write a VERY basic SNMP Agent in C#, which is able to send traps (V1 or V2) and respond to get (set is not required). After long searches, the only suitable solution seems to be SharpSnmp. However, #SNMP's sample agent doesn't work properly and - the bigger issue - it doesn't reply to GET requests.

Is there another possiblity/solution for doings this?

lenniep
  • 679
  • 4
  • 11
  • 27

1 Answers1

2

Do you try with snmpsharpnet which is very helpful to play with SNMP on the top of .NET ?

JPBlanc
  • 70,406
  • 17
  • 130
  • 175
  • 1
    thanks JP, this looks quite interesting. were you able to handle get requests? currently, I can send them but I need to respond to incoming requests. – lenniep Aug 24 '11 at 12:48
  • Yes, I was able to do it, just have a look [here](http://stackoverflow.com/questions/2948830/how-to-measure-a-website-bandwidth-uploaddownload-in-mb-using-c-vb-net-progra/5344425#5344425) – JPBlanc Aug 24 '11 at 15:13
  • thanks, this looks promising. however, I do not completely understand your code. Aren't you _sending_ get requests? Sorry if I'm completely wrong. – lenniep Aug 25 '11 at 06:20
  • 2
    @JPBlanc, I think mikeh wants an agent which can respond to SNMP requests. As far as I know snmpsharpnet does not yet have such a feature. – Lex Li Aug 25 '11 at 13:01
  • @LexLi you're right. I'm currently looking with Milan from snmpsharpnet for a solution. If I can figure anything out, I'll let you know. – lenniep Aug 25 '11 at 18:43