Microsoft KB Archive/202183

= BUG: The OID for memPercentCommittedBytesInUse Always Returns Zero =

Article ID: 202183

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows NT Server 4.0 Standard Edition

-



This article was previously published under Q202183



SYMPTOMS
The object ID (OID) for the memPercentCommittedBytesInUse memory counter does not return the correct value when you issue a Simple Network Management Protocol (SNMP) GET or WALK command. This value is the ratio of the Committed Bytes to the Commit Limit values.



STATUS
Microsoft has confirmed that this is a problem in Microsoft Windows NT Server 4.0.



MORE INFORMATION
You can create Performance Monitor objects using the Perfmib tools in the Microsoft Windows NT 4.0 Resource Kit. Use the following steps to create a Management Information Base (MIB), which exposes the Performance Monitor memory objects:  At a command prompt, run the Perfmib.reg tool from the Windows NT 4.0 Resource Kit. This creates the appropriate registry entries for the Perfmib.dll extension agent. Build a Perfmib.mib file and a Perfmib.ini file using the Per2mib.exe tool from the Windows NT 4.0 Resource Kit. For example, at a command prompt, type the following command:

perf2mib perfmib.mib perfmib.ini memory 200 mem

This creates a Perfmib.mib file and a Perfmib.ini file. These files are used to expose the Performance Monitor memory object. At a command prompt, stop the SNMP service by typing net stop snmp. (You can also stop the SNMP service using the Services tool in Control Panel.) Find the Mib.bin file in the System32 folder and rename it to Mib.old. Use the following steps to compile a new Mib.bin file (that includes the Perfmib.mib file created in step 2):  At a command prompt, set the default folder to the Windows NT 4.0 Resource Kit folder (for example, type cd, where   is the Windows NT 4.0 Resource Kit folder).</li> Type the following command: mibcc -n o \mib.bin -t -w2 smi.mib lmmib2.mib mib_ii.mib perfmib.mib </li></ol> </li> Copy the following files from the Windows NT 4.0 Resource Kit folder to the System32 folder (%SystemRoot%\System32): <ul> Mib.bin</li> Perfmib.bin</li> Perfmib.ini</li> Perfmib.dll</li></ul> </li> At a command prompt, start the SNMP service by typing net start snmp. (You can also start the SNMP service using the Services tool in Control Panel.)</li> After you create the new MIB that contains the Performance Monitor memory objects, you can test it using the Snmputil.exe tool found in the Windows NT 4.0 Resource Kit. To test the MIB: <ol style="list-style-type: lower-alpha;"> At a command prompt, type cd. This changes the default folder to the resource kit folder.</li> Use the Snmputil tool to walk the process OID tree. Type the following command:

snmputil walk localhost public .1.3.6.1.4.1.311.1.1.3.1.1.200.27.0

Using this command always returns a value of 0 for the memPercentCommitBytesInUse memory counter, regardless of the values for Committed Bytes and Commit Limit. It should return the ratio of the Committed Bytes to the Commit Limit values.</li></ol> </li></ol>

<div class="references_section">