CodeProject: Use WINSNMP and VB.Net 2005 to retrieve SNMP information.
Make a get call via the WINSNMP API to retrieve the os version from a remote machine.
VBDNFW2SNMP is a quick attempt to use the winsnmp api to retrieve information from remote snmp agents. This example uses VB .Net 2005 with the .Net framework 2.0
Background
Most of the examples I found on the net used WMI instead of api calls, and the older VB6 code used winsock. After many, many hours of searching and putting pieces of info together, i could finaly make a get call to a remote snmp agent. The most valuable resources were:
Microsoft platform SDK for Windows 2003 server.
WinSNMP (VB6) at Http://www.winsnmp.com
check out the WinSNMP v2.0 Addendum at http://www.winsnmp.com/docs/winsnmp2.txt
Function Pointers and COM
By Ben Garcia (VB6 and C++) at http://www.15seconds.com/issue/021002.htm
Windows SNMP - An Open Interface for Programming Network Management Applications usint the Simple Network Management Protocol under Microsoft Windows - available via FTP from host SunSite.unc.edu under directory /pub/micro/pc-stuff/ms-windows/WinSNMP
SNMP example in C# from Evolution software at http://www.evolutionsoftwarellc.com/
No comments:
Post a Comment