Perhaps this can be of some help...It can be modified to add rc.net, and maybe other DNS stuff.......or special files...etc........vmtune, schedtune info etc....
Hope it helps.?
--------------------
#!/bin/ksh
# saveyosys.sh # This is a script that creates important input
# for your system in case of a major disaster
# It should be run periodically, whenever a
# change is made to the system, or new equipment
# added. The output should be printed out and
# saved offsite and on site.
# It is suggested that you have a mksysb, backups
# and bootable disks or install media in addition
# to this script output. We do not guarantee
# this script will give you everything you
# will need in the event of a disaster.
# It is a tool to assist you in gathering needed
# data and information. Hope it helps.
dat=`date +%m%d%y`
exec > saveyosys.$dat
echo `date`
echo `hostname` ; echo "command: hostname"
echo `ifconfig en0` ; echo "command: ifconfig en?"
echo `ifconfig et0`
echo "command oslevel"
echo `oslevel`
echo "----------------------"
echo "maintenance level"
instfix -i | grep ML
echo "------------------------"
echo "kernel running"
echo `bootinfo -K`
echo "----------------------"
echo "paging space currently on system command: lsps -a"
lsps -a
echo "---------------------"
echo "df sizes"
echo `df -k`
echo "----------"
echo "mount command"
echo `mount`
echo "-------"
echo "Physical volume ids command: ipl_varyon -i"
ipl_varyon -i
echo "------------------"
echo "Volume groups"
lsvg
echo "status of volume groups command: lsvg volumegrp"
for VG in `lsvg`
do
lsvg $VG
echo ""
echo "Physical volumes in $VG command: lsvg -p volumegrp "
lsvg -p $VG
echo "------------------"
echo "Logical Volumes and filesystems in $VG command: lsvg -l vg"
echo "-------------------"
lsvg -l $VG
done
echo "----------------------"
echo "Physical Volume command: lspv | awk print 1 "
for PV in `lspv | awk '{print $1}'`
do
echo "---------------------"
echo "Physical status of $PV command: lspv phyical volume"
lspv $PV
echo ""
echo "LV details on $PV command: lspv -p physical volume"
lspv -p $PV
done
echo "-----------------"
echo "Filesystems"
lsfs
echo "---------------------"
echo "details"
grep -v "#" /etc/filesystems
echo "--------------------"
echo "List devices"
echo "lsattr -F attribute value -l device"
for DEVICE in `lsdev -C | grep -v "Logical volume"| grep -v "Volume group" | awk '{print $1}'`
do
echo "$DEVICE"
lsattr -F "description attribute value" -l $DEVICE
echo ""
done
echo "-------------------"
echo " inittab file"
grep -v "#" /etc/inittab
echo "---------------------"
echo " printer file"
grep -v "#" /etc/qconfig
echo "-------------------"
echo "passwords"
grep -v "#" /etc/passwd
echo "hosts"
grep -v "#" /etc/hosts
echo "--------------------"
echo "services"
grep -v "#" /etc/services
echo "-----------------------"
echo "scsi devices "
lsdev -Cs scsi
echo "---------------------- "
echo " no settings"
no -a
echo "---------------------"
echo "lsattr inet0"
lsattr -El inet0
echo "------------"
echo " netstat information"
netstat -v
echo "--------------"
-----------------------------------------------------
of course chmod 755 and chown root.......whatever..........