User Tools

Site Tools


hardware

Check for Hyper threading

So if Hyper-threading is enabled, the count of Logical Processors would be double the number of CPU cores that you got on the server. To find the number of CPU cores, you either use “dmidecode -t processor” command or check the number of Physical IDs from ”/proc/cpuinfo” output.

dmidecode -t processor | grep HTT

1. number of physical processors :

# cat /proc/cpuinfo | grep "physical id" | sort -n | uniq | wc -l

2. number of cores :

# cat /proc/cpuinfo | grep "cpu cores" | uniq

3. find if ht enabled

# cat /proc/cpuinfo | grep "ht" | uniq

if u see "ht" in flags then ht is enabled
cat /proc/cpuinfo

Dell memory check chassis via omreport

omreport chassis memory
omreport storage battery
omreport storage enclosure
omreport storage controller
########################### < Hardware Alerts > ###########################
	
DELL HARDWARE ALERTS
	omconfig system esmlog action=clear
	omreport system alertlog | tac
	omreport storage vdisk controller=0
	omreport storage pdisk controller=0
	omreport storage pdisk controller=0 | egrep 'Status|Name|State|Failure|Progress|Capacity|^$|Dedicated'
	omreport storage vdisk controller=0 | egrep '^Status|^Layout|^Size|^Read|^Write|^$'

HP HARDWARE ALERTS - DISK
	hpacucli ctrl all show config detail | egrep 'Array|Logical|physicald|Disk|Fault|^\s+Size|^\s+Status|Rotation|Firmware'

SCAN FOR NEW DRIVES
	echo "- - -" > /sys/class/scsi_host/host0/scan
<Hardware alerts>

cat /proc/cpuinfo

omreport chassis biossetup | grep -A 2 'HyperThreading'

omconfig system esmlog action=clear

omreport system alertlog | tac

omreport storage vdisk controller=0
omreport storage pdisk controller=0

omreport storage pdisk controller=0 | egrep 'Status|Name|State|Failure|Progress|Capacity|^$|Dedicated'
omreport storage vdisk controller=0 | egrep '^Status|^Layout|^Size|^Read|^Write|^$'

hpacucli ctrl all show config detail | egrep 'Array|Logical|physicald|Disk|Fault|^\s+Size|^\s+Status|Rotation|Firmware'

</Hardware alerts>

Get mac address:

$ IFACE=eth0
$ read MAC </sys/class/net/$IFACE/address
$ echo $IFACE $MAC
eth0 00:ab:cd:12:34:56
hardware.txt · Last modified: 2016/09/30 15:42 by vinny