Posts

 #!/bin/bash echo "This script is used to collect preoutput from LINUX systems for any type of activity" #Preoutput collection script version 1.0" OS=$(cat /etc/*release) OUTPUT=/tmp/preoutput echo "The following system outputs has taken on $(date)" > $OUTPUT echo "System Info:" $HOSTNAME >> $OUTPUT echo "OS Version" $OS preoutput_fs () { OUTPUT=/tmp/preoutput { echo "" echo "Collecting Mounted File System Details (df -h)" echo "***********************************************" df -h echo "" echo "Total number of Mounted File Systems (df -h | wc -l)" echo "***********************************************" df -h | wc -l echo "" echo "Mounted File Systems with mount properties (mount)" echo "***********************************************" mount echo "NFS/NAS File system details" echo "***********************************************&