Troubleshooting SNMP

This section discusses problems that you might encounter using SNMP and what to do to resolve them.

Timeout on WINS Server Queries

When querying a WINS server, it might be necessary to increase the SNMP timeout on the SNMP management system. If some WINS queries work, and others time out, increase the timeout.

Identifying SNMP Service Errors

Event Viewer is the first place you should look to identify a problem with the SNMP service. SNMP service errors and activity are recorded in the system log, depending upon the specified LOGLEVEL. If there is no SNMP information in the event log, you may need to change the LOGLEVEL. See the earlier section "Turning SNMP On and Off" for information about this parameter.

For more information about Event Viewer, see online Help or the Event Viewer chapter in the Windows NT System Guide manual of the Windows NT 3.5 documentation set.

To use Event Viewer

1. In Program Manager, open the Administrative Tools group.

2. Double-click the Event Viewer icon.

3. Click the message about which you want more information. In the View menu, select Detail and Event Viewer displays more information about the message.

Application is Unable to Get Requested Variables

The SNMP Manager API SnmpMgrStrToOid assumes that the Oid is under the Internet MIB in the mgmt subtree (1.3.6.1.2.1.x).

To get variables that are not under the mgmt subtree, the Oid must be preceded by a period (.). For example, if the application is trying to get the system group and passes an Oid of 1.3.6.1.2.1.1, the application will try to get

iso.org.dod.internet.mgmt.1.1.3.6.1.2.1.1

which does not exist. The correct way to get the system group is to pass .1.3.6.1.2.1.1 as the Oid parameter.

To walk the enterprises tree, specify .1.3.6.1.4.1 rather than 1.3.6.1.4.1.

SNMP Agent Breaks Up Variable Bindings List

When the SNMP agent receives a request for multiple variables in a single packet, the agent queries the required subagent (in this case the DLL acting as the agent) for each variable in the bindings list, packs the results in a response variable bindings list, and returns a single packet.

This table gives an example of variables requested and their respective MIBs.

Variable

MIB

ip.iplnReceives

Internet MIB II

tcp.tcpMaxConn

Internet MIB II

iso.org.dod.internet.private.enterprises.lanmanager.
lanmgr-2.common.comVersionMaj

LAN Manager
MIB II

icmp.icmpOutErrors

Internet MIB II


The agent queries INETMIB1.DLL twice, LMMIB2.DLL once, and INETMIB1.DLL once. It packs the result in a response packet and sends it to the requesting manager. There is no "snapshot" of the MIB.

No Counters Appear in Performance Monitor

You must install the SNMP service to see any of the TCP/IP, FTP, Internet Control Message Protocol (ICMP), or UDP performance counters in Performance Monitor. Installing SNMP installs the MIBs into which the performance information is accumulated, and starts SNMP.

SNMP is not installed by default when you install TCP/IP. See the earlier section "Installing and Configuring SNMP" for more information.

For more information about Performance Monitor and the counters, see Chapter 17, "Using Performance Monitor with TCP/IP Services," in the Windows NT Networking Guide.