Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions Kubernetes/windows/debug/collectlogs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,6 @@ Get-hnspolicylist | Convertto-json -Depth 20 > policy.txt
vfpctrl.exe /list-vmswitch-port > ports.txt
powershell $BaseDir\dumpVfpPolicies.ps1 -switchName $Network -outfile vfpOutput.txt

# Loop through ports.txt file
$ports = @()
foreach($line in (Get-Content ports.txt)){
$nline = $line.Split(":")
if ($nline[0].contains('Port name'))
{
$ports += $nline[1]
}
}

# For each port, we want to call get-port-counter
foreach($port in $ports)
{
"Get-port-counter for port: $port" >> ports.txt
vfpctrl /port $port.trim() /get-port-counter >> ports.txt
}
ipconfig /allcompartments /all > ip.txt
Get-NetIPAddress -IncludeAllCompartments >> ip.txt
Get-NetIPInterface -IncludeAllCompartments >> ip.txt
Expand Down
1 change: 1 addition & 0 deletions Kubernetes/windows/debug/dumpVfpPolicies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ foreach ($port in $ports) {
& $vfpCtrlExe /list-rule /port $portGuid | Out-File $outfile -Encoding ascii -Append
& $vfpCtrlExe /port $portGuid /get-port-state | Out-File $outfile -Encoding ascii -Append
& $vfpCtrlExe /port $portGuid /list-nat-range | Out-File $outfile -Encoding ascii -Append
& $vfpCtrlExe /port $portGuid /get-port-counter | Out-File $outfile -Encoding ascii -Append
}

& $vfpCtrlExe /switch $ports[0].'Switch Name' /get-switch-forwarding-settings > vswitchForwarding.txt