The information in this article applies to:
SUMMARYThis 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:
Installing the Performance Counter Agent Extensions makes performance data counters available through SNMP. The installation should be as simple as running PERFM.BAT from the NTRESKIT directory, but this batch file has typos and errors and should not be used. Here is a sample batch file that should compile Perfmib correctly if run from the NTReskit directory. You may need to change the path for correct location of the Windows NT resource kit on the computer from which this batch file is run: @echo off echo "Creating perfmib....." @echo on perf2mib perfmib.mib perfmib.ini memory 1 memory processor 2 CPU "Network Segment" 3 net PhysicalDisk 4 disk @echo off echo "Compiling perfmib" @echo on mibcc -omib.bin -n -t -w2 SMI.MIB LMMIB2.MIB mib_ii.mib perfmib.mib @echo off echo "Stopping snmp service" @echo on net stop snmp @echo off echo "Saving old mib to mib.old...." @echo on move %systemroot%\system32\mib.bin %systemroot%\system32\mib.old @echo off echo "Copying perfmib files from NTResKit to system32" @echo on copy perfmib.dll %systemroot%\system32\perfmib.dll copy perfmib.ini %systemroot%\system32\perfmib.ini copy mib.bin %systemroot%\system32\mib.bin @echo off echo "Registering new Mibs" @echo on regini perfmib.reg @echo off echo "Restarting SNMP Service" @echo on Step-by-step setup and verification processThe following shows how to setup the Performance Monitor Extension Agent and how to test to see if it was installed correctly:
The results should look similar to the following: >snmputil get stevehah3 public .iso.org.dod.internet.private.enterprises.microsoft.software.1.3.1.1.1.1.0 Variable = .iso.org.dod.internet.private.enterprises.microsoft.software.1.3.1.1.1.1.0 Value = INTEGER - 757760 This particular oid is the maxAvailableBytes object, which returns in integer form. Registry Entries / important files The following keys are modified when PERMIB.REG is executed using the resource kit utility REGINI.EXE. The files listed are ones that should be copied into the System32 directory and should be checked for if the above steps failed to install the extensions correctly. From the HKEY_LOCAL_MACHINE subtree: \System\CurrentControlSet\Services\SNMP\Parameters\ExtensionAgents Name: MicrosoftPerformanceAgent Also under the HKEY_LOCAL_MACHINE subtree: Key: SOFTWARE\Microsoft\PerformanceAgent\CurrentVersion Files that should be copied into the system32 subdirectory are: perfmib.dll permib.ini mib.bin If any file is not there, copy it from the NTRESKIT directory to the %SystemRoot%\System32 directory. The mib.bin created by the PERF.BAT (listed above) should be 13,024 bytes and the date and time PERF.BAT was run. The old mib.bin should be renamed to "mib.old". For Windows NT 3.51: Modify the registry settings to use this extension DLL: Additional query words: tcpip
Keywords : kbnetwork nttcp NTSrvWkst |
Last Reviewed: January 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |