Skip to main content
Barracuda MSP Partner Toolkit

Create a Performance Counter for a custom WMI class

Create a Performance Counter for a custom WMI class

Please follow these steps to create a performance counter for a custom WMI class.

1) click Start, then choose RUN and type in “wbemtest.exe”. Then press ENTER.

clipboard_e61a2c027d9ad44b290c71d35502ac655.png

2) click Connect.

clipboard_ef3dbad722c6f742be0796198d520fc27.png

3) Connect to the namespace containing your WMI class. This will normally be root\cimv2. If you’re connecting to a remote system, the namespace will look like a UNC path, eg. \\hostname\root\cimv2.

Enter an Administrator username and password if necessary, then click Connect.

clipboard_e19c88b7a8f7433df4c5496ddd750b315.png

4) Click Enum Classes…

clipboard_e44c8091a924dd674e3244408b91c4ff3.png

5) Leave ‘superclass name’ blank, select ‘Recursive’ and click OK.


clipboard_edbbf3c43ca5d12f9e4bedfc25d4cc046.png
6) A Query Result window will open with a full list of WMI classes in that namespace.

Scroll through the list until you find a relevant class. Take note of the class name (eg. Win32_PerfFormattedData_Spooler_PrintQueue)

clipboard_e593bb5898b8430a7974f24a93c2b96b5.png

7) Click Instances to find out which instances exist.

clipboard_e9789db3e8279fa58b0ab79e456c66a93.png

8) take note of the available instances, then double click on one (eg. “_Total”)

clipboard_e64a57f52fc520805576c3abf408e2165.png

9) Find the property you want to monitor, and take note of its name.

clipboard_eb8ca5907277b2f9021c06ec367f853a1.png

10) Open your Service Center, and go to System Settings under Configuration.

11) Switch to the Network Objects tab, and under Performance Counters, click Add.
clipboard_ed7f5e7e6b460bb285db3fd0869efbaa8.png

12) Check the Other’box for each field, and fill out the form with the information you’ve gathered.

‘Performance Object’ and ‘Instance Counter’ can be whatever you want to name them and Object Instance is optional, but WMI Class Name and WMI Property Name are required.

clipboard_ed7dc2180a5f51407f74a20ec62e5b806.png

13) Click Save.