Shell Scripting: RHEL server scan - What’s my spec??
by r34per from LinuxQuestions.org on (#53G31)
Hi All,
I'm not sure if this is the right section for this kind of thing so if it's not, I apologise!
I would like to develop a RHEL server scan script which when run will scan the server and produce a output file with the results. So the scan would include stuff like:
disks, pv's, vg's, lv's, cpu, ram, nic's, nfs setup, packages, services, config setup, users, groups, etc
Basically a all in one snapshot of the server spec, after which all the data gets put into a neat file for the user to review.
I have written a bunch of individual scripts for each task over time but it's really messy. At the time I wrote those scripts, I used whatever method was best to get it working. Some have function structures, others have loop structures and a whole variety of others in between.
Now I am looking to try and collate all those scripts into one nicely structured single script. What I'm hoping for is advice and tips from the community on how best I can achieve this.
The distro I'm currently working with is RHEL 7+ but I would like to make the script as universal as I can, so other versions of RHEL and maybe other distro's like Solaris / HPUX.
The script it self is running bash shell.
Is this the right place to post my efforts and ask for help / improvements? Or does anyone know if someone has already written this kind of script I can use as an example?
Cheers :)


I'm not sure if this is the right section for this kind of thing so if it's not, I apologise!
I would like to develop a RHEL server scan script which when run will scan the server and produce a output file with the results. So the scan would include stuff like:
disks, pv's, vg's, lv's, cpu, ram, nic's, nfs setup, packages, services, config setup, users, groups, etc
Basically a all in one snapshot of the server spec, after which all the data gets put into a neat file for the user to review.
I have written a bunch of individual scripts for each task over time but it's really messy. At the time I wrote those scripts, I used whatever method was best to get it working. Some have function structures, others have loop structures and a whole variety of others in between.
Now I am looking to try and collate all those scripts into one nicely structured single script. What I'm hoping for is advice and tips from the community on how best I can achieve this.
The distro I'm currently working with is RHEL 7+ but I would like to make the script as universal as I can, so other versions of RHEL and maybe other distro's like Solaris / HPUX.
The script it self is running bash shell.
Is this the right place to post my efforts and ask for help / improvements? Or does anyone know if someone has already written this kind of script I can use as an example?
Cheers :)