Find System Specs in Terminal

I was presented with the job of "specing" out our ESX servers and documenting my findings. I figured the easiest way to do that would be to SSH into the box and get the specs that way. I stumbled up a site that gave a lot of useful commands. Here are the commands I used:

Graphics Card
lspci | grep VGA - dislpays graphic card model

Ethernet
lspci | grep Ethernet - displays the ethernet card model / controllers
ifconfig [interface] - displays IP address, MAC, and various other information

Kernel and System Info

cat /etc/issue - current distrobution and kernel version
uname -a - kernel information

Processor
cat /proc/cpuinfo - displays processors, speed, flags, and various other information
top (then press C) - realtime processes information by CPU usage

Memory
cat /proc/meminfo - displays RAM, swap, and amount being used
free -m - displays RAM and swap information in an easier to read format
top (then press M) - displays realtime processes by RAM usage

Hard Drive
df -h - displays total space, mount points, free space, percentages, and various other information
fdisk -l - displays all attached drives and their ID's along with block information

Various
uptime - displays the system uptime
w - displays current logged in users and activity

0 comments: