Use sudo to gather netstat/ps results

so that we can capture whole infomration.

Change-Id: Ibacded7599f26f09e50813c7406728a01365abe7
This commit is contained in:
Takashi Kajinami 2020-08-07 11:52:17 +09:00
parent fc3f5bfbd3
commit 72358b3306
1 changed files with 2 additions and 2 deletions

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