From 4a17e35adc42b1c2841b41f6bc5822bf5053c8fc Mon Sep 17 00:00:00 2001 From: Erik Berg Date: Wed, 12 Oct 2022 10:27:23 +0200 Subject: [PATCH] Switching netstat to ss in report Probably should have happened a long time ago [1]. netstat doesn't come out-of-the-box with some distributions these days. [1] https://lwn.net/Articles/710533/ Change-Id: Idcd2099cca715837a3ad9bd595fa8f08531ef863 --- scripts/collect-test-info.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/collect-test-info.sh b/scripts/collect-test-info.sh index 4ff434e3c..21c2fa2ca 100755 --- a/scripts/collect-test-info.sh +++ b/scripts/collect-test-info.sh @@ -46,8 +46,8 @@ else done fi dmesg &> ${LOG_LOCATION}/dmesg.log -# NOTE(TheJulia): Netstat exits with error code 5 when --version is used. -sudo netstat -apn &> ${LOG_LOCATION}/netstat.log +# NOTE(ebbex): Switching to ss, but leaving a copy log as netstat until folks get used to ss +sudo ss -apn | tee ${LOG_LOCATION}/netstat.log &> ${LOG_LOCATION}/ss.log if $(sudo iptables --version &>/dev/null); then iptables_dir="${LOG_LOCATION}/iptables" mkdir ${iptables_dir}