How to Setup Windows NT SNMP Performance Counter Agent Extension

Last reviewed: September 23, 1997
Article ID: Q139488

The information in this article applies to:
  • Microsoft Windows NT Workstation version 3.51
  • Microsoft Windows NT Server version 3.51
  • Microsoft Windows NT Resource Kit versions 3.51 and 4.0
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Workstation version 4.0

SUMMARY

This article explains how to setup the Windows NT SNMP Performance Counter Agent extension provided in Windows NT Resource Kit versions 3.51 and 4.0. This agent extension makes the performance data counters available through SNMP.

MORE INFORMATION

To get the Memory, Processor, Network Segment, and PhysicalDisk Performance Monitor counters via SNMP, you can run Perfm.bat, provided in the Windows NT Resource Kit version 4.0, or use the following steps:

  1. Create a PERFMIB.INI configuration file with PERF2MIB.EXE:

    - This file specifies the performance counters to expose through SNMP

         and the Object Ids (OID) to access them.
    

    - Execute the following command:

            PERF2MIB MEM.MIB %systemroot%\SYSTEM32\PERFMIB.INI Memory 300 mem
            (continued line)  Processor 302 proc
    
       - PERF2MIB creates a PERFMIB.INI file with Memory and Processor
         counters. The MEM.MIB file is also created. MEM.MIB can be used by
         SNMP management tools to get the counters OID.
    
       - The PERFMIB.INI file must reside in the same default directory as the
         SNMP.EXE process, otherwise the Perfmib DDL initialization fails.
    
    

  2. For Windows NT 4.0:

        - Register Perfmib.reg in the Registry (in case you do not wish to
          create it, Perfmib.reg has been provided on the Resource Kit CD).
          This can be performed by creating the following keys with Registry
          Editor (Regedit.exe or Regedt32.exe) or by copying the following
          registry information into a file called Perfmib.reg and running
          "regini perfmib.reg" (Regini.exe is a utility in the Resource Kit).
    

    For Windows NT 3.51:

    Modify the registry settings to use this extension DLL:

          a. Run Registry Editor (REGEDT32.EXE).
    

          b. From the HKEY_LOCAL_MACHINE subtree, go to the following key:
    

                \System\CurrentControlSet\Services\SNMP
                \Parameters\ExtensionAgents
    
          c. Create a new value entry:
    
                Name:   3
                Type:   REG_SZ
                Data:   SOFTWARE\Microsoft\Perfmib\CurrentVersion
    
          d. Create a new key and new value to get the dll name:
    
                Subtree:    HKEY_LOCAL_MACHINE
                Key Name:   \Software\Microsoft\Perfmib\CurrentVersion
                Name:       Pathname
                Type:       REG_EXPAND_SZ
                Data:       %SystemRoot%\System32\perfmib.dll
    
             NOTE: Copy this Perfmib.dll from the Resource Kit to the system
             directory.
    
    

  3. Start the SNMP service.

  4. Add Perfmib.mib to your management station using the method provided by the manufacturer of your management station.

  5. Collect performance counters. For example to get the memory counters information with snmputil tool, issue the following command:

    SNMPUTIL walk agent public<space>.iso.org.dod.internet.private (continued line) .enterprises.microsoft.software.1.3.1.1.300.

    where <space> is a blank space (press spacebar).


Additional query words: prodnt tcpip
Keywords : NTSrvWkst nttcp kbnetwork
Version : 3.51 4.0
Platform : NT WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 23, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.