<p>I need to write an SNMP agent for my application.</p>

<p>I read the <a href="http://www.codeproject.com/KB/IP/SNMP_Agent_DLL__Part1_.aspx" rel="noreferrer">CodeProject article</a> on how to write an SNMP extension agent DLL using win32, but would like to know if it is possible to do it with managed code.</p>

<p>Also, is it possible to write my own SNMP agent in managed code and run it along windows SNMP service?
windows SNMP service is required to run on my server to provide the basic operating system management info.</p>

<p>What C# SNMP library would you recommend? I found a few C# SNMP protocol implementations, but could not find sample code on how to implement an SNMP agent - most samples are only about querying other agents or sending traps.</p>

the best library I have used in 8
years of NMS development -
adventnet
you can write your own, but you need to understand
ASN
. Good luck with that.
SNMP agents do 2 things: query for data, send and receive traps. What else you want
them to do? wash your laundry?! (sorry couldn't resist that! :) ).
What are you trying to do with your SNMP agent?! Does you app need to send traps?! or query for data from a node?!