Microsoft KB Archive/202195

= SNMP OID for logical disk instance name returns wrong value =

Article ID: 202195

Article Last Modified on 10/9/2007

-

APPLIES TO


 * Microsoft Windows NT Server 4.0 Standard Edition

-



This article was previously published under Q202195



SYMPTOMS
The object ID, or OID, for the logical disk instance name does not return the correct value when issuing an SNMP get or walk command.



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



MORE INFORMATION
Performance Monitor objects can be created by using the PERFMIB utilities from the Windows NT 4.0 resource kit. Perform the following steps to create a Management Information Base (MIB), which exposes the performance monitor logical disk objects:  From an MS-DOS command prompt, run the Perfmib.reg utility from the Windows NT 4.0 resource kit. This creates the appropriate registry entries for the Perfmib.dll extension agent. Build a Perfmib.mib and a Perfmib.ini file using the Per2mib.exe utility from the Windows NT 4.0 resource kit. For example, from an MS-DOS command prompt, run the following command:

perf2mib perfmib.mib perfmib.ini LogicalDisk 250 disk

This creates a Perfmib.mib file and a Perfmib.ini file. These files are used to expose the Performance Monitor logical disk objects. From an MS-DOS command prompt, stop the SNMP service by performing one of the following:

 Run the following command:

net stop SNMP

or

 Click Start, point to Settings, click Control Panel, and then double-click Services. Select the SNMP service from the list and then click Stop. </li> Rename the mib file to Mib.old. This file is found in the System32 folder.</li> Compile a new Mib.bin file, which includes the Perfmib.mib file created earlier in step 2. To do this:  From an MS-DOS command prompt, set the default directory to the Windows NT resource kit folder. For example: CD %ntreskit% </li> Run the following command:

mibcc -n o%ntreskit%\mib.bin -t -w2 smi.mib lmmib2.mib mib_ii.mib perfmib.mib

</li></ol> </li> Copy the following files from the Windows NT resource kit folder (%ntreskit%) to the System32 folder (%SystemRoot%\System32): <ul> Mib.bin</li> Perfmib.bin</li> Perfmib.ini</li> Perfmib.dll</li></ul> </li> From an MS-DOS command prompt, start the SNMP service. To do this, perform one of the following:  Run the following command from an MS-DOS command prompt:

net start SNMP

or

</li> Click the Start button, point to Settings, click Control Panel, and then double-click Services. Select SNMP from the list, and then click Start.</li></ol> </li></ol>

After the new MIB is created that contains the Performance Monitor logical disk objects, it can be tested by using the Snmputil.exe utility found in the Microsoft Windows NT resource kit. To test the MIB:  From an MS-DOS command prompt, run the command CD %ntreskit%, to change your default to the resource kit folder.</li> <li>Use the SNMPUTIL utility to walk the logical disk OID tree. To do this, run the following command at an MS-DOS command prompt:

snmputil walk localhost public .1.3.6.1.4.1.311.1.1.3.1.1.250.1.1

Results: This will successfully walk the tree, but it does not display the logical disk instance name - .1.3.6.1.4.1.311.1.1.3.1.1.250.1.2 - this value is skipped.</li></ol>

Keywords: kbbug kbnofix KB202195

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.