1
1)-Sysinfo-:
Server Release info
cat /etc/enterprise-release
cat /etc/redhat-release
lsb_release -a
cat /proc/version
Server type
Dmidecode
Hardware Info
lspci
lsusb
lshal
Note: hal = hardware abstraction layer
Operating System
uname –a
Memory
cat /proc/meminfo (detailed)
free -om
cat /proc/slabinfo
CPU (type, number, etc)
cat /proc/cpuinfo (detailed)
Disk Drives
fdisk -l
sfdisk -l (advanced server)
parted <device> print
partprobe -s <device>
smartctl -a <device>
Kernel File and associated directories
/boot/initrd.?????.img
/boot/vmlinuz
Kernel 32 or 64
uname -a
uname -m
getconf -a |grep -i 'long_bit'
cat /proc/version
Display Firmware
2
boot into the BIOS (normally F2 or F12)
Display IRQ, IO ports and DMA
/proc/interrupts
/proc/ioports
/proc/dma
GUI admin tool
linuxconf
2)-Memory and Swap-:
Memory
cat /proc/meminfo (detailed)
free –om
page size (memory)
/usr/bin/getconf -a| egrep -i 'pagesize|page_size'
display swap
cat /proc/swaps (detailed)
swapon –s
adding swap
device:
create partition with fdisk (type 82)
file(create 50MB swap file):
dd if=/dev/zero of=/var/swapfile bs=1024 count=50000
mkswap <device>|<file>
swapon <device>|<file>
update /etc/fstab
removing swap
swapoff <device>|<file>
Remove device or file as normal