From 811eb2cddb8d6e5e1419458836ae7addc8d38bfd Mon Sep 17 00:00:00 2001 From: op7ic <3172590+op7ic@users.noreply.github.com> Date: Tue, 18 Jun 2024 11:18:02 +0300 Subject: [PATCH] Update unix_collector.sh --- unix_collector.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/unix_collector.sh b/unix_collector.sh index 74615fd..f86c2d3 100644 --- a/unix_collector.sh +++ b/unix_collector.sh @@ -764,11 +764,20 @@ then cp -R /var/adm/ $OUTPUT_DIR/logs/ 2> /dev/null cp -R /var/log/ $OUTPUT_DIR/logs/ 2> /dev/null cp -R /var/nslog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/nsproflog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/nssynclog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/share/adm/lastlog $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/share/adm/wtmpx $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /system/volatile/utmpx $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/svc/log $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/webui/logs $OUTPUT_DIR/logs/ 2> /dev/null elif [ $PLATFORM = "aix" ] then cp -R /var/adm/ $OUTPUT_DIR/logs/ 2> /dev/null cp -R /var/log/ $OUTPUT_DIR/logs/ 2> /dev/null cp -R /var/nslog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/nsproflog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/nssynclog/ $OUTPUT_DIR/logs/ 2> /dev/null fcstkrpt -a 1> $OUTPUT_DIR/general/fast-fail-log.txt 2> /dev/null errpt -a 1> $OUTPUT_DIR/general/crash-log.txt 2> /dev/null elif [ $PLATFORM = "android" ] @@ -794,16 +803,24 @@ then cp -R /var/log/ $OUTPUT_DIR/logs/ 2> /dev/null cp -R /var/adm/ $OUTPUT_DIR/logs/ 2> /dev/null cp -R /var/nslog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/nsproflog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/nssynclog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/run/log $OUTPUT_DIR/logs/ 2> /dev/null elif [ $PLATFORM = "generic" ] then cp -R /var/log/ $OUTPUT_DIR/logs/ 2> /dev/null cp -R /var/adm/ $OUTPUT_DIR/logs/ 2> /dev/null cp -R /var/nslog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/nsproflog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/nssynclog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/run/log $OUTPUT_DIR/logs/ 2> /dev/null elif [ $PLATFORM = "hpux" ] then cp -R /var/log/ $OUTPUT_DIR/logs/ 2> /dev/null cp -R /var/adm/ $OUTPUT_DIR/logs/ 2> /dev/null cp -R /var/nslog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/nsproflog/ $OUTPUT_DIR/logs/ 2> /dev/null + cp -R /var/nssynclog/ $OUTPUT_DIR/logs/ 2> /dev/null fi echo " ${COL_ENTRY}>${RESET} Copying home dirs"