Improve Asset Discovery Logging to Associate the Entry with the Pattern Executed

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Assets Discovery
    • None
    • 0
    • 5

      Issue Summary

      Currently, in Assets Discovery, when an error occurs the log collected is impossible to tie back to the pattern executed on the host.

      To help troubleshoot related issues, DEBUG level logging in Assets Discovery should note which pattern executed, and if it was successful or errored against the target-host.

      Steps to Reproduce

      1. Enable Debug Logging in Assets Discovery
      2. Create a scan that includes all patterns
      3. Run the scan against your target host(s)

      Expected Results

      Logging generated ties the pattern to the results in a clear-to-understand method.

      Actual Results

      If an error occurs, we see something like this and cannot tie it back to the pattern.

      [Normal] Invalid query 
         at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
         at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
         at ProviderClasses.ScanProviders.WMI.WMIQueryScanProcess.HandleManagementObjectCollection(ManagementObjectCollection managementObjectCollection) in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE206-BUILD\ProviderClasses\ScanProviders\WMI\WMIQueryScanProcess.cs:line 146 

      Workaround

      Change scan parameters and de-select patterns until the error no longer occurs in a scan

            Assignee:
            Unassigned
            Reporter:
            Patrick Turbett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: