Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-801

Change format for wmic output in system logs for readability

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The Windows system logs have process output like this (in CSV format):

      [2016/01/11 17:31:36.939] Running wmic process list /format:CSV
      [2016/01/11 17:31:37.014] 
      [2016/01/11 17:31:37.014] Node,CommandLine,CSName,Description,ExecutablePath,ExecutionState,Handle,HandleCount,InstallDate,KernelModeTime,MaximumWorkingSetSize,MinimumWorkingSetSize,Name,OSName,OtherOperationCount,OtherTransferCount,PageFaults,PageFileUsage,ParentProcessId,PeakPageFileUsage,PeakVirtualSize,PeakWorkingSetSize,Priority,PrivatePageCount,ProcessId,QuotaNonPagedPoolUsage,QuotaPagedPoolUsage,QuotaPeakNonPagedPoolUsage,QuotaPeakPagedPoolUsage,ReadOperationCount,ReadTransferCount,SessionId,Status,TerminationDate,ThreadCount,UserModeTime,VirtualSize,WindowsVersion,WorkingSetSize,WriteOperationCount,WriteTransferCount
      [2016/01/11 17:31:37.014] WIN-U6NBGJ430CM,,WIN-U6NBGJ430CM,System Idle Process,,,0,0,,839647614322,,,System Idle Process,Microsoft Windows Server 2008 R2 Datacenter |C:\Windows|\Device\Harddisk0\Partition1,0,0,1,0,0,0,0,24,0,0,0,0,0,0,0,0,0,0,,,4,0,0,6.1.7601,24576,0,0
      [2016/01/11 17:31:37.014] WIN-U6NBGJ430CM,,WIN-U6NBGJ430CM,System,,,4,383,,8150272245,,,System,Microsoft Windows Server 2008 R2 Datacenter |C:\Windows|\Device\Harddisk0\Partition1,4789,133310,10628,120,0,384,9158656,5840,8,122880,4,0,0,0,0,141,106694544,0,,,96,0,3461120,6.1.7601,307200,20765,116591184
      [2016/01/11 17:31:37.014] WIN-U6NBGJ430CM,\SystemRoot\System32\smss.exe,WIN-U6NBGJ430CM,smss.exe,,,296,32,,468003,1380,200,smss.exe,Microsoft Windows Server 2008 R2 Datacenter |C:\Windows|\Device\Harddisk0\Partition1,361,7178,588,552,4,600,18313216,1200,11,565248,296,2,11,3,38,12,33310,0,,,2,0,4120576,6.1.7601,1208320,5,20
      [2016/01/11 17:31:37.014] WIN-U6NBGJ430CM,%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,768 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16,WIN-U6NBGJ430CM,csrss.exe,C:\Windows\system32\csrss.exe,,368,672,,41184264,1380,200,csrss.exe,Microsoft Windows Server 2008 R2 Datacenter |C:\Windows|\Device\Harddisk0\Partition1,20077,2371182,105585,2660,360,2812,58736640,35808,13,2723840,368,13,150,15,153,724,809221,0,,,9,17940115,50724864,6.1.7601,5074944,0,0
      ....
      

      Can we switch the command to use /format:list or /format:table for more readable output?

        Attachments

          Activity

            People

            Assignee:
            mpobrien Michael O'Brien
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: