From 35d760c3cc7e4cc4b5f71e29f7b31649061315f6 Mon Sep 17 00:00:00 2001 From: Keith Schincke Date: Thu, 3 Nov 2016 08:21:13 -0400 Subject: [PATCH] Save list of port open and listing ports. This patch saves the output of netstat -tulpn to netstat.txt in LOG_DIR Change-Id: I05e0194033e77efc64ab17ff189ea3abf4173a14 --- copy_logs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/copy_logs.sh b/copy_logs.sh index 8cd8a70f9..cc232b2a0 100755 --- a/copy_logs.sh +++ b/copy_logs.sh @@ -184,6 +184,7 @@ 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 # end of log capture set -e