Skip to main content
Pure1 Support Portal

Troubleshooting: Collect Windows Server Logs and System Information

Overview

The followings information is available to help end users quickly gather Windows Server related log files for analysis by Pure Storage Support.

The following Instructions are available for manually collecting logs to help aid in troubleshooting. When gathering log files manually, please make sure to include as much of the information below as possible.

Some of the commands require PowerShell to be run in Administrator mode. Please open a PowerShell session in Administrator mode before gathering the log information.

When gathering the Event Logs, there will also be a folder generated called "LocaleMetaData". Be sure to send the evtx files along with the LocaleMetaData folder. The LocaleMetaData folder includes the Display Information.

 

General Windows Information

The following information should be gathered for all Windows Server setups.

System Information

msinfo32 /report c:\${env:computername}_msinfo.txt

General Storage Information

fsutil behavior query DisableDeleteNotify | out-file c:\${env:computername}_fsutil_behavior_DisableDeleteNotify.txt

Hotfixes

Get-WmiObject -Class Win32_QuickFixEngineering | Select-Object -Property Description, HotFixID, InstalledOn | Format-table -Wrap -AutoSize  | out-file  c:\${env:computername}_Win32_QuickFixEngineering.txt
Get-HotFix | Format-table -Wrap -AutoSize | Out-File c:\${env:computername}_Get-Hotfix.txt

MPIO and MSDSM details

Get-ItemProperty "HKLM:\System\CurrentControlSet\Services\MSDSM\Parameters" | out-file c:\${env:computername}_Get-ItemProperty_msdsm.txt
Get-MSDSMGlobalDefaultLoadBalancePolicy | out-file c:\${env:computername}_Get-ItemProperty_msdsm_load_balance_policy.txt
Get-ItemProperty "HKLM:\System\CurrentControlSet\Services\mpio\Parameters" | out-file c:\${env:computername}_Get-ItemProperty_mpio.txt
Get-ItemProperty "HKLM:\System\CurrentControlSet\Services\Disk" | out-file c:\${env:computername}_Get-ItemProperty_disk.txt
mpclaim -s -d | out-file c:\${env:computername}_mpclaim_-s_-d.txt
mpclaim -v | out-file c:\${env:computername}_mpclaim_-v.txt
 "SAN" | diskpart | Out-File c:\${env:computername}_SAN_policy.txt

FC HBAs

winrm e wmi/root/wmi/MSFC_FCAdapterHBAAttributes > c:\${env:computername}_MSFC_FCAdapterHBAAttributes.txt
winrm e wmi/root/wmi/MSFC_FibrePortHBAAttributes > c:\${env:computername}_MSFC_FibrePortHBAAttributes.txt
Get-ItemProperty "HKLM:\System\CurrentControlSet\Services\lpxnds\Parameters\Device\NumberOfRequests"  | out-file c:\${env:computername}_lpxnds_NumberOfRequests.txt
Get-ItemProperty "HKLM:\System\CurrentControlSet\Services\ql2300\Parameters\Device" | out-file c:\${env:computername}_ql2300_Parameters.txt

Event Logs

wevtutil epl System c:\${env:computername}_systemlog.evtx
wevtutil epl Setup c:\${env:computername}_setuplog.evtx
wevtutil epl Security c:\${env:computername}_securitylog.evtx
wevtutil epl Application c:\${env:computername}_applicationlog.evtx

wevtutil al c:\${env:computername}_systemlog.evtx
wevtutil al c:\${env:computername}_setuplog.evtx
wevtutil al c:\${env:computername}_securitylog.evtx
wevtutil al c:\${env:computername}_applicationlog.evtx

Windows 2012 and Above

General Storage Configuration

Get-PhysicalDisk | select * | out-file c:\${env:computername}_Get-PhysicalDisk.txt
Get-Disk | select * | out-file c:\${env:computername}_Get-Disk.txt
Get-Volume | select * | out-file c:\${env:computername}_Get-Volume.txt
Get-Partition | select * | out-file c:\${env:computername}_Get-Partition.txt

NICs

Get-NetAdapter | Format-Table Name,ifIndex,Status,MacAddress,LinkSpeed,InterfaceDescription  -AutoSize | Out-File  c:\${env:computername}_Get-NetAdapter.txt
Get-NetAdapterAdvancedProperty  | ft DisplayName, DisplayValue, ValidDisplayValues | out-file c:\${env:computername}_Get-NetAdapterAdvancedProperty.txt -width 160

MPIO

Get-MPIOSetting | out-file c:\${env:computername}_Get-MPIOSetting.txt

Windows 2008R2

General Storage Configuration

Get-CimInstance -Class Win32_DiskDrive | Where-Object { $_.Model -like "PURE*" }| Format-Table -Autosize

NICs

netsh interface ipv4 show interface | Out-File c:\${env:computername}_netsh_ipv4_show_interface.txt
netsh interface ipv4 show config | Out-File c:\${env:computername}_netsh_ipv4_show_config.txt

 

Windows Failover Cluster Information

Please gather the following information if the Windows Server is configured for Failover Clustering.

Windows 2012 and Above

Cluster Log and Cluster Shared Volumes

Get-ClusterLog -Destination c:\
Get-ClusterSharedVolume | select * | out-file c:\${env:computername}_Get-ClusterSharedVolume.txt
Get-ClusterSharedVolumeState | select * | out-file c:\${env:computername}_Get-ClusterSharedVolumeState.txt

Windows 2008R2

Cluster Log

cluster log /g /Copy:c:\${env:computername}_ClusterLog.txt