Skip to content

Instantly share code, notes, and snippets.

@mayhems1
Last active September 24, 2021 16:06
Show Gist options
  • Save mayhems1/61c77f0e7cd9ce81515d508866c13cdb to your computer and use it in GitHub Desktop.
Save mayhems1/61c77f0e7cd9ce81515d508866c13cdb to your computer and use it in GitHub Desktop.
Hardware info

Info about hardware in Linux

Network

lshw -class network
lshw -class network -short
ethtool eno1
cat /sys/class/net/eno1/carrier
cat /sys/class/net/eno1/operstate 
lspci | egrep -i --color 'network|ethernet'
cat /proc/net/dev

Info of some errors in hardware

0xff Processor IERR - Assertion

Question I got the error message “IERR Asserted” when I boot up my motherboard X9DRW-IF. I already updated my BIOS and IPMI firmware rev. What is the root cause?

Answer IERR is a Processor Internal Error, a signal that indicates a Processor unrecoverable error or even a non-CPU event, such as a System BUS interruption or a memory can start this signal. On an Intel® Server Board, a Processor IERR can be confirmed or discarded by running a CPU Retest from the BIOS (Basic Input Output System) Setup Utility. In some cases a system restart can also eliminate an IERR but if the problem persists please try to boot up the system with one processor at the time, test another processor if possible and remove and reinstall the memory. The IERR Filtering Algorithm helps to determine if the IERR signal came from a false CPU internal error or from another hardware source; preventing unnecessary processor replacements and at the same time helps to isolate IERR events.

https://www.supermicro.com/support/faqs/faq.cfm?faq=14686

https://www.intel.com/content/www/us/en/support/articles/000006043/server-products/server-boards.html

Info about how to work with Megacli

Get logs

megacli  -AdpEventLog -GetEvents -f events.log -aALL

Blinking disks

# Example: MegaCli -PdLocate -start -physdrv[237:2] -a0
# Example: MegaCli -PdLocate -stop -physdrv[237:2] -a0

# Start blinking
megacli -PdLocate -start -physdrv[0:21] -a0

# Stop blinking
megacli -PdLocate -stop -physdrv[0:21] -a0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment