So through my day to day system work there has come times where I need to review the major pieces of system hardware, and to do this I needed to run a handful of commands. As you can see this can be very repetitive and as we all know in the IT world anything that is done more than once will and should become automated.
To automate this process I created a simple BASH script which will check OS release, Memory (how many modules you have installed and size) along with CPU sockets and cores, also if you have open managed installed (omreport) it can also get RAID details.
To run this very simple script it made it very easy to access, using a single line on the command line (seen below) you can easily review the system. (depending on permission you may need root access for DMIDECODE)
curl http://flip-edesign.com/scripts/system_info | bash
The Output from this command will look similar to below
-------------------------
| OS Type / Version |
-------------------------
Gentoo Base System release 1.12.11.1
-------------------------
| OS Arch |
-------------------------
i686
-------------------------
| Memory |
-------------------------
3292 MB
-------------
| SWAP |
-------------
0 MB
--------------------------------
| Memory Modules & Empty slots |
--------------------------------
Memory Device
Size: 1024 MB
Memory Device
Size: 1024 MB
Memory Device
Size: 1024 MB
Memory Device
Size: 1024 MB
-------------------------
| Process Sockets |
-------------------------
Processor Information
Socket Designation: Socket M2
-------------------------
| Process Type / Cores |
-------------------------
processor : 0
model name : AMD Phenom(tm) 9600 Quad-Core Processor
processor : 1
model name : AMD Phenom(tm) 9600 Quad-Core Processor
processor : 2
model name : AMD Phenom(tm) 9600 Quad-Core Processor
processor : 3
model name : AMD Phenom(tm) 9600 Quad-Core Processor
-----------------------
| Mounted FS |
-----------------------
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 12G 4.9G 6.2G 45% /
----------------------------
| Mounte Device Partitions |
----------------------------
====== /dev/sda =====
Disk /dev/sda: 150.0 GB, 150038863360 bytes
255 heads, 63 sectors/track, 18241 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x740a740a
Device Boot Start End Blocks Id System
/dev/sda1 1 7664 61561048+ 83 Linux
/dev/sda2 * 7665 16708 72645930 7 HPFS/NTFS
/dev/sda3 16709 18241 12313822+ 5 Extended
/dev/sda5 16709 16713 40131 83 Linux
/dev/sda6 16714 18241 12273628+ 83 Linux

