Click to open or copy the files for the SnmpUtil sample.
This file is an example of how to code management applications using the SNMP Management API for Windows® NT. It is similar in operation to the other commonly available SNMP command line utilities.
Extensive comments have been included to describe its structure and operation. See also "Microsoft Windows/NT SNMP Programmer's Reference".
The SnmpUtil sample demonstrates how to use the SNMP API to build SNMP manager applications on Windows NT. This is a command-line utility that lets you retrieve information from any SNMP agent in your network.
This sample uses the following keywords:
getlasterror; printf; resetevent; snmp_free; snmp_malloc; snmp_realloc; snmpmgrclose; snmpmgrgettrap; snmpmgroidtostr; snmpmgropen; snmpmgrrequest; snmpmgrstrtooid; snmpmgrtraplisten; snmputiloidcpy; snmputiloidfree; snmputiloidncmp; snmputilprintasnany; snmputilvarbindfree; snmputilvarbindlistfree; strcmp; strcpy; waitforsingleobject