home
|
pages
|
back
|
start
|
windows
|
SIP
|
pushover
|
esxi
|
linux-bash
|
linux-bash-fn
|
linux-bash-code
|
awk-sed
|
git
|
keepass
|
php
|
ipmi
|
openvpn
|
https://svzone.de/files/srv/scripts/linux/ipmi/ipmi.sh ipmi pw reset: boot from live linux apt-get install ipmitool ipmitool raw 0x3c 0x40 (factory reset without lan) ipmitool raw 0x30 0x40 (full factory reset) #!/bin/bash #http://blog.pcfe.net/hugo/posts/2018-08-14-epyc-ipmi-fans/ #https://www.imrazor.de/technik/linux/supermicro-board-mit-ipmi-und-langsam-drehende-luefter/ #user=root #pass=pass1 #host=192.168.100.108 if [ -z "$user" ] ; then echo -n "enter username: "; read user; fi if [ -z "$pass" ] ; then echo -n "enter password: "; read -s pass; echo; fi if [ -z "$host" ] ; then echo -n "enter ip: "; read host; fi command -v ipmitool if [ $? != 0 ] ; then apt install -y ipmitool; fi # # read original #ipmitool -H supermicro-bmc -U ADMIN -f ~/.ipmi-supermicro-bmc -I lanplus sensor get FAN6 #echo "ipmitool -I lanplus -H $host -U $user -P "$pass" sensor thresh FAN${i} lower 0 100 200" ## older Supermicros use model -I lanplus , newer ones working with open for i in 1 2 3 4 5 6 7 A B; do ipmitool -I open -H $host -U $user -P "$pass" sensor thresh FAN${i} lower 0 100 200; done echo $? for i in 1 2 3 4 5 6 7 A B; do ipmitool -I open -H $host -U $user -P "$pass" sensor thresh FAN${i} upper 1800 1900 2000; done echo $? #### ipmi serial berechnen for bios update etc. echo -n "you need the bmc-mac in this format, plain uppercase without dash/colon like AC1F6BEA8F95 " .... echo -n 'AC1F6BEA8F95' | xxd -r -p | openssl dgst -sha1 -mac HMAC -macopt hexkey:8544E3B47ECA58F9583043F8 | awk '{print $2}' | cut -c 1-24 | fold -w4 | paste -sd'-' run command on any linux