Skip to content

Commit

Permalink
Update unix_collector.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
op7ic committed Jun 18, 2024
1 parent fa84f52 commit 811eb2c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions unix_collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand All @@ -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"
Expand Down

0 comments on commit 811eb2c

Please sign in to comment.