On an excellent suggestion from Lex Li I have packaged and uploaded a few source code examples to the SourceForge project page. I’ll get more examples included in time…
Included examples are:
- example-get.cs – source code from the web get example
- example-getbulk.cs – source from the web get-bulk example
- example-getnext.cs – source from the web get-next example
- getasync.cs – async SNMP example
- simpleget.cs – SimpleSnmp GET operation example
- simplegetbulk.cs – SimpleSnmp GET-Bulk operation example
- simplegetnext.cs – SimpleSnmp GET-Next operation example
- simplewalk.cs – SimpleSnmp Walk operation example
- snmpcmd.cs – all in one Get, Get-next, Get-bulk, Walk example utility
- snmpget.cs – full implementation of SNMP Get utility (version 1 and 2c)
- snmpgetbulk.cs – full implementation of SNMP GetBulk utility (version 2c)
- snmpwalk.cs – full implementation of SNMP Walk utility (version 1 using GetNext, 2c using GetBulk)
Package includes a release binary of SnmpSharpNet.dll and Makefile used to compile examples.
To compile, open CMD Shell from Microsoft Windows SDK, change directory to where you unpacked examples and run nmake.