Contact Info

Crumbtrail

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

IPsecDoSProtection - WMI sample in VBScript

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)

Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")

Set colItems = objWMIService.ExecQuery("Select * From Win32_PerfRawData_Counters_IPsecDoSProtection")

For Each objItem in colItems
	WScript.Echo "Caption:" & objItem.Caption
	WScript.Echo "CurrentStateEntries:" & objItem.CurrentStateEntries
	WScript.Echo "Description:" & objItem.Description
	WScript.Echo "Frequency_Object:" & objItem.Frequency_Object
	WScript.Echo "Frequency_PerfTime:" & objItem.Frequency_PerfTime
	WScript.Echo "Frequency_Sys100NS:" & objItem.Frequency_Sys100NS
	WScript.Echo "InboundAllowedDefaultBlockExemptPackets:" & objItem.InboundAllowedDefaultBlockExemptPackets
	WScript.Echo "InboundAllowedDefaultBlockExemptPacketsPersec:" & objItem.InboundAllowedDefaultBlockExemptPacketsPersec
	WScript.Echo "InboundAllowedFilterExemptIPv6Packets:" & objItem.InboundAllowedFilterExemptIPv6Packets
	WScript.Echo "InboundAllowedFilterExemptIPv6PacketsPersec:" & objItem.InboundAllowedFilterExemptIPv6PacketsPersec
	WScript.Echo "InboundAllowedICMPv6Packets:" & objItem.InboundAllowedICMPv6Packets
	WScript.Echo "InboundAllowedICMPv6PacketsPersec:" & objItem.InboundAllowedICMPv6PacketsPersec
	WScript.Echo "InboundAllowedIPv6IPsecAuthenticatedPackets:" & objItem.InboundAllowedIPv6IPsecAuthenticatedPackets
	WScript.Echo "InboundAllowedIPv6IPsecAuthenticatedPacketsPersec:" & objItem.InboundAllowedIPv6IPsecAuthenticatedPacketsPersec
	WScript.Echo "InboundAllowedIPv6IPsecUnauthenticatedPackets:" & objItem.InboundAllowedIPv6IPsecUnauthenticatedPackets
	WScript.Echo "InboundAllowedIPv6IPsecUnauthenticatedPacketsPersec:" & objItem.InboundAllowedIPv6IPsecUnauthenticatedPacketsPersec
	WScript.Echo "InboundDiscardedDefaultBlockPackets:" & objItem.InboundDiscardedDefaultBlockPackets
	WScript.Echo "InboundDiscardedDefaultBlockPacketsPersec:" & objItem.InboundDiscardedDefaultBlockPacketsPersec
	WScript.Echo "InboundDiscardedFilterBlockIPv6Packets:" & objItem.InboundDiscardedFilterBlockIPv6Packets
	WScript.Echo "InboundDiscardedFilterBlockIPv6PacketsPersec:" & objItem.InboundDiscardedFilterBlockIPv6PacketsPersec
	WScript.Echo "InboundDiscardedPackets:" & objItem.InboundDiscardedPackets
	WScript.Echo "InboundDiscardedPacketsPersec:" & objItem.InboundDiscardedPacketsPersec
	WScript.Echo "InboundOtherDiscardedIPv6IPsecAuthenticatedPackets:" & objItem.InboundOtherDiscardedIPv6IPsecAuthenticatedPackets
	WScript.Echo "InboundOtherDiscardedIPv6IPsecAuthenticatedPacketsPersec:" & objItem.InboundOtherDiscardedIPv6IPsecAuthenticatedPacketsPersec
	WScript.Echo "InboundOtherDiscardedIPv6IPsecUnauthenticatedPackets:" & objItem.InboundOtherDiscardedIPv6IPsecUnauthenticatedPackets
	WScript.Echo "InboundOtherDiscardedIPv6IPsecUnauthenticatedPacketsPersec:" & objItem.InboundOtherDiscardedIPv6IPsecUnauthenticatedPacketsPersec
	WScript.Echo "InboundPerIPRateLimitDiscardedIPv6IPsecUnauthenticatedPackets:" & objItem.InboundPerIPRateLimitDiscardedIPv6IPsecUnauthenticatedPackets
	WScript.Echo "InboundPerIPRateLimitDiscardedIPv6IPsecUnauthenticatedPacketsPersec:" & objItem.InboundPerIPRateLimitDiscardedIPv6IPsecUnauthenticatedPacketsPersec
	WScript.Echo "InboundRateLimitDiscardedDefaultBlockExemptPackets:" & objItem.InboundRateLimitDiscardedDefaultBlockExemptPackets
	WScript.Echo "InboundRateLimitDiscardedDefaultBlockExemptPacketsPersec:" & objItem.InboundRateLimitDiscardedDefaultBlockExemptPacketsPersec
	WScript.Echo "InboundRateLimitDiscardedFilterExemptIPv6Packets:" & objItem.InboundRateLimitDiscardedFilterExemptIPv6Packets
	WScript.Echo "InboundRateLimitDiscardedFilterExemptIPv6PacketsPersec:" & objItem.InboundRateLimitDiscardedFilterExemptIPv6PacketsPersec
	WScript.Echo "InboundRateLimitDiscardedICMPv6Packets:" & objItem.InboundRateLimitDiscardedICMPv6Packets
	WScript.Echo "InboundRateLimitDiscardedICMPv6PacketsPersec:" & objItem.InboundRateLimitDiscardedICMPv6PacketsPersec
	WScript.Echo "InboundRateLimitDiscardedIPv6IPsecAuthenticatedPackets:" & objItem.InboundRateLimitDiscardedIPv6IPsecAuthenticatedPackets
	WScript.Echo "InboundRateLimitDiscardedIPv6IPsecAuthenticatedPacketsPersec:" & objItem.InboundRateLimitDiscardedIPv6IPsecAuthenticatedPacketsPersec
	WScript.Echo "InboundRateLimitDiscardedIPv6IPsecUnauthenticatedPackets:" & objItem.InboundRateLimitDiscardedIPv6IPsecUnauthenticatedPackets
	WScript.Echo "InboundRateLimitDiscardedIPv6IPsecUnauthenticatedPacketsPersec:" & objItem.InboundRateLimitDiscardedIPv6IPsecUnauthenticatedPacketsPersec
	WScript.Echo "Name:" & objItem.Name
	WScript.Echo "PerIPRateLimitQueues:" & objItem.PerIPRateLimitQueues
	WScript.Echo "StateEntries:" & objItem.StateEntries
	WScript.Echo "StateEntriesPersec:" & objItem.StateEntriesPersec
	WScript.Echo "Timestamp_Object:" & objItem.Timestamp_Object
	WScript.Echo "Timestamp_PerfTime:" & objItem.Timestamp_PerfTime
	WScript.Echo "Timestamp_Sys100NS:" & objItem.Timestamp_Sys100NS
	WScript.Echo ""
	WScript.Echo "########"
	WScript.Echo ""
Next