-
caleb_gibbs started following [PLUGIN] IPMI for 6.11+
-
[PLUGIN] IPMI for 6.11+
Hi I recently built my first unraid install, and this is my first ever post on the unraid forum, I apologize for this poorly written post, I wanted to jot it all down before I forgot what I did, I will come back and edit it later. the mob I used is a w480d4u ASRock board and I was having a hard time getting the ipmitools plugin to work. I eventually found this forum and after many hours of not being able to get it to work I found a few interesting things 1 the script that configures the fans was trying to call ipmi-raw, after installing the plugin this file didn't exist, however there was ipmiraw so at the bash shell on unraid I tried to do a manual write to the fans to control the speed with ipmiraw copying the values from the asrock section of the ipmi2json which is when I figured out that ASRock has changed the codes for their ipmiraw to be: View the current manually set duty cycle > 00 3a d7 Change fan duty cycle > 00 3a d6 Set to auto on and off > 00 3a d8 After notice that I can set the ipmi duty cycle to manual and a speed in the bmc then run ipmiraw 003a d7 to view it and got a response that was D7 00 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 I was hopeful that I could then change it, so I ran ipmiraw 00 3a d6 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 and i then opened my bmc went to settings then looked at fan settings and notices that all my fans were set to 20 which is the lowest duty cycle in the acceptable range i knew that it was possible to get this working. So I then ran the ipmi2json --debug and saw the command line was wrong ipmi-raw 00 3a 01 00 00 00 00 00 which only returned location : none so I then found a different ipmi2json that has some changes in it for ASRock bords which also didn't work. but it lead me to ipmi-raw not being a valid command on my unraid 6.12 then after typing ipmi and hitting tab a few times I found ipmiraw, so I did a find and replace in the ipmi2json and reran it with the --debug switch to which it still failed but I then saw what was the last issue I was going to run into. (01) the impiraw 00 3a d6 01 64 64 64 64 64 64 64 64 64 after a bit of digging on the ASRock site I found an faq https://www.asrockrack.com/support/faq.asp#:~:text=by running%3A “-,Sudo ipmitool raw 0x3a 0xd6,-0x64 0x64 0x64 that listed the formate this command needs to be the length and the characters meaning no 01 so then I went into the ipmi2json and found this $raw = "${lun} ${netfn} ${i}1"; to which I modified to $raw = "${lun} ${netfn}"; #${i}1"; I commented out the last part that was adding the 0 Infront of the 1 as I don't know what it does normally but I knew that it was breaking it for me. then I reran impi2json and it found my fans and I just about jumped out of my chair scarring the cat. Then I did a find and replace on ipmifan as well then I put my fans in manual mode and click configure, and it worked and found my pmw fans then I also found that the configure button in the settings can't only be pressed once, because the ipmi2json puts the fans back into auto which is controlled by the bmc so they need to be put in manually mode before the configure button is ran each time so I added that to the ipmi2json and that is done by ipmiraw 00 3a d8 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01, if you choose to use these you will need to chmod them to make them executable. I hope this helps someone. good luck. ipmifan ipmi2json
caleb_gibbs
Members
-
Joined
-
Last visited