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.
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.