Merge "Switching netstat to ss in report"
This commit is contained in:
commit
cfbc30666b
@ -46,8 +46,8 @@ else
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
dmesg &> ${LOG_LOCATION}/dmesg.log
|
dmesg &> ${LOG_LOCATION}/dmesg.log
|
||||||
# NOTE(TheJulia): Netstat exits with error code 5 when --version is used.
|
# NOTE(ebbex): Switching to ss, but leaving a copy log as netstat until folks get used to ss
|
||||||
sudo netstat -apn &> ${LOG_LOCATION}/netstat.log
|
sudo ss -apn | tee ${LOG_LOCATION}/netstat.log &> ${LOG_LOCATION}/ss.log
|
||||||
if $(sudo iptables --version &>/dev/null); then
|
if $(sudo iptables --version &>/dev/null); then
|
||||||
iptables_dir="${LOG_LOCATION}/iptables"
|
iptables_dir="${LOG_LOCATION}/iptables"
|
||||||
mkdir ${iptables_dir}
|
mkdir ${iptables_dir}
|
||||||
|
Loading…
Reference in New Issue
Block a user