The information in this article applies to:
SYMPTOMSWhen using the SNMP Manager API SnmpMgrStrToOid() and passing it a valid Oid, the application is unable to get the requested variables. CAUSEThe SNMP Manager API SnmpMgrStrToOid assumes that the Oid that is supplied to it is under the internet MIB of the mgmt subtree (1.3.6.1.2.1.x). RESOLUTIONTo get variables that are not under the mgmt subtree, the Oid must be preceeded by a period (.). For example, say an application is trying to get the system group and the Oid passed to SnmpMgrStrToOid is this:
Then the application will try to get the following, which does not exist:
The correct way to get the system group is to pass this:
STATUSThis behavior is by design. REFERENCESMicrosoft Windows/NT SNMP Programmer's Reference (PROGREF.RTF). Additional query words:
Keywords : kbnetwork kbAPI kbNTOS310 kbNTOS350 kbSDKPlatform kbSNMP kbGrpNet |
Last Reviewed: January 6, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |