Created
September 29, 2013 20:05
-
-
Save RobinMcCorkell/6756045 to your computer and use it in GitHub Desktop.
Hardware info commands for Karoshi Client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# CPU | |
#dmidecode -t processor | |
declare -A cpu=( | |
[cores]= | |
[frequency]= | |
[model]= | |
[vendor]= | |
) | |
# Memory | |
#dmidecode -t memory | |
declare -A memory=( | |
[total]= | |
[frequency]= | |
[modules]= | |
[max_modules]= | |
[max capacity]= | |
) | |
# Motherboard | |
#dmidecode -t 2 | |
declare -A motherboard=( | |
[manufacturer]= | |
[model]= | |
[serial]= | |
) | |
# BIOS | |
#dmidecode -t bios | |
declare -A bios=( | |
[vendor]= | |
[version]= | |
[date]= | |
) | |
# Storage | |
#-> /sys/class/block/sd?/ | |
#-> /sys/class/block/sr0/ | |
declare -A storage=( | |
#root drive | |
[root_vendor]= | |
[root_model]= | |
[root_size]= | |
#additional drives | |
[add1_vendor]= | |
[add1_model]= | |
[add1_size]= | |
[add2_vendor]= | |
[add2_model]= | |
[add2_size]= | |
[add3_vendor]= | |
[add3_model]= | |
[add3_size]= | |
#optical drive | |
[optical]= | |
) | |
# System | |
#uname -m | |
#lspci | grep VGA | |
#lspci | grep Audio | |
declare -A system=( | |
[arch]= | |
[graphics]= | |
[audio]= | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment