Skip to content

Commit

Permalink
Merge pull request #11437 from microsoft/user/cfetoiu/add_nlm
Browse files Browse the repository at this point in the history
collect-networking-logs.ps1: collect Windows NLM state and Linux ip rules
  • Loading branch information
CatalinFetoiu authored Apr 8, 2024
2 parents e0856aa + c23f957 commit c5439eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions diagnostics/collect-networking-logs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ function Collect-WindowsNetworkState {
}
catch {}

try
{
& netsh nlm query all $folder/nlmquery_"$ReproStep".log
}
catch {}

try
{
Get-NetIPConfiguration -All -Detailed | Out-File -FilePath "$folder/Get-NetIPConfiguration_$ReproStep.log" -Append
Expand Down
1 change: 1 addition & 0 deletions diagnostics/networking.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ip a
ip route show table all
ip neighbor
ip link
ip rule show

# We only print whether the HTTP proxy variables are set or not, as their content might contain secrets such as usernames, passwords.
if [ -z ${http_proxy+x} ]; then echo "http_proxy is unset"; else echo "http_proxy is set"; fi
Expand Down

0 comments on commit c5439eb

Please sign in to comment.