Cut the script below and save as ezdocrhlinux
#!/bin/bash # # Simple script to provide documentation of Redhat Linux System # using standard tools # v0.01 # T Evans # # See how we were called. case "$1" in help | HELP | Help | -h | -?) echo "Script to produce documentation of Red hat Linux system" echo "using standard tools" echo echo "Out put is to the standard output device (screen) and can be" echo "re-directed to a file" echo exit 1 ;; *) # esac echo "System Documentation" echo "====================" echo date echo uname -n echo echo "Hardware information, OS Configuration, and setup details" echo "---------------------------------------------------------" echo echo "Disk info:" echo df echo # fdisk -l echo echo "Swap info:" echo swapon -s echo echo "Mount information:" echo cat /etc/fstab echo echo "Network info:" echo ifconfig -a echo echo "uname output:" uname -a echo -n "machine (hardware) type: " uname -m echo -n "processor: " uname -p echo -n "network node hostname: " uname -n echo -n "operating system: " uname -s echo -n "release: " uname -r echo -n "version: " uname -v echo echo "Environment:" env | grep "LANG" echo echo "Hardware configuration:" echo cat /etc/sysconfig/hwconf echo echo "Clock:" echo cat /etc/sysconfig/clock echo echo "keyboard:" echo cat /etc/sysconfig/keyboard echo echo "mouse:" echo cat /etc/sysconfig/mouse echo echo "/etc/lilo.conf file:" echo cat /etc/lilo.conf echo echo echo "Packages" echo "--------" echo rpm -qa echo echo "Appendix" echo "--------" echo echo "The above information was generated by the following script:" cat $0 echo "--------------------------------------------------" echo echo "End of report." exit 0
Valid XHTML 1.0!