[root@test scripts]# cat collect_info.sh
#!/bin/bash
hostname > /tmp/sys_infos.log
cat /etc/sysconfig/network >>/tmp/sys_infos.log
cat /etc/sysctl.conf >>/tmp/sys_infos.log
cat /etc/pam.d/login >>/tmp/sys_infos.log
cat /etc/security/limits.conf >>/tmp/sys_infos.log
cat /etc/sysconfig/network-scripts/ifcfg-* >>/tmp/sys_infos.log
cat /etc/sysconfig/network-scripts/route-* >>/tmp/sys_infos.log
cat /etc/redhat-release >>/tmp/sys_infos.log
cat /etc/resolv.conf >>/tmp/sys_infos.log
cat /etc/hosts >>/tmp/sys_infos.log
cat /etc/modprobe.conf >>/tmp/sys_infos.log
cat /etc/fstab >>/tmp/sys_infos.log
cat /etc/login.defs >>/tmp/sys_infos.log
cat /etc/passwd >>/tmp/sys_infos.log
cat /etc/group >>/tmp/sys_infos.log
cat /etc/ntp.conf >>/tmp/sys_infos.log
cat /home/oracle/*/.bash_profile >>/tmp/sys_infos.log
ifconfig >>/tmp/sys_infos.log
route >>/tmp/sys_infos.log
chkconfig --list >>/tmp/sys_infos.log
rpm -qa >>/tmp/sys_infos.log
df -h >>/tmp/sys_infos.log
fdisk -l >>/tmp/sys_infos.log