MIB Builder Tool (PERF2MIB.EXE)

You can use the Performance Monitor MIB builder tool, PERF2MIB.EXE, to create new ASN.1 syntax MIBs to track performance using any system management program. This utility is available on the Windows NT 3.51 Resource Kit CD.

PERF2MIB.EXE creates a MIB file that can be used by an SNMP management console to perform SNMP requests for the performance data in question. This lets all performance data available through the HKEY_EPRFORMANCE_DATA Registry key be exposed through SNMP, allowing remote performance monitoring.

The syntax for PERF2MIB.EXE is as follows:

perf2mib MIBfilename INIfilename [ObjectName MIBIndex MIBPrefix [...]]

where

MIBfilename

Is the name of the MIB file to create.

INIfilename

Is the name of the generated configuration file. This file is used by the Windows NT SNMP extension agent to map performance counters to MIB variables.

ObjectName

Is the name of the performance object whose counters you want to expose (such as Processor or Memory).

MIBIndex

Is the numeric ID of the MIB branch where the particular object's data should be placed.

MIBPrefix

Is the abbreviation that should be placed before counter names belonging to this object (such as "mem" for Memory counters or "proc" for Processor counters).

Note

The last three parameters can be repeated to map multiple object types with one call. If multiple object types are specified, the resulting MIB and MIB agent configuration information is concatenated into one MIB file.

Example:


perf2mib test.mib test.ini Memory 1 mem Processor 2 proc System 3 sys

To create and compile a MIB for a new component

1. Run PERF2MIB, specifying the object for which you want to create a MIB. A configuration file (INI) file will also be generated.

2. Copy the MIB file to the console device.

3. Run the MIB compiler to compile the management station with the MIB file.

For example, if you are using HP OpenView, to populate the map with a new object, run the HP OpenView MIB compiler with the MIB file and then associate the resulting icon with an object and place it on the map.

This step enables the management station to read the component's MIB via SNMP.