Hardware Troubleshooting Flashcards

1
Q

How list hardware seen by computer?

A
  • lspci (list PCI devices)
  • lsblk (list block devices - doesn’t include ram devices)
  • lscpu (lists CPU info)
  • lsscsi (lists SCSI info)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How check status of daemons running?

A

systemctl status

# systemctl start [name.service]
 # systemctl stop [name.service] 
# systemctl restart [name.service] 
# systemctl reload [name.service] 
$ systemctl status [name.service]
 # systemctl is-active [name.service] 
$ systemctl list-units --type service --
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where look for error messages?

A

-dmesg (display message/driver message)

  dmesg displays messages from kernel ring buffer. Can view messages about specific devices like:
#dmesg | grep -i memory
# dmesg | grep -i dma
# dmesg | grep -i usb
# dmesg | grep -i tty
Thedmesgmessages are grouped into categories called “facilities.” The list of facilities is:

kern: Kernel messages.
user: User-level messages.
mail: Mail system.
daemon: System daemons.
auth: Security/authorization messages.
syslog: Internal syslogd messages.
lpr: Line printer subsystem.
news: Network news subsystem.

We can askdmesgto filter its output to only show messages in a specific facility. To do so, we must use the-f(facility) option:

sudo dmesg -f daemon

-other logs in /var/log

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

How find IP/Network status?

A
  • ifconfig
  • ip addr show
  • ip link
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How look at network connectivity issues?

A
  • ping
  • traceroute
  • nslookup
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How test RAM?

A
  • memtest86+ (can be installed using yum)

- memtester

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

How stress test CPU/RAM?

A

-“stress” (yum instal from EPEL repo)

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

What is OpenBMC?

A

BMC is Baseboard Management Controller. For context, a BMC is a specialized controller embedded in servers. It often comes in the form of a system-on-chip (SoC), with its own CPU, memory, and storage and lots of IO. A BMC connects to sensors to read environmental conditions and to fans to control temperature. It also provides other system management functions, including remote power control, serial over LAN, and monitoring and error logging of the server host CPU and memory.

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

A utility to check memory controller error detection

A
  • edac-util - The default edac-util report is generated when the program is run without any options. If there are no errors logged by EDAC, this report will display “No errors to report.” to stdout. Otherwise, error counts for each MC, csrow, channel combination with attributed errors are displayed, along with corresponding DIMM labels, if these labels have been registered in sysfs.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is IPMI?

A

Intelligent Platform Management Interface. Send to work on top of BMC built into motherboards.

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

how find make/model of storage drives?

A

First, you need the device names of your disks, for this you can use df or cat /proc/partitions:

  • hdparm -i (device_name) (i.e /dev/sda)
  • lshw -class disk
  • smartctl -i /dev/sda
  • hwinfo –disk
  • ls /dev/disk/by-id
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how check network card/device status?

A
  • ipconfig
  • up link
  • cat /proc/net/dev
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

how find make/model of NIC?

A
  • lspci | egrep -i –color ‘network|ethernet’
  • lshw -class network
    (other “class” options for lshw:
    address
    bridge
    bus
    communication
    disk
    display
    generic
    input
    memory
    multimedia
    network
    power
    printer
    processor
    storage
    system
    tape
    volume
    )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly