Merge "Use sudo to gather netstat/ps results"

This commit is contained in:
Zuul 2020-08-10 14:35:37 +00:00 committed by Gerrit Code Review
commit 6ea5a19365

View File

@ -219,8 +219,8 @@ df -h > $LOG_DIR/df.txt
free -m > $LOG_DIR/free.txt
lsmod > $LOG_DIR/lsmod.txt
cat /proc/cpuinfo > $LOG_DIR/cpuinfo.txt
ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > $LOG_DIR/ps.txt
netstat -tulpn > $LOG_DIR/netstat.txt
sudo ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > $LOG_DIR/ps.txt
sudo netstat -tulpn > $LOG_DIR/netstat.txt
for table in raw filter nat mangle ; do
echo $table