SNMP Example PLEASE
I have looked everywhere for a simple SNMP example, and alas I have found none.
I would like to see how to use winsock to read / write to an oid. Any examples GREATLY appreciated.
Thank you
[202 byte] By [
BrianB] at [2007-11-18 23:17:43]

# 1 Re: SNMP Example PLEASE
There are already API's you can use to GET/SET to agents. Are you looking for sample usage of those?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/snmp/snmp/snmp_functions.asp
Mick at 2007-11-9 13:47:37 >

# 2 Re: SNMP Example PLEASE
Thank you for the reply. I am looking for an example of passing and oid, and retrieving the value, and also passing an oid and a value to set. I can't seem to find this anywhere
thanks
BrianB at 2007-11-9 13:48:38 >

# 4 Re: SNMP Example PLEASE
Try the snmputil sample and see if that is in area your looking for...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/vcsmpsnmputil.asp
I think you might have to download the whole sample file, but then just search for snmputil for the project.
If you have the latest SDK, and you installed the samples, then it should already be in the <SDK install dir>\samples\netds\snmp\snmputil
There is also the WSnmpUtil which shows get & set in the same <snmp> dir.
Mick at 2007-11-9 13:50:41 >
