Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 897 Bytes

Troubleshooting.wiki

File metadata and controls

44 lines (32 loc) · 897 Bytes

Table of Contents

Troubleshooting Course

General, constant monitoring

sar - how to enable?

IO monitoring

sudo iotop iostat -xt 1

Top for a given process

top -p

Top for a given process + associated theads attached

top -Hp

list processes on any shell

ps --user <username></username>

What is a Process using

pmap

What files a PID has open

lsof -p

Info about Hardware

lshw

Info about Hardware for a group only

lshw -C multimedia / storage ...

Info about PCI-attached Hardware

lspci

Network, release and renew DHCP lease

dhclient -r eth0 dhclient eth0

Network, traceroute on steroids

mtr www.google.com mtr -z www.google.com #this shows the AS numbers and check who belong together (e.g.: several routers belonging to your ISP)

Networking, Sockets open

netstat -tulpn ss -natp sudo lsof -iTCP -sTCP:ESTABLISHED