Server Inventory Bash Script Thoughts...
Hi LQ,
I am writing a bash script to perform pre and post patching collection of server information for the purposes of diagnosing and rolling back anything that may break during a patch. This is going to be used on multiple different server configs most of which are configured in their own proprietary way. I already have a rough draft created that gets most of the info you would think of, rpms installed, fstab, running procs, etc.. I was looking to see if anyone out there had any thoughts or knew of any pre-existing scripts that I could reference to make my life easier. Basically, I'm asking if anyone can give me some input on info that should be collected when during a server inventory run just to make sure I don't forget or overlook something. |
Which distro are you using?
If RedHat/Centos I recommend following commands: List of patches: Code:
[root] # rpm -qa --last For General Configuration Information: Code:
uname -a Code:
sfdisk -l /dev/sda Code:
df -h Code:
for CMD in " |
Thanks for the pointers, I had most of the commands in my script already but you definitely highlighted a few that I didn't think about and will work on implementing.
Thanks again. |
All times are GMT -5. The time now is 05:52 AM. |