azure-container-networking/debug/windows/npm
Hunter Gregory bfcf2733ae
tool: [WIN-NPM] minor updates to windows script, and new linux script (#1685)
* minor fixes to win-debug.ps1 and same script for linux

* delete previous results when rerunning pod_exec.ps1

* fix filename that we copy from
2022-11-04 10:52:48 -07:00
..
README.md tool: [WIN-NPM] minor updates to windows script, and new linux script (#1685) 2022-11-04 10:52:48 -07:00
pod_exec.ps1 tool: [WIN-NPM] minor updates to windows script, and new linux script (#1685) 2022-11-04 10:52:48 -07:00
win-debug.ps1 tool: [WIN-NPM] minor updates to windows script, and new linux script (#1685) 2022-11-04 10:52:48 -07:00
win-debug.sh tool: [WIN-NPM] minor updates to windows script, and new linux script (#1685) 2022-11-04 10:52:48 -07:00

README.md

Introduction

This script will collect Windows NPM logs and the HNS and VFP state of the cluster and write them to a new local folder.

How to collect logs

In a PowerShell terminal, navigate to the azure-container-networking/debug/windows/npm folder. Make sure your kubectl is configured to point to the cluster you want to collect logs from (az aks get-credentials -g <resource-group> -n <cluster-name>)

Windows

Run .\win-debug.ps1. The script will create a new folder called logs_DATE containing the results.

Linux

Run .\win-debug.sh. The script will create a new folder called logs_DATE containing the results.

Note: You may not be able to unzip logs.zip in Linux since it was compressed in Windows.