How to Setup Windows NT SNMP Performance Counter Agent Extension |
Q139488
The Perf2Mib utility has been removed from the Microsoft Windows NT 4.0 Resource Kit as of Supplement2 and, consequently, future issues concerning the tool are not addressed as this utility is no longer supported by Microsoft.
The Perf2Mib utility is also mentioned in the Windows 2000 Resource Kit. However, the Perf2Mib utility is not included in the Resource Kit and there are no plans to release it in the future.
Many customers who try to use the Perf2Mib utility to create their own
Performance Monitor counters for Simple Network Management Protocol (SNMP), can find that their SNMP queries are inconsistent or incomplete. This is because the Perf2Mib utility does not correctly parse the Performance Monitor objects into a .mib file that can be used successfully.
The following unsupported information 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.
To get the Memory, Processor, Network Segment, and PhysicalDisk Performance
Monitor counters through SNMP, you can run Perfm.bat, provided in the Windows NT Resource Kit version 4.0, or follow these steps:
Perf2mib Mem.mib %Systemroot%\System32\Perfmib.ini Memory 300 mem (continued line) Processor 302 proc
@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
SNMPUTIL get <agent> publicYou may receive the following results:
.iso.org.dod.internet.private.enterprises.microsoft.software.1.3.1.1.1.1.0
>snmputil get stevehah3 publicIn this sample, Smtputil returns the maxAvailableBytes value, which returns in integer form. The maxAvailableBytes represents the Memory-AvailableBytes performance object counter.
.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
\System\CurrentControlSet\Services\SNMP\Parameters\ExtensionAgents
Name: MicrosoftPerformanceAgentAlso under the HKEY_LOCAL_MACHINE subtree:
Type : REG_SZ
Data: SOFTWARE\Microsoft\PerformanceAgent\CurrentVersion
Key: SOFTWARE\Microsoft\PerformanceAgent\CurrentVersionCopy the following files into the System32 subdirectory:
Name: Pathname
Type: REG_EXPAND_SZ
Data : %SystemRoot%\System32\perfmib.dll
perfmib.dllIf any file is not present, copy the file from the NTRESKIT directory to the %SystemRoot%\System32 directory.
permib.ini
mib.bin
\System\CurrentControlSet\Services\SNMP\Parameters\ExtensionAgents
Name: 3
Type: REG_SZ
Data: SOFTWARE\Microsoft\Perfmib\CurrentVersion
Subtree: HKEY_LOCAL_MACHINENOTE: Copy this Perfmib.dll from the Resource Kit to the system directory.
Key Name: \Software\Microsoft\Perfmib\CurrentVersion
Name: Pathname
Type: REG_EXPAND_SZ
Data: %SystemRoot%\System32\perfmib.dll
SNMPUTIL walk agent public<space>.iso.org.dod.internet.private (continued line) .enterprises.microsoft.software.1.3.1.1.300Where <space> is a blank space (press spacebar).
Additional query words: tcpip
Keywords : kbnetwork
Issue type :
Technology : kbWinNTsearch kbWinNTWsearch kbWinNTW400 kbWinNTW400search kbWinNT351search kbWinNT400search kbWinNTW351search kbWinNTW351 kbWinNTSsearch kbWinNTS400search kbWinNTS400 kbWinNTS351 kbWinNTRK kbMSPressSearch kbWinNTS351search
|
Last Reviewed: October 23, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |