Troubleshooting Flashcards

1
Q

Where would you go to start looking at config data with regards to performance issues with CPU, memory and other hardware?

A

/proc
Holds data on kernel, configs and processes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What information can you get with dmidecode

A

Just about every system spec like bios, sys, baseboard, chassis, processor, memory, cache etc
Use -t to specify a section

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where would you find kernal modules?

A

/lib/modules some distros also use /usr/lib/modules and hard link it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Where might you find module config files?

A

/etc/modules.conf on older machines
Otherwise try:
/etc/modprobe.d
/etc/modules-load.d
/usr/lib/modprobe.d
/run/modprobe.d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where would you look for potential kernal module errors

A

dmesg or /var/log/dmesg

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why use modprobe over insmod

A

Modprobe only needs the module name (not the absolute path) and it references the ‘modules.dep’ file for dependencies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does depmod do?

A

Scans the system and determines and required modules and dependencies then updates them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Tools to find issues with network adapters

A

ethtool -S ADAPTER
ip -s link show ADAPT
netstat -i ADAPT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Commands to check for latency and saturation issues

A

iperf, iperf3
mtr
nc
ss -s
tracepath

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How would you use tshark to analyse an interface for 10 packets

A

sudo tshark -i INTERFACE -c 10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to setup an iperf server to listen for 120 seconds

A

Allow port 5001 on firewall
Then
iperf -s -t 120

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Setup iperf as a client for a throughput test

A

iperf -c IP -b kb -d -P 5 -e -i 10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How to check your routing table?

A

ip route show

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to view ARP and NDisc tables

A

ip neigh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does iostat do?

A

Gives performance statistics showing CPU > disk wait times.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

useful iostat switches

A

-y do not include “since booted “
-N display device mapper names
-z ignore devices with no activity
-p DEV only show for this DEV

17
Q

Use iostat with appropriate trouble shooting options to show just two sets statistics 5 seconds apart

A

iostat -yNz 5 2

18
Q

What tool to use to check CPU usage

A

uptime

19
Q

How might you check for a missing storage device?

A

lsblk
Or lspci -M

20
Q

How would you check for a missing volume?

A

Try a pvscan

21
Q

Part of a logical volume group has failed and displayed a message as such in pvscan. What tools might you need to use next

A

Replace with ‘pvcreate’
Restore group metadata with ‘vgcfgrestore’
Recover the group with ‘vgscan’
Then activate with ‘vgchange’

22
Q

What utility might you use to find data on your systems memory, processor, NIC, USB controller, disks etc

A

lshw
—short for nice formatted table

—businfo for associated data with SCSI,USB,IDE and PCI

23
Q

What device files represent Com (serial) ports

A

/dev/ttyS#