Article 53G31 Shell Scripting: RHEL server scan - What’s my spec??

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 :)latest?d=yIl2AUoC8zA latest?i=XBSXRFuCVkc:2WA_3RlsN30:F7zBnMy latest?i=XBSXRFuCVkc:2WA_3RlsN30:V_sGLiP latest?d=qj6IDK7rITs latest?i=XBSXRFuCVkc:2WA_3RlsN30:gIN9vFwXBSXRFuCVkc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments