IPsecDoSProtection - 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 IPsecDoSProtection WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
IPsecDoSProtection
Example(s)
from win32com.client import GetObject objWMI = GetObject('winmgmts:').InstancesOf('Win32_PerfRawData_Counters_IPsecDoSProtection') for obj in objWMI: if obj.Caption != None: print("Caption:" + str(obj.Caption)) if obj.CurrentStateEntries != None: print("CurrentStateEntries:" + str(obj.CurrentStateEntries)) if obj.Description != None: print("Description:" + str(obj.Description)) if obj.Frequency_Object != None: print("Frequency_Object:" + str(obj.Frequency_Object)) if obj.Frequency_PerfTime != None: print("Frequency_PerfTime:" + str(obj.Frequency_PerfTime)) if obj.Frequency_Sys100NS != None: print("Frequency_Sys100NS:" + str(obj.Frequency_Sys100NS)) if obj.InboundAllowedDefaultBlockExemptPackets != None: print("InboundAllowedDefaultBlockExemptPackets:" + str(obj.InboundAllowedDefaultBlockExemptPackets)) if obj.InboundAllowedDefaultBlockExemptPacketsPersec != None: print("InboundAllowedDefaultBlockExemptPacketsPersec:" + str(obj.InboundAllowedDefaultBlockExemptPacketsPersec)) if obj.InboundAllowedFilterExemptIPv6Packets != None: print("InboundAllowedFilterExemptIPv6Packets:" + str(obj.InboundAllowedFilterExemptIPv6Packets)) if obj.InboundAllowedFilterExemptIPv6PacketsPersec != None: print("InboundAllowedFilterExemptIPv6PacketsPersec:" + str(obj.InboundAllowedFilterExemptIPv6PacketsPersec)) if obj.InboundAllowedICMPv6Packets != None: print("InboundAllowedICMPv6Packets:" + str(obj.InboundAllowedICMPv6Packets)) if obj.InboundAllowedICMPv6PacketsPersec != None: print("InboundAllowedICMPv6PacketsPersec:" + str(obj.InboundAllowedICMPv6PacketsPersec)) if obj.InboundAllowedIPv6IPsecAuthenticatedPackets != None: print("InboundAllowedIPv6IPsecAuthenticatedPackets:" + str(obj.InboundAllowedIPv6IPsecAuthenticatedPackets)) if obj.InboundAllowedIPv6IPsecAuthenticatedPacketsPersec != None: print("InboundAllowedIPv6IPsecAuthenticatedPacketsPersec:" + str(obj.InboundAllowedIPv6IPsecAuthenticatedPacketsPersec)) if obj.InboundAllowedIPv6IPsecUnauthenticatedPackets != None: print("InboundAllowedIPv6IPsecUnauthenticatedPackets:" + str(obj.InboundAllowedIPv6IPsecUnauthenticatedPackets)) if obj.InboundAllowedIPv6IPsecUnauthenticatedPacketsPersec != None: print("InboundAllowedIPv6IPsecUnauthenticatedPacketsPersec:" + str(obj.InboundAllowedIPv6IPsecUnauthenticatedPacketsPersec)) if obj.InboundDiscardedDefaultBlockPackets != None: print("InboundDiscardedDefaultBlockPackets:" + str(obj.InboundDiscardedDefaultBlockPackets)) if obj.InboundDiscardedDefaultBlockPacketsPersec != None: print("InboundDiscardedDefaultBlockPacketsPersec:" + str(obj.InboundDiscardedDefaultBlockPacketsPersec)) if obj.InboundDiscardedFilterBlockIPv6Packets != None: print("InboundDiscardedFilterBlockIPv6Packets:" + str(obj.InboundDiscardedFilterBlockIPv6Packets)) if obj.InboundDiscardedFilterBlockIPv6PacketsPersec != None: print("InboundDiscardedFilterBlockIPv6PacketsPersec:" + str(obj.InboundDiscardedFilterBlockIPv6PacketsPersec)) if obj.InboundDiscardedPackets != None: print("InboundDiscardedPackets:" + str(obj.InboundDiscardedPackets)) if obj.InboundDiscardedPacketsPersec != None: print("InboundDiscardedPacketsPersec:" + str(obj.InboundDiscardedPacketsPersec)) if obj.InboundOtherDiscardedIPv6IPsecAuthenticatedPackets != None: print("InboundOtherDiscardedIPv6IPsecAuthenticatedPackets:" + str(obj.InboundOtherDiscardedIPv6IPsecAuthenticatedPackets)) if obj.InboundOtherDiscardedIPv6IPsecAuthenticatedPacketsPersec != None: print("InboundOtherDiscardedIPv6IPsecAuthenticatedPacketsPersec:" + str(obj.InboundOtherDiscardedIPv6IPsecAuthenticatedPacketsPersec)) if obj.InboundOtherDiscardedIPv6IPsecUnauthenticatedPackets != None: print("InboundOtherDiscardedIPv6IPsecUnauthenticatedPackets:" + str(obj.InboundOtherDiscardedIPv6IPsecUnauthenticatedPackets)) if obj.InboundOtherDiscardedIPv6IPsecUnauthenticatedPacketsPersec != None: print("InboundOtherDiscardedIPv6IPsecUnauthenticatedPacketsPersec:" + str(obj.InboundOtherDiscardedIPv6IPsecUnauthenticatedPacketsPersec)) if obj.InboundPerIPRateLimitDiscardedIPv6IPsecUnauthenticatedPackets != None: print("InboundPerIPRateLimitDiscardedIPv6IPsecUnauthenticatedPackets:" + str(obj.InboundPerIPRateLimitDiscardedIPv6IPsecUnauthenticatedPackets)) if obj.InboundPerIPRateLimitDiscardedIPv6IPsecUnauthenticatedPacketsPersec != None: print("InboundPerIPRateLimitDiscardedIPv6IPsecUnauthenticatedPacketsPersec:" + str(obj.InboundPerIPRateLimitDiscardedIPv6IPsecUnauthenticatedPacketsPersec)) if obj.InboundRateLimitDiscardedDefaultBlockExemptPackets != None: print("InboundRateLimitDiscardedDefaultBlockExemptPackets:" + str(obj.InboundRateLimitDiscardedDefaultBlockExemptPackets)) if obj.InboundRateLimitDiscardedDefaultBlockExemptPacketsPersec != None: print("InboundRateLimitDiscardedDefaultBlockExemptPacketsPersec:" + str(obj.InboundRateLimitDiscardedDefaultBlockExemptPacketsPersec)) if obj.InboundRateLimitDiscardedFilterExemptIPv6Packets != None: print("InboundRateLimitDiscardedFilterExemptIPv6Packets:" + str(obj.InboundRateLimitDiscardedFilterExemptIPv6Packets)) if obj.InboundRateLimitDiscardedFilterExemptIPv6PacketsPersec != None: print("InboundRateLimitDiscardedFilterExemptIPv6PacketsPersec:" + str(obj.InboundRateLimitDiscardedFilterExemptIPv6PacketsPersec)) if obj.InboundRateLimitDiscardedICMPv6Packets != None: print("InboundRateLimitDiscardedICMPv6Packets:" + str(obj.InboundRateLimitDiscardedICMPv6Packets)) if obj.InboundRateLimitDiscardedICMPv6PacketsPersec != None: print("InboundRateLimitDiscardedICMPv6PacketsPersec:" + str(obj.InboundRateLimitDiscardedICMPv6PacketsPersec)) if obj.InboundRateLimitDiscardedIPv6IPsecAuthenticatedPackets != None: print("InboundRateLimitDiscardedIPv6IPsecAuthenticatedPackets:" + str(obj.InboundRateLimitDiscardedIPv6IPsecAuthenticatedPackets)) if obj.InboundRateLimitDiscardedIPv6IPsecAuthenticatedPacketsPersec != None: print("InboundRateLimitDiscardedIPv6IPsecAuthenticatedPacketsPersec:" + str(obj.InboundRateLimitDiscardedIPv6IPsecAuthenticatedPacketsPersec)) if obj.InboundRateLimitDiscardedIPv6IPsecUnauthenticatedPackets != None: print("InboundRateLimitDiscardedIPv6IPsecUnauthenticatedPackets:" + str(obj.InboundRateLimitDiscardedIPv6IPsecUnauthenticatedPackets)) if obj.InboundRateLimitDiscardedIPv6IPsecUnauthenticatedPacketsPersec != None: print("InboundRateLimitDiscardedIPv6IPsecUnauthenticatedPacketsPersec:" + str(obj.InboundRateLimitDiscardedIPv6IPsecUnauthenticatedPacketsPersec)) if obj.Name != None: print("Name:" + str(obj.Name)) if obj.PerIPRateLimitQueues != None: print("PerIPRateLimitQueues:" + str(obj.PerIPRateLimitQueues)) if obj.StateEntries != None: print("StateEntries:" + str(obj.StateEntries)) if obj.StateEntriesPersec != None: print("StateEntriesPersec:" + str(obj.StateEntriesPersec)) if obj.Timestamp_Object != None: print("Timestamp_Object:" + str(obj.Timestamp_Object)) if obj.Timestamp_PerfTime != None: print("Timestamp_PerfTime:" + str(obj.Timestamp_PerfTime)) if obj.Timestamp_Sys100NS != None: print("Timestamp_Sys100NS:" + str(obj.Timestamp_Sys100NS)) print("") print("########") print("")