dmidecode: Getting the serial number of your x86 system

The serial number of your system can be easily found on the bottom of your laptop in most of the systems. However, if you are working with a remote server and need to collect its info things get a little complicated. But fear not, for there is dmidecode to save your day.

From the man page:

dmidecode is a tool for dumping a computer's DMI (some say SMBIOS) table
 contents in a human-readable format. This table contains a description of
 the system's hardware components, as well as other useful pieces of informa‐
 tion such as serial numbers and BIOS revision.(...)

So, give it a try and see what a plethora of information types you can see using a single command.

As for the serial number, issue:

$ sudo dmidecode -s system-serial-number

In my system:

$ sudo dmidecode -s system-serial-number
[sudo] password for dbkreling: 
BR5D81F0N

Cheers!

Create a new user on your system

This is a quick checklist on how to create a user from the command line:
1. useradd -m your_username (add a user called your_username with a home directory)
2. passwd your_username (set a password for your_username)
3. usermod -aG wheel your_username  (to include the user in the sudoers list)
4. su - your_username (to change to the your_username account)
NOTE: sudo usermod -a -G sudo username (to include user ‘username’ in the sudo group)

[iprconfig 8/8] Verifying what is the RAID for your label

To display the name of your disk providing the label you used when you created the RAID, issue:

[root@jupiter1-lp1 ~]# iprconfig -c query-array-label foobar
/dev/sdb

Continue reading “[iprconfig 8/8] Verifying what is the RAID for your label”

[iprconfig 6/8] Showing Specific Disk Information

The show-details command displays different sorts of information about your disks.

iprconfig -c show-details [sdN | sgX]…

If you use the array called sda you will get information like this: Continue reading “[iprconfig 6/8] Showing Specific Disk Information”

[iprconfig 5/8] Creating RAIDs from AFD disks

If you already have your disks formatted as AFD, you can create RAIDs of several levels using ‘raid-create’ and passing the desired level through the ‘-r’ switch:

iprconfig -c raid-create -r <N> [sdA | sgX]…

Continue reading “[iprconfig 5/8] Creating RAIDs from AFD disks”