From 72358b3306d879eb89434324132e3553641a6ba1 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 7 Aug 2020 11:52:17 +0900 Subject: [PATCH] Use sudo to gather netstat/ps results so that we can capture whole infomration. Change-Id: Ibacded7599f26f09e50813c7406728a01365abe7 --- copy_logs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copy_logs.sh b/copy_logs.sh index 88bb7c818..c1d003492 100755 --- a/copy_logs.sh +++ b/copy_logs.sh @@ -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