Contact Info

Crumbtrail

ActiveXperts.com » Administration » Scripts » WMI » VBScript

Win32-PerfRawData-Counters-IPsecAuthIPv4 - WMI VBScript sample

The foundations for Manageability in Windows 2019/2016/2012/2008 and Windows 10/7/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 Win32_PerfRawData_Counters_IPsecAuthIPv4 WMI class can be used in ActiveXperts Network Monitor to monitor your servers.


Win32-PerfRawData-Counters-IPsecAuthIPv4

Example(s)

  On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_PerfRawData_Counters_IPsecAuthIPv4",,48)
For Each objItem in colItems
    Wscript.Echo "ActiveExtendedModeSAs: " & objItem.ActiveExtendedModeSAs
    Wscript.Echo "ActiveMainModeSAs: " & objItem.ActiveMainModeSAs
    Wscript.Echo "ActiveQuickModeSAs: " & objItem.ActiveQuickModeSAs
    Wscript.Echo "Caption: " & objItem.Caption
    Wscript.Echo "Description: " & objItem.Description
    Wscript.Echo "ExtendedModeNegotiations: " & objItem.ExtendedModeNegotiations
    Wscript.Echo "ExtendedModeNegotiationsPersec: " & objItem.ExtendedModeNegotiationsPersec
    Wscript.Echo "ExtendedModeSAsThatUsedImpersonation: " & objItem.ExtendedModeSAsThatUsedImpersonation
    Wscript.Echo "FailedExtendedModeNegotiations: " & objItem.FailedExtendedModeNegotiations
    Wscript.Echo "FailedExtendedModeNegotiationsPersec: " & objItem.FailedExtendedModeNegotiationsPersec
    Wscript.Echo "FailedMainModeNegotiations: " & objItem.FailedMainModeNegotiations
    Wscript.Echo "FailedMainModeNegotiationsPersec: " & objItem.FailedMainModeNegotiationsPersec
    Wscript.Echo "FailedQuickModeNegotiations: " & objItem.FailedQuickModeNegotiations
    Wscript.Echo "FailedQuickModeNegotiationsPersec: " & objItem.FailedQuickModeNegotiationsPersec
    Wscript.Echo "Frequency_Object: " & objItem.Frequency_Object
    Wscript.Echo "Frequency_PerfTime: " & objItem.Frequency_PerfTime
    Wscript.Echo "Frequency_Sys100NS: " & objItem.Frequency_Sys100NS
    Wscript.Echo "MainModeNegotiationRequestsReceived: " & objItem.MainModeNegotiationRequestsReceived
    Wscript.Echo "MainModeNegotiationRequestsReceivedPersec: " & objItem.MainModeNegotiationRequestsReceivedPersec
    Wscript.Echo "MainModeNegotiations: " & objItem.MainModeNegotiations
    Wscript.Echo "MainModeNegotiationsPersec: " & objItem.MainModeNegotiationsPersec
    Wscript.Echo "MainModeSAsThatUsedImpersonation: " & objItem.MainModeSAsThatUsedImpersonation
    Wscript.Echo "MainModeSAsThatUsedImpersonationPersec: " & objItem.MainModeSAsThatUsedImpersonationPersec
    Wscript.Echo "Name: " & objItem.Name
    Wscript.Echo "PendingExtendedModeNegotiations: " & objItem.PendingExtendedModeNegotiations
    Wscript.Echo "PendingMainModeNegotiations: " & objItem.PendingMainModeNegotiations
    Wscript.Echo "PendingQuickModeNegotiations: " & objItem.PendingQuickModeNegotiations
    Wscript.Echo "QuickModeNegotiations: " & objItem.QuickModeNegotiations
    Wscript.Echo "QuickModeNegotiationsPersec: " & objItem.QuickModeNegotiationsPersec
    Wscript.Echo "SuccessfulExtendedModeNegotiations: " & objItem.SuccessfulExtendedModeNegotiations
    Wscript.Echo "SuccessfulExtendedModeNegotiationsPersec: " & objItem.SuccessfulExtendedModeNegotiationsPersec
    Wscript.Echo "SuccessfulMainModeNegotiations: " & objItem.SuccessfulMainModeNegotiations
    Wscript.Echo "SuccessfulMainModeNegotiationsPersec: " & objItem.SuccessfulMainModeNegotiationsPersec
    Wscript.Echo "SuccessfulQuickModeNegotiations: " & objItem.SuccessfulQuickModeNegotiations
    Wscript.Echo "SuccessfulQuickModeNegotiationsPersec: " & objItem.SuccessfulQuickModeNegotiationsPersec
    Wscript.Echo "Timestamp_Object: " & objItem.Timestamp_Object
    Wscript.Echo "Timestamp_PerfTime: " & objItem.Timestamp_PerfTime
    Wscript.Echo "Timestamp_Sys100NS: " & objItem.Timestamp_Sys100NS
Next