{"id":2144,"date":"2017-10-23T21:50:43","date_gmt":"2017-10-24T02:50:43","guid":{"rendered":"http:\/\/osric.com\/chris\/accidental-developer\/?p=2144"},"modified":"2017-10-23T22:16:24","modified_gmt":"2017-10-24T03:16:24","slug":"using-ipmitool-to-configure-dell-idrac","status":"publish","type":"post","link":"https:\/\/osric.com\/chris\/accidental-developer\/2017\/10\/using-ipmitool-to-configure-dell-idrac\/","title":{"rendered":"Using ipmitool to configure Dell iDRAC"},"content":{"rendered":"<p>I have a number of Dell servers in a remote data center, so I wanted to configure the iDRAC interface in order to power on the systems remotely, get troubleshooting info for Dell, etc., without going to the data center myself. I&#8217;ve never configured iDRAC except through the Lifecycle Controller via a crash-cart on bootup. I thought that I would be spending all day in the data center getting everything configured, but when I mentioned this to another sysadmin he said, &#8220;Just use <code>ipmitool<\/code>.&#8221;<\/p>\n<p>I had no idea such a tool existed!<\/p>\n<p>First, I installed <code>ipmitool<\/code> (I&#8217;m using CentOS):<\/p>\n<pre><code>sudo yum install ipmitool<\/code><\/pre>\n<p>I found a helpful website: <a href=\"http:\/\/www.theprojectbot.com\/ipmitool-cheatsheet-and-configuring-drac-from-ipmitool\/\">ipmitool Cheatsheet and Configuring DRAC from ipmitool<\/a><\/p>\n<p>I was a little skeptical, but I read through (most) of the <code>ipmitool<\/code> man page to make sure I had a reasonable idea what the commands would do, and then I tried one. And immediately received an error message:<\/p>\n<pre><code>$ ipmitool lan set 1 ipsrc static\r\nCould not open device at \/dev\/ipmi0 or \/dev\/ipmi\/0 or \/dev\/ipmidev\/0: No such file or directory<\/code><\/pre>\n<p>I checked and found that the path listed does exist:<\/p>\n<pre><code>$ ls \/dev\/ipmi*\r\n\/dev\/ipmi0<\/code><\/pre>\n<p>Then it hit me: I need to be superuser, don&#8217;t I? That worked!<\/p>\n<pre><code>sudo ipmitool lan set 1 ipsrc static\r\nsudo ipmitool lan set 1 ipaddr 192.168.100.1\r\nsudo ipmitool lan set 1 netmask 255.255.255.0\r\nsudo ipmitool lan set 1 defgw ipaddr 192.168.100.254<\/code><\/pre>\n<p>I was then able to connect to the IP address in a browser (it warned me there was an untrusted certificate, and I added it as a permanent exception in the browser.)<\/p>\n<p>The default username\/password was root\/calvin. I changed both the username and password right away. Even though I have the iDRAC interfaces on an RFC 1918 subnet and behind a firewall, why take the risk of keeping the default values?<\/p>\n<p>As I discovered though, pay attention to the iDRAC password restrictions. Otherwise you may need to <a href=\"https:\/\/osric.com\/chris\/accidental-developer\/2017\/10\/reset-the-idrac-administrator-password-via-ipmitool\/\">use ipmitool to reset the iDRAC admin password<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a number of Dell servers in a remote data center, so I wanted to configure the iDRAC interface in order to power on the systems remotely, get troubleshooting info for Dell, etc., without going to the data center myself. I&#8217;ve never configured iDRAC except through the Lifecycle Controller via a crash-cart on bootup. &hellip; <a href=\"https:\/\/osric.com\/chris\/accidental-developer\/2017\/10\/using-ipmitool-to-configure-dell-idrac\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using ipmitool to configure Dell iDRAC<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[422],"tags":[415,467,468,466],"class_list":["post-2144","post","type-post","status-publish","format-standard","hentry","category-sysadmin","tag-centos-7","tag-dell","tag-idrac","tag-ipmitool"],"_links":{"self":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/2144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/comments?post=2144"}],"version-history":[{"count":10,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/2144\/revisions"}],"predecessor-version":[{"id":2178,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/2144\/revisions\/2178"}],"wp:attachment":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/media?parent=2144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/categories?post=2144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/tags?post=2144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}