0% found this document useful (0 votes)
54 views

Server Release Info: 1) - Sysinfo

This document provides commands to gather system information on a Linux server, including the operating system release, hardware details, memory and swap configuration, and kernel details. To get operating system release information, it recommends commands like cat /etc/enterprise-release, cat /etc/redhat-release, and lsb_release -a. For hardware details, it lists commands like lspci, lsusb, lshal, dmidecode, and querying /proc files. It also provides commands to view memory and swap configuration, add new swap partitions or files, and remove swap devices.

Uploaded by

femi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

Server Release Info: 1) - Sysinfo

This document provides commands to gather system information on a Linux server, including the operating system release, hardware details, memory and swap configuration, and kernel details. To get operating system release information, it recommends commands like cat /etc/enterprise-release, cat /etc/redhat-release, and lsb_release -a. For hardware details, it lists commands like lspci, lsusb, lshal, dmidecode, and querying /proc files. It also provides commands to view memory and swap configuration, add new swap partitions or files, and remove swap devices.

Uploaded by

femi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like