IPMI
March 26, 2021 — 20:06

Author: silver  Category: hardware linux windows  Comments: Off

Intelligent Platform Management Interface

  • Linux kernel module: ipmi_devintf
  • Debian packages: apt install openipmi ipmitool

ipmitool

Get info:

ipmitool lan print
ipmitool user list
ipmitool channel getaccess 1

Add new user and permissions:

ipmitool user set name 3 myusername
ipmitool user set password 3 <password> 16
ipmitool channel setaccess 1 3 link=on ipmi=on callin=on privilege=4
ipmitool test 3 16 <password>

* where ‘3’ is user id and ’16’ is length of password

SuperMicro

  • IPMIView is a GUI app specific to SM BMC (Linux/Windows)
  • Since 2019 the default "ADMIN" password is no longer used
  • Every device now has a "Unique BMC Password" printed on sticker (pdf)
  • ADMIN user has id 2
Updating CPU Microcode
March 28, 2018 — 12:50

Author: silver  Category: hardware linux windows  Comments: Off

BITS

Tool from Intel called “BIOS Implementation Test Suite”. Bootable (usb) image which can do several things including handling microcode:


Linux

load/update microcode using pkg:

Debian

  • Intel: apt install intel-microcode iucode-tool
  • AMD: apt install amd64-microcode
  • Doc: /usr/share/doc/{intel,amd64}-microcode/README.Debian.gz

CentOS/RH

load/update intel microcode manually:

  • get latest tgz from intel: see below
  • backup/copy files: /lib/firmware/intel-ucode
  • check kernel config: grep MICROCODE /boot/config-*
  • run iucode_tool:
    /usr/sbin/iucode_tool -tb -lS /lib/firmware/intel-ucode/*
  • update initramfs: update-initramfs -u -k all

reloading microcode:

  • echo 1 > /sys/devices/system/cpu/microcode/reload
  • or: rmmod cpuid; modprobe cpuid

show version:

  • dmesg | grep microcode
  • grep microcode /proc/cpuinfo

skip loading microcode on boot:

  • add to grub cmdline: dis_ucode_ldr


Windows

Microsoft includes microcode updates in Windows for certain CPU’s. For example: KB4090007, KB3064209, KB2970215.

load/update microcode:

show version:

  • get hwinfo64 and goto “Central Processor(s)” > “Microcode Update Revision”
  • or get “Read & Write Everything” (RWEverything) from http://rweverything.com


Get Microcode

Download the latest version from Intel:
https://downloadcenter.intel.com/download/27431/Linux-Processor-Microcode-Data-File?v=t.

HP ProLiant
December 9, 2016 — 21:54

Author: silver  Category: hardware linux  Comments: Off

Boot:

  • BIOS: F10
  • HP SSA Smart Storage Administrator / ACU Array Configuration Utility: F5
  • ORCA / Options ROM for Configuring Arrays: Press any key…, F8
  • HP IP: F10
  • Boot Menu: F11

Install HP software:

Repository:

wget http://downloads.linux.hp.com/add_repo.sh
sh add_repo.sh spp -d redhat -r 6.7 -n
sh add_repo.sh spp -d redhat -r 6.7
sh add_repo.sh spp -d redhat -r 5.10 -n
sh add_repo.sh spp -d redhat -r 5.10
sed -i 's/gpgcheck=0/gpgcheck=1/' /etc/yum.repos.d/HP-spp.repo
rpm --import http://downloads.linux.hp.com/SDR/hpPublicKey1024.pub
rpm --import http://downloads.linux.hp.com/SDR/hpPublicKey2048.pub
rpm --import http://downloads.linux.hp.com/SDR/hpPublicKey2048_key1.pub
for i in $( rpm -qa gpg-pubkey* ); do rpm -qi $i |grep -B 8 Hewlett; done
yum install hpacucli
yum install hponcfg

HP Server Management Application and Agents Command Line Interface

# hpasmcli -s "clear iml"

HP Lights-Out Online Configuration Utility for Linux

hponcfg -f Clear_EventLog.xml -i

Clear_EventLog.xml:

<RIBCL VERSION="2.0">
 <LOGIN USER_LOGIN="Administrator" PASSWORD="xxx">
 <RIB_INFO MODE="write">
 <CLEAR_EVENTLOG/>
 </RIB_INFO>
 </LOGIN>
</RIBCL>

Clear_IML.xml:

<RIBCL VERSION="2.0">
  <LOGIN USER_LOGIN="Administrator" PASSWORD="xxx">
  <SERVER_INFO MODE="write">
    <CLEAR_IML/>
  </SERVER_INFO>
  </LOGIN>
</RIBCL>

Administrator_reset_pw.xml:

<ribcl VERSION="2.0">
 <login USER_LOGIN="Administrator" PASSWORD="boguspassword">
  <user_INFO MODE="write">
   <mod_USER USER_LOGIN="Administrator">
    <password value="NewPass123"/>
   </mod_USER>
  </user_INFO>
 </login>
</ribcl>
Hibernate
March 31, 2012 — 17:50

Author: silver  Category: hardware linux  Comments: Off

2015

https://01.org/blogs/rzhang/2015/best-practice-debug-linux-suspend/hibernate-issues

Test:

echo disk > /sys/power/state
grep PM: /var/log/dmesg

Disk Encryption and hibernate

Verify resume device:

/etc/default/grub:
GRUB_CMDLINE_LINUX="resume=/dev/mapper/cryptswap1

update-grub

/etc/initramfs-tools/conf.d/resume:
RESUME=/dev/mapper/cryptswap1

sudo update-initramfs -u -k all

If it’s still not working try testing without encrypted swap (/dev/disk/by-label/swap).

2012

Hibernate under Ubuntu often doesn’t work or stops working after a dist upgrade.

There’s several method’s to hibernate (and suspend): uswsup, tuxonince etc – we won’t be using any of those here.

Steps to fix hibernate

  1. Check logs /var/log/pm-powersave.log (and /var/log/pm-suspend.log)
  2. Check if you have enough swap
  3. Try removing all connected usb devices first before hibernating (my XBOX 360 Wireless receiver stops hibernate from working, see script below)
  4. System is hibernating but not resuming? Check /etc/initramfs-tools/conf.d/resume (and do a update-initramfs -k all -u)
  5. Still not working? sudo apt-get remove hibernate uswsusp (just to be sure)
  6. More info: http://chriseiffel.com/everything-linux/step-by-step-how-to-get-hibernate-working-for-linux-ubuntu-11-04-mint-11/

This script disables all usb controllers using UHCI on hibernate and enables them on resume.

/etc/pm/sleep.d/20_custom-ehci_hcd


Wipe SSD/HDD
March 19, 2012 — 12:27

Author: silver  Category: hardware linux windows  Comments: Off

Linux:

First check the drive (see if erase operations are supported):

# hdparm -I /dev/X 
# hdparm --user-master u --security-set-pass Password /dev/X
# time hdparm --user-master u --security-erase Password /dev/X

or (if supported):

# time hdparm --user-master u --security-erase-enhanched Passwrd /dev/X

Works also for HDD’s.

More info:
https://ata.wiki.kernel.org/articles/a/t/a/ATA_Secure_Erase_936d.html
https://www.thomas-krenn.com/en/wiki/SSD_Secure_Erase

Alternatively boot into Parted Magic and use GUI.

Windows/DOS:

http://cmrr.ucsd.edu/people/Hughes/SecureErase.shtml

Enable AHCI on ASUS P5 EPU/SE
March 13, 2012 — 21:27

Author: silver  Category: hardware windows  Comments: Off

Enable AHCI on a ASUS P5 EPU/SE motherboard

Modified BIOS ROM: http://www.bios-mods.com/forum/Thread-AHCI-enable-on-ASUS-P5K-SE-EPU-and-option-ROM-update

(or crossflash newer P5K ROM instead)

Windows XP: http://forums.pcper.com/showthread.php?t=444831

Windows 7: http://www.windows7news.com/2010/05/25/how-to-enable-ahci-in-windows-7/








We use Matomo free and open source web analytics
We also use Jetpack WordPress.com Stats which honors DNT