Linux Server configuration details

Gather Linux Details

#!/bin/sh
# gather linux info
#rev 1.3
PATH=/bin:/usr/ucb:/usr/sbin:/usr/bin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/lbin:/etc:/sbin
export PATH
mv /.syscfg /.syscfg.prev 2>/dev/null
touch /.syscfg
chmod 600 /.syscfg
{
{
set -x
uname -n
uname -a
date
df -h
nproc
free -m -o
cat /etc/fstab
fdisk -l
ls -Ci /dev/rmt*
lspci
ipcs -ma | grep acec
/sbin/service --status-all
chkconfig --list
lsmod
rpm -qa
cat /proc/cpuinfo
cat /proc/meminfo
cat /proc/modules
cat /proc/swaps
cat /proc/version
mii-tool -v
netstat -rn
hostname
crontab -l
cat /etc/hosts | grep -v '^#'
cat /etc/resolv.conf
tty
lpstat -t
cat /etc/modules.conf
cat /etc/passwd
cat /etc/group
} |fold -w 128|tee /.syscfg
chmod 600 /.syscfg