(file) Return to audit.sh CVS log (file) (dir) Up to [RizwankCVS] / all_info_tools

 1 rizwank 1.2 #!/bin/sh
 2             
 3             #Audit Script - grabs useful info and packs it away
 4             #(c) Rizwan Kassim 2005
 5             
 6             mkdir /tmp/audit_ait
 7             cd /tmp/audit_ait
 8             touch $HOSTNAME.overall.log
 9             echo "########## HOSTNAME, uname, w, whoami, id" >> $HOSTNAME.overall.log
10             echo $HOSTNAME >> $HOSTNAME.overall.log
11             uname -a >> $HOSTNAME.overall.log
12             w >> $HOSTNAME.overall.log
13             id >> $HOSTNAME.overall.log
14             echo "######### df mounts"
15             df >> $HOSTNAME.overall.log
16             touch $HOSTNAME.network.log
17             echo "######### Network settings - netstat,services,chkconfig" >> $HOSTNAME.network.log
18             
19             
20             ::name -a > info.log

Rizwan Kassim
Powered by
ViewCVS 0.9.2