{"id":38,"date":"2016-07-17T10:24:04","date_gmt":"2016-07-17T10:24:04","guid":{"rendered":"https:\/\/admin-log.net\/?p=38"},"modified":"2020-10-11T17:38:34","modified_gmt":"2020-10-11T15:38:34","slug":"ipmitool-stopped-working-on-dell-idrac-over-lan","status":"publish","type":"post","link":"https:\/\/admin-log.net\/index.php\/2016\/07\/17\/ipmitool-stopped-working-on-dell-idrac-over-lan\/","title":{"rendered":"ipmitool stopped working on Dell iDRAC over LAN"},"content":{"rendered":"\n<p>Modern servers come with a basement management controller (BMC), a little extra computer that allows remote console access, provides all kinds of hardware status information and even allows power control (i.e. turning the server on and off). Dell&#8217;s implementation is called iDRAC.<\/p>\n\n\n\n<p>IPMI is a commonly used protocol to access this functionality, even over the network.<\/p>\n\n\n\n<p>I remembered using ipmitool over the network to access the iDRAC in the past. The more I was surprised that suddenly it only gave me an error message:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"plaintext\" data-shcb-language-slug=\"plaintext\"><span><code class=\"hljs language-plaintext\">$ ipmitool -H server-mgmt -U root mc info\nPassword:\nGet Session Challenge command failed\nError: Unable to establish LAN session\nGet Device ID command failed<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">plaintext<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">plaintext<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>I found the solution in <a href=\"http:\/\/kudzia.eu\/b\/2014\/04\/idracs\/\">.pQd&#8217;s log<\/a>:<\/p>\n\n\n\n<p>Apparently recent firmware versions (in 2016) stopped supporting the default protocol and only continued to support the lanplus protocol, which can be selected with the <em>-I lanplus<\/em> option. I&#8217;m not sure, if I saw this documented somewhere, but it seems, that&#8217;s what Dell always intended to use. So the proper command is:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">ipmitool -H server-mgmt -I lanplus -U root mc info<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>If you are using OpenIPMI, the proper option is <em>&#8211;driver-type=LAN_2_0<\/em>, so e.g. for reading sensor values you can use:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">ipmi-sensors -h server-mgmt -u root -P --driver-type=LAN_2_0<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>","protected":false},"excerpt":{"rendered":"<p>Modern servers come with a basement management controller (BMC), a little extra computer that allows remote console access, provides all kinds of hardware status information and even allows power control (i.e. turning the server on and off). Dell&#8217;s implementation is called iDRAC. IPMI is a commonly used protocol to access this functionality, even over the &hellip; <a href=\"https:\/\/admin-log.net\/index.php\/2016\/07\/17\/ipmitool-stopped-working-on-dell-idrac-over-lan\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">ipmitool stopped working on Dell iDRAC over LAN<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[10,8],"tags":[11,12,13,14],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-dell","category-server","tag-dell","tag-idrac","tag-ipmi","tag-ipmitool"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7sn5M-C","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/admin-log.net\/index.php\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/admin-log.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/admin-log.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/admin-log.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/admin-log.net\/index.php\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":12,"href":"https:\/\/admin-log.net\/index.php\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/admin-log.net\/index.php\/wp-json\/wp\/v2\/posts\/38\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/admin-log.net\/index.php\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/admin-log.net\/index.php\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/admin-log.net\/index.php\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}