Contact Info

Crumbtrail

ActiveXperts.com » Administration » Scripts » WMI Performance Counters » Python

NetAdapterBindingSettingData - WMI sample in Python

The foundations for Manageability in Windows 2019/2012/2008/ and Windows 10/8/7/Vista/XP are Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).

ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself.

On this site, you can find many WMI samples.

The NetAdapterBindingSettingData WMI class can be used in ActiveXperts Network Monitor to monitor your servers.


NetAdapterBindingSettingData

Example(s)

from win32com.client import GetObject
objWMI = GetObject('winmgmts:\\\\.\\root\\StandardCimv2').InstancesOf('MSFT_NetAdapterBindingSettingData')

for obj in objWMI:
	if obj.BindName != None:
		print("BindName:" + str(obj.BindName))
	if obj.Caption != None:
		print("Caption:" + str(obj.Caption))
	if obj.Characteristics != None:
		print("Characteristics:" + str(obj.Characteristics))
	if obj.ComponentClassGuid != None:
		print("ComponentClassGuid:" + str(obj.ComponentClassGuid))
	if obj.ComponentClassName != None:
		print("ComponentClassName:" + str(obj.ComponentClassName))
	if obj.ComponentID != None:
		print("ComponentID:" + str(obj.ComponentID))
	if obj.Description != None:
		print("Description:" + str(obj.Description))
	if obj.DisplayName != None:
		print("DisplayName:" + str(obj.DisplayName))
	if obj.ElementName != None:
		print("ElementName:" + str(obj.ElementName))
	if obj.Enabled != None:
		print("Enabled:" + str(obj.Enabled))
	if obj.InstanceID != None:
		print("InstanceID:" + str(obj.InstanceID))
	if obj.InterfaceDescription != None:
		print("InterfaceDescription:" + str(obj.InterfaceDescription))
	if obj.Name != None:
		print("Name:" + str(obj.Name))
	if obj.Source != None:
		print("Source:" + str(obj.Source))
	if obj.SystemName != None:
		print("SystemName:" + str(obj.SystemName))
	print("")
	print("########")
	print("")