ramblinreck47 Posted April 21, 2021 Share Posted April 21, 2021 On 4/10/2021 at 5:44 AM, cakes044 said: Hi All, Here is the forked repo with the details of my "fix", keep in mind this is only for X570D4U and X570D4U-2L2T users, I purposely didn't include this to be backwards compatible because I didn't have those boards to do the proper testing or the time to make this backwards compatible. This is the commit in question that has my "fix", I also fixed some minor bugs with the shell commands: https://github.com/lucasteligioridis/IPMI-unRAID/commit/49281fd8 I can't quite remember if the ipmi2json script works flawlessly or not, I may have hacked in some values on the first run, full disclosure I haven't used that one since I first put it together and used it. But the ipmifan script works wonders with these boards, haven't had a problem with it since implementation. You essentially want to copy the two files mentioned from here: https://github.com/lucasteligioridis/IPMI-unRAID/tree/master/source/ipmi/usr/local/emhttp/plugins/ipmi/scripts Into the correct location on the Unraid system, which is here: - /usr/local/emhttp/plugins/ipmi/scripts You will have to restart the ipmifan service in the Unraid UI and it all should hopefully work, at the very worse the ipmi2json script might not work perfectly as intended, but it will at least generate some of the json correctly. Let me know how it goes, happy to help further. I'm not at home at the moment and don't have SSH access to validate the above just yet. To have this fix "permanent" I just copy the ipmifan script into the above directory whenever the machine boots, because the plugins get reloaded each time Unraid restarts so the old code will be restored. Obviously any updates to the plugin will have the same effect. If I get more time I'd love to fix this into a proper patch and merge it upstream. Thanks for posting this! I'm really excited to use this! The problem right now is I have no idea how to get the files from github (Do I copy the scripts and make a .txt file? What are the extensions I need to make them?) and I can't find /usr/local/emhttp/plugins/ipmi/scripts anywhere (is it on the flash drive?). If you don't have time to make detailed instructions, that's okay. If you end up having more time to patch this into the IPMI plugin itself, I might just wait till that happens. Quote Link to comment
Horfic Posted April 22, 2021 Share Posted April 22, 2021 The fan script works nicely, but the ipmi2json especially for the configure button does not work at all for me, what changes need to be done aswell to get it working for the X570D4U-2L2T cheers, Horfic Quote Link to comment
Gunny Posted April 22, 2021 Share Posted April 22, 2021 21 hours ago, ramblinreck47 said: Thanks for posting this! I'm really excited to use this! The problem right now is I have no idea how to get the files from github (Do I copy the scripts and make a .txt file? What are the extensions I need to make them?) and I can't find /usr/local/emhttp/plugins/ipmi/scripts anywhere (is it on the flash drive?). If you don't have time to make detailed instructions, that's okay. If you end up having more time to patch this into the IPMI plugin itself, I might just wait till that happens. The two files you need to modify are /usr/sbin/ipmifan /usr/sbin/ipmi2json but they get overwritten each time you restart Unraid (not very often for me so copying the files back isn't an issue) They don't need a file extension, they are marked via chmod as a executable and if you open them in a text editor you'll see they are shell scripts, text files that get fed into a specific interpreter. After you change the ipmifan file, you need to turn off the fan control setting then turn it back on so it reads in the new script file. Quote Link to comment
Elmojo Posted April 22, 2021 Share Posted April 22, 2021 I think my question got buried previously... Any chance of this working on a Dell Poweredge T420, or is it just still for those few boards mentioned in the OP? If not, does anyone know of a good way to control the fans on a Gen 12 Poweredge based on HDD temps? Quote Link to comment
Gunny Posted April 23, 2021 Share Posted April 23, 2021 9 hours ago, Elmojo said: I think my question got buried previously... Any chance of this working on a Dell Poweredge T420, or is it just still for those few boards mentioned in the OP? If not, does anyone know of a good way to control the fans on a Gen 12 Poweredge based on HDD temps? If you can find the correct IPMI-RAW command to control the fans and what each value does, its pretty straight forward to modify the scripts to support your system. Quote Link to comment
Elmojo Posted April 23, 2021 Share Posted April 23, 2021 9 hours ago, Gunny said: If you can find the correct IPMI-RAW command to control the fans and what each value does, its pretty straight forward to modify the scripts to support your system. Ok, yeah, I have that info. I've never edited a script, or even used one for that matter. Do you know of a guide that would be helpful for how to start? Quote Link to comment
Horfic Posted April 24, 2021 Share Posted April 24, 2021 (edited) Finally got it working on my Asrock X570D4U-2L2T board. Step by step guide. Login to your ASRockRack IPMI web ui (BMC) Go to Settings -> FAN Settings -> FAN Mode In the lower section "Set Fan Control Mode" set all fans to "Manual" and press the "Save control mode" button Open a ssh session to your unraid server or use the unraid web terminal Go to the following directory by entering the command cd /usr/local/emhttp/plugins/ipmi/scripts Download the custom ipmi2json file wget https://raw.githubusercontent.com/lucasteligioridis/IPMI-unRAID/master/source/ipmi/usr/local/emhttp/plugins/ipmi/scripts/ipmi2json Set the permission for the file chmod 755 ipmi2json.1 Exchange the original file with the custom one mv ipmi2json ipmi2json.ori && mv ipmi2json.1 ipmi2json Download the custom ipmifan file wget https://raw.githubusercontent.com/lucasteligioridis/IPMI-unRAID/master/source/ipmi/usr/local/emhttp/plugins/ipmi/scripts/ipmifan Set the permission for the file chmod 755 ipmifan.1 Exchange the original file with the custom one mv ipmifan ipmifan.ori && mv ipmifan.1 ipmifan Login to your unraid web ui Go to Settings -> IPMI -> Fan Control Set "Fan Control" to "No" and press the button "APPLY" Press now the "CONFIGURE" button and wait until its finished When finished, press the "DONE" button Configure now your "Fan Settings" which fan should be linked to which temperature sensor, e.g. HDD Temperature Start the fan control again by setting "Fan Control" to "Yes" and press the "APPLY" button Enjoy NOTES What is missing is to make the files persistent, so with this guide your would need to repeat step 5-11 every time you restart your unraid server and then stop the fan control and start it again to load the activate the changed files If you do not set in the BMC your fan control mode to manual, the configure script in unraid will not work properly. Many thanks again to @cakes044 who made effort to get the raw ipmi values for the board. cheers, Horfic Edited May 5, 2021 by Horfic 2 1 Quote Link to comment
Vendigroth Posted April 28, 2021 Share Posted April 28, 2021 5-11 can be simplified to 2 commands if you don't care for (or even better backed up) the original files. 1: Needs to be done once to generate the json. Don't need after you have fans showing up unless you want to re-configure. curl -o '/usr/local/emhttp/plugins/ipmi/scripts/ipmi2json' -L 'https://raw.githubusercontent.com/lucasteligioridis/IPMI-unRAID/master/source/ipmi/usr/local/emhttp/plugins/ipmi/scripts/ipmi2json' && chmod 755 '/usr/local/emhttp/plugins/ipmi/scripts/ipmi2json' 2: This is the one that needs on every restart + stop the fan control and start it again curl -o '/usr/local/emhttp/plugins/ipmi/scripts/ipmifan' -L 'https://raw.githubusercontent.com/lucasteligioridis/IPMI-unRAID/master/source/ipmi/usr/local/emhttp/plugins/ipmi/scripts/ipmifan' && chmod 755 '/usr/local/emhttp/plugins/ipmi/scripts/ipmifan' I also just keep a copy of ipmifan and cp it over & chmod using User Scripts plugin on start. 1 2 Quote Link to comment
ramblinreck47 Posted April 28, 2021 Share Posted April 28, 2021 On 4/24/2021 at 2:29 PM, Horfic said: Download the custom ipmifan file https://raw.githubusercontent.com/lucasteligioridis/IPMI-unRAID/master/source/ipmi/usr/local/emhttp/plugins/ipmi/scripts/ipmifan Thanks for these! I just wanted to say that #9 is missing wget in front of the web address. I couldn't figure out what was going wrong until I figured that out. Quote Link to comment
Cpmiller22 Posted April 28, 2021 Share Posted April 28, 2021 Hi all, Need some help getting IPMI setup for my unraid server. When I run the configuration it doesn't find anything, and on the config page there aren't any fans showing. My motherboard is a ASRock B460M Steel Legend. Any tips on how to get this configured and working properly would be much appreciated! 1 Quote Link to comment
tallguydirk Posted May 4, 2021 Share Posted May 4, 2021 Awesome plugin! Thanks a lot for making it!! Is it possible to display more than 4 sensors in the footer? I have 9 different sensors that I'd like to include and plenty of real estate in the footer to fit them all. 2 Quote Link to comment
TexasUnraid Posted May 4, 2021 Share Posted May 4, 2021 Agreed^ Also being able to rename the sensors (fans in particular) would be very helpful. Along these same lines, is it possible to add multiple sensors to the fan control. Basically my mobo only has 1 PWM control. I can set the fans to be quite and everything is fine as long as it is not under load, if the drives start working the fans need to spin up, ok fine. The issue is that if the CPU's with passive heat sinks start working they also need the fans to spin up but right now I have to pick only one of those. It would be nice if it could have use multiple sensors for fan control and simply set the fans to whatever is higher. Thus allowing it to spin the fans up for either the CPU or Hard drives. Bonus points to add even more sensors as I could spin the fans up if the HBA or memory starting getting hot for example etc. Quote Link to comment
markswift Posted May 9, 2021 Share Posted May 9, 2021 Sadly I've had no luck getting my Asrock x470D4U working. I can successfully run the 'configure' (which detects the fans and speeds them up etc), but activating the temperature controls and starting fan control does nothing. I can confirm sending a command like: "ipmi-raw -h 192.168.1.11 -u admin -p admin 00 3a 01 00 32 48 48 64 00 00 00" works just fine. Does anyone use this board, or can help me figure this out? Many thanks. Quote Link to comment
jbear Posted May 9, 2021 Share Posted May 9, 2021 (edited) On 5/4/2021 at 6:47 AM, TexasUnraid said: Agreed^ Also being able to rename the sensors (fans in particular) would be very helpful. Along these same lines, is it possible to add multiple sensors to the fan control. Basically my mobo only has 1 PWM control. I can set the fans to be quite and everything is fine as long as it is not under load, if the drives start working the fans need to spin up, ok fine. The issue is that if the CPU's with passive heat sinks start working they also need the fans to spin up but right now I have to pick only one of those. It would be nice if it could have use multiple sensors for fan control and simply set the fans to whatever is higher. Thus allowing it to spin the fans up for either the CPU or Hard drives. Bonus points to add even more sensors as I could spin the fans up if the HBA or memory starting getting hot for example etc. I second this, multiple fan profiles would be awesome, In my 24bay 4U case, under heavy disk load I spin up the fan wall to pull more air through the front to keep the drives cool, under a CPU intensive workload (when the drives are often spun down), I would also like to spin up the fan wall, and pull more cool air into the case. Renaming would be nice also, but not as important as above Edited May 9, 2021 by jbear Quote Link to comment
64ger Posted May 13, 2021 Share Posted May 13, 2021 (edited) Hello, do anyone get it run on ASRock H470M-ITX/ac? No sensors, no fan control - nothing works on my device. Edited May 13, 2021 by 64ger Quote Link to comment
JorgeB Posted May 13, 2021 Share Posted May 13, 2021 2 minutes ago, 64ger said: ASRock H470M-ITX/ac? That board doesn't have IPMI, so it won't work. Quote Link to comment
64ger Posted May 13, 2021 Share Posted May 13, 2021 5 hours ago, JorgeB said: That board doesn't have IPMI, so it won't work. Oups. Sorry - Thanks. Quote Link to comment
ramblinreck47 Posted May 16, 2021 Share Posted May 16, 2021 On 4/28/2021 at 1:16 PM, Cpmiller22 said: Hi all, Need some help getting IPMI setup for my unraid server. When I run the configuration it doesn't find anything, and on the config page there aren't any fans showing. My motherboard is a ASRock B460M Steel Legend. Any tips on how to get this configured and working properly would be much appreciated! I’m positive that motherboard doesn’t have IPMI. Quote Link to comment
HeTBouHe Posted May 23, 2021 Share Posted May 23, 2021 Hi, I have a SM X10DRU-i+ https://www.supermicro.com/en/products/motherboard/X10DRU-i+, which has 8 FAN connectors that are split into 2 zones FAN1-4 and FAN5-8. For some reason, there is only one zone (FAN1234) showing under fan settings and there seems to be no way of controlling the second zone. Is there anything I need to do for the second zone to show up? 1 Quote Link to comment
Espressomatic Posted June 27, 2021 Share Posted June 27, 2021 (edited) Been running this plugin successfully on my Super Micro X9DRI-LN4F+ for a couple of years but just noticed today that it's not working. No status displays, no content on the readings tab. I don't know when it stopped working, but it couldn't have been that long ago as the slightly louder and faster fan speed just stuck out audibly to me today. Log output after restarting system: Quote 2021-06-27 13:40:07 Starting Fan Control 2021-06-27 13:40:07 Setting fans to full speed 2021-06-27 13:43:12 Fan:Temp, FAN1234( 5%):(0°C) I've previously noticed an issue where the plugin doesn't seem to function when the system comes up from a power failure. We did just have such a power failure a few days ago, but I've since powered down the server, unplugged the power supply and then brought it back up. No sensors seem to come up in the IPMI plugin settings anymore. In Display Settings, both Global and Dashboard have only "Select all" with no sensors listed and the only choice in the pop-up menu for footer display is "none" - I'd previously had multiple items selected for footer display, including temps and fan speeds. Edited June 28, 2021 by Espressomatic Quote Link to comment
weilii Posted August 10, 2021 Share Posted August 10, 2021 (edited) EDIT: After playing around with it for another 4 hours. i found a solution. I updated the bios and the IPMI firmware and it seems to be working now. Thanks to everyone else in the thread who helped get me to this point! Could someone help me get this working on a supermicro x9dhr-if-nv? I have installed the plugin, and set my ipmi up, which the plugin says it is successfully connected to. I can see all my sensors, including temps and fan speeds in the plugin, however my fan settings section only has an option for which hard drive to poll. Edited August 11, 2021 by weilii Quote Link to comment
anonanon Posted August 13, 2021 Share Posted August 13, 2021 On 4/10/2021 at 3:44 AM, cakes044 said: Hi All, Here is the forked repo with the details of my "fix", keep in mind this is only for X570D4U and X570D4U-2L2T users, I purposely didn't include this to be backwards compatible because I didn't have those boards to do the proper testing or the time to make this backwards compatible. This is the commit in question that has my "fix", I also fixed some minor bugs with the shell commands: https://github.com/lucasteligioridis/IPMI-unRAID/commit/49281fd8 I can't quite remember if the ipmi2json script works flawlessly or not, I may have hacked in some values on the first run, full disclosure I haven't used that one since I first put it together and used it. But the ipmifan script works wonders with these boards, haven't had a problem with it since implementation. You essentially want to copy the two files mentioned from here: https://github.com/lucasteligioridis/IPMI-unRAID/tree/master/source/ipmi/usr/local/emhttp/plugins/ipmi/scripts Into the correct location on the Unraid system, which is here: - /usr/local/emhttp/plugins/ipmi/scripts You will have to restart the ipmifan service in the Unraid UI and it all should hopefully work, at the very worse the ipmi2json script might not work perfectly as intended, but it will at least generate some of the json correctly. Let me know how it goes, happy to help further. I'm not at home at the moment and don't have SSH access to validate the above just yet. To have this fix "permanent" I just copy the ipmifan script into the above directory whenever the machine boots, because the plugins get reloaded each time Unraid restarts so the old code will be restored. Obviously any updates to the plugin will have the same effect. If I get more time I'd love to fix this into a proper patch and merge it upstream. I just wanna say thank you. I got it working on the asrockrack x470d4u. So it is backwards compatible. Quote Link to comment
K1ng0011 Posted August 22, 2021 Share Posted August 22, 2021 I am not super familiar with IPMI does anyone know why I am having the following issue? When I hit the configure button it does not appear to actually detect the fans based on what it is showing me. I followed the post that Vendigroth created but it did not seem to remedy the issue. I am also successfully connected to between unraid and the BMC. Motherboard: ASRockRack X470D4U2-2T BMC Version: 1.8.3 BIOS Version: 3.4.0 Unraid Version: 6.9.2 Checking IPMI fan Locations... Location 0-1: none Location 0-2: none Location 0-3: none Location 0-4: none Location 0-5: none Location 0-6: none Location 0-7: none Location 0-8: none Location 0-9: none Location 0-10: none Location 0-11: none Location 0-12: none Location 0-13: none Location 0-14: none Location 0-15: none Location 0-16: none Saving board configuration... Quote Link to comment
b3rs3rk Posted August 25, 2021 Share Posted August 25, 2021 (edited) Hey folks. I just upgraded my UnRAID server to use a new SuperMicro board and am trying to get the IPMI tools working properly. It identifies the SuperMicro IPMI branding and can read all of the sensors without issue. But I'm having an issue with actually changing anything in the config. Any change on any tab I make is ignored even after clicking Apply, then Done. When I go back to the IPMI settings page it is all set to the defaults again. I tried searching in this thread but didn't see anything about a config not being saved. When looking at the Firefox console, I'm seeing a DOMException whenever I browse to the IPMI settings page. The function that is throwing the exception is this one: function decData() { $('#PASSWORD').val(atob($('#PASSWORD').val())); } Not sure if that is the reason things are not working for me, but it's the only error I see when attempting to make changes/save the config. I had previously been using AutoFan and System Temp plugins from Dynamix, but I removed them just in case they were causing issues. They are pretty much worthless now anyways since everything is handled via IPMI on this board. Specs: UnRAID 6.9.2 Pro Xeon Silver 4110 SuperMicro X11SPL-F Motherboard BIOS Version: 3.4 (Latest) BMC Firmware Version: 1.73.05 (Latest) EDIT: It seems that even though I had the Network Connections set to No, it was still trying to autofill my UnRAID user/pass in the BMC connection and submitting it whenever I clicked apply for unrelated settings. After disabling autofill for the UnRAID site in Firefox I was able to make changes. Edited August 25, 2021 by b3rs3rk Solved? Quote Link to comment
Xxharry Posted September 13, 2021 Share Posted September 13, 2021 (edited) I have a poweredge T430 with idrac basic license. under fan control, I dont see the configure button. what did I miss? Edit: NM, I read this is for supermicro and asrock only Edited September 13, 2021 by Xxharry wrong board Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.