microsoft/SDN

Offline mode for collectlogs.ps1

rleap-m opened this issue · 0 comments

Feature request - the Microsoft/SDN/blob/master/Kubernetes/windows/debug/collectlogs.ps1 tool must first download several support tools (and even some of the downloaded tools download other tools I think - not 100% on that) from the internet before running. Nodes in a cluster do not always have access (air-gapped) to these remote tools so a helpful feature would be to add parameters to the collectlogs.ps1 script that allow you to create an offline package, then copy those tools to the server and lastly reference those tools in lieu of pulling them from them internet to collect the logs as per usual.

# From internet connected system
.\collectlogs.ps1 -DownloadOnly -OfflinePackagePath <path-to-download-tools>

# From Air-gapped Node
.\collectlogs.ps1 -Offline -OfflinePackagePath <path-to-downloaded-tools>