{"id":452,"date":"2019-08-30T10:13:59","date_gmt":"2019-08-30T09:13:59","guid":{"rendered":"https:\/\/www.shakral.de\/blog\/?p=452"},"modified":"2019-11-06T14:15:23","modified_gmt":"2019-11-06T13:15:23","slug":"esxi-ilo-konfigurieren","status":"publish","type":"post","link":"https:\/\/www.shakral.de\/blog\/2019\/08\/30\/esxi-ilo-konfigurieren\/","title":{"rendered":"ESXi &#8211; ILO Konfigurieren"},"content":{"rendered":"<p>Hinweise und Befehlssammlungen, um \u00fcber die HPE Tools im ESXi das ILO zu konfigurieren.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Das notwendige Tool hierf\u00fcr ist HPONCFG das sich im Verzeichnis \/opt\/tools befindet. Installiert wird es \u00fcber das HPE-Custom Image oder die HPE Utilities Offline Bundle for ESXi  (<a href=\"http:\/\/HPE Utilities Offline Bundle for ESXi \">Link <\/a>zur Version 3.4 f\u00fcr ESXi 6.7)<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n.\/hponcfg -w \/tmp\/ilo-conf.xml\n<\/pre><\/div>\n\n\n<p>Hiermit wird die aktuelle Konfiguration ausgelesen und als XML-Datei abgelegt<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;!-- HPONCFG VERSION = &quot;5.4-0.0.0&quot; --&gt;\n&lt;!-- Generated 8\/30\/2019 8:28:51 --&gt;\n&lt;RIBCL VERSION=&quot;2.1&quot;&gt;\n &lt;LOGIN USER_LOGIN=&quot;Benutzername&quot; PASSWORD=&quot;Password&quot;&gt;\n  &lt;DIR_INFO MODE=&quot;write&quot;&gt;\n  &lt;MOD_DIR_CONFIG&gt;\n    &lt;DIR_AUTHENTICATION_ENABLED VALUE = &quot;N&quot;\/&gt;\n    &lt;DIR_LOCAL_USER_ACCT VALUE = &quot;Y&quot;\/&gt;\n    &lt;DIR_SERVER_ADDRESS VALUE = &quot;&quot;\/&gt;\n    &lt;DIR_SERVER_PORT VALUE = &quot;636&quot;\/&gt;\n    &lt;DIR_OBJECT_DN VALUE = &quot;&quot;\/&gt;\n    &lt;DIR_OBJECT_PASSWORD VALUE = &quot;&quot;\/&gt;\n    &lt;DIR_USER_CONTEXT_1 VALUE = &quot;&quot;\/&gt;\n    &lt;DIR_USER_CONTEXT_2 VALUE = &quot;&quot;\/&gt;\n    &lt;DIR_USER_CONTEXT_3 VALUE = &quot;&quot;\/&gt;\n  &lt;\/MOD_DIR_CONFIG&gt;\n  &lt;\/DIR_INFO&gt;\n  &lt;RIB_INFO MODE=&quot;write&quot;&gt;\n  &lt;MOD_NETWORK_SETTINGS&gt;\n    &lt;SPEED_AUTOSELECT VALUE = &quot;Y&quot;\/&gt;\n    &lt;NIC_SPEED VALUE = &quot;10&quot;\/&gt;\n    &lt;FULL_DUPLEX VALUE = &quot;N&quot;\/&gt;\n    &lt;IP_ADDRESS VALUE = &quot;UP-Adresse&quot;\/&gt;\n    &lt;SUBNET_MASK VALUE = &quot;Subnetz-Maske&quot;\/&gt;\n    &lt;GATEWAY_IP_ADDRESS VALUE = &quot;Gateway_IP&quot;\/&gt;\n    &lt;DNS_NAME VALUE = &quot;ilofranvmw3&quot;\/&gt;\n    &lt;PRIM_DNS_SERVER value = &quot;DNS-IP&quot;\/&gt;\n    &lt;DHCP_ENABLE VALUE = &quot;N&quot;\/&gt;\n    &lt;DOMAIN_NAME VALUE = &quot;FQDN&quot;\/&gt;\n    &lt;DHCP_GATEWAY VALUE = &quot;N&quot;\/&gt;\n    &lt;DHCP_DNS_SERVER VALUE = &quot;N&quot;\/&gt;\n    &lt;DHCP_STATIC_ROUTE VALUE = &quot;N&quot;\/&gt;\n    &lt;DHCP_WINS_SERVER VALUE = &quot;N&quot;\/&gt;\n    &lt;REG_WINS_SERVER VALUE = &quot;N&quot;\/&gt;\n    &lt;PRIM_WINS_SERVER value = &quot;0.0.0.0&quot;\/&gt;\n    &lt;STATIC_ROUTE_1 DEST = &quot;0.0.0.0&quot; GATEWAY = &quot;0.0.0.0&quot;\/&gt;\n    &lt;STATIC_ROUTE_2 DEST = &quot;0.0.0.0&quot; GATEWAY = &quot;0.0.0.0&quot;\/&gt;\n    &lt;STATIC_ROUTE_3 DEST = &quot;0.0.0.0&quot; GATEWAY = &quot;0.0.0.0&quot;\/&gt;\n  &lt;\/MOD_NETWORK_SETTINGS&gt;\n  &lt;\/RIB_INFO&gt;\n  &lt;USER_INFO MODE=&quot;write&quot;&gt;\n  &lt;\/USER_INFO&gt;\n &lt;\/LOGIN&gt;\n&lt;\/RIBCL&gt;\n<\/pre><\/div>\n\n\n<p>Durch weitere XML-Files k\u00f6nnen nun Konfiguration hinzugef\u00fcgt werden oder bestehende Werte ge\u00e4ndert werden.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Neuer User anlegen<\/h2>\n\n\n\n<p>Mein User Shakral kann alles im ILO Bedeiden, au\u00dfer den Server ein- und ausschalten, da RESET_SERVER_PRIV deaktiviert ist<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;RIBCL VERSION=&quot;2.1&quot;&gt;\n&lt;LOGIN USER_LOGIN=&quot;Dontcare&quot; PASSWORD=&quot;UsingAutologin&quot;&gt;\n &lt;USER_INFO MODE=&quot;write&quot;&gt;\n   &lt;ADD_USER\n     USER_NAME=&quot;Shakral&quot;\n     USER_LOGIN=&quot;Shakral&quot;\n     PASSWORD=&quot;Hier_steht_das_Passwort_als_Klartext&quot;&gt;\n     &lt;ADMIN_PRIV value =&quot;Yes&quot;\/&gt;\n     &lt;REMOTE_CONS_PRIV value =&quot;Yes&quot;\/&gt;\n     &lt;RESET_SERVER_PRIV value =&quot;No&quot;\/&gt;\n     &lt;VIRTUAL_MEDIA_PRIV value =&quot;Yes&quot;\/&gt;\n     &lt;CONFIG_ILO_PRIV value=&quot;Yes&quot;\/&gt;\n   &lt;\/ADD_USER&gt;\n &lt;\/USER_INFO&gt;\n &lt;\/LOGIN&gt;\n&lt;\/RIBCL&gt;\n<\/pre><\/div>\n\n\n<p>Mit dem Parameter -f wird eine Datei an das ILO geschickt und die enthaltenen Konfigurationsbefehle werden umgesetzt.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@esxi:\/opt\/tools]  .\/hponcfg -f \/tmp\/new_user_ilo.xml\nLights-Out Online Configuration utility for ESXi Version 5.4-0.0 (c) Copyright 2011-2019 Hewlett Packard Enterprise Development LP\nFirmware Revision = 2.54 Device type = iLO 4 Driver name = ilo\nScript succeeded\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">User anpassen<\/h2>\n\n\n\n<p>Um dem eben angelegten User auch die Rechte f\u00fcr den virtuellen Power-Schalter zu geben, erstellen wir eine weitere XML-Datei, das den User anpasst.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;RIBCL VERSION=&quot;2.1&quot;&gt;\n&lt;LOGIN USER_LOGIN=&quot;Dontcare&quot; PASSWORD=&quot;UsingAutologin&quot;&gt;\n &lt;USER_INFO MODE=&quot;write&quot;&gt;\n   &lt;MOD_USER USER_LOGIN=&quot;shakral&quot;&gt;\n     &lt;RESET_SERVER_PRIV value =&quot;Yes&quot;\/&gt;\n   &lt;\/MOD_USER&gt;\n &lt;\/USER_INFO&gt;\n &lt;\/LOGIN&gt;\n&lt;\/RIBCL&gt;\n<\/pre><\/div>\n\n\n<p>Und schicken ihn wieder mit dem folgenden Befehl ab:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&#x5B;root@esxi:\/opt\/tools]  .\/hponcfg -f \/tmp\/ilo_change-userrights.xml\nLights-Out Online Configuration utility for ESXi Version 5.4-0.0 (c) Copyright 2011-2019 Hewlett Packard Enterprise Development LP\nFirmware Revision = 2.54 Device type = iLO 4 Driver name = ilo\nScript succeeded\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">User l\u00f6schen<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;RIBCL VERSION=&quot;2.0&quot;&gt;\n &lt;LOGIN USER_LOGIN=&quot;adminname&quot; PASSWORD=&quot;password&quot;&gt;\n &lt;USER_INFO MODE=&quot;write&quot;&gt;\n &lt;DELETE_USER USER_LOGIN=&quot;shakral&quot;\/&gt;\n &lt;\/USER_INFO&gt;\n &lt;\/LOGIN&gt;\n&lt;\/RIBCL&gt;\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@esxi:~] .\/opt\/tools\/hponcfg -f \/tmp\/delete_testuser_ilo.xml\nLights-Out Online Configuration utility for ESXi Version 5.4-0.0 (c) Copyright 2011-2019 Hewlett Packard Enterprise Development LP\nFirmware Revision = 2.62 Device type = iLO 4 Driver name = ilo\nScript succeeded\n\n<\/pre><\/div>\n\n\n<p>Weitere Beispiele f\u00fcr XML-Files gibt es im  HPE iLO 5 Scripting and Command Line Guide bzw in den entsprechenden Versionen f\u00fcr \u00e4ltere ILO-Generationen. Diese Dokumente finden sich in die <a href=\"https:\/\/h17007.www1.hpe.com\/us\/en\/enterprise\/servers\/solutions\/info-library\/index.aspx\">Hewlett Packard Enterprise Information Library<\/a> unter Server und ILO x<\/p>\n\n\n\n<p>Zus\u00e4tzlich hier noch ein <a href=\"https:\/\/gist.github.com\/drolfe\">Link <\/a>zu einem Github Archiv f\u00fcr Konfig-Befehle<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Hinweise und Befehlssammlungen, um \u00fcber die HPE Tools im ESXi das ILO zu konfigurieren.<\/p>\n","protected":false},"author":2,"featured_media":480,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,52],"tags":[43,53,23,79,80],"class_list":["post-452","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein","category-vmware","tag-cli","tag-esxi","tag-ilo","tag-konfig","tag-konfigbeispiele"],"_links":{"self":[{"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/posts\/452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/comments?post=452"}],"version-history":[{"count":11,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/posts\/452\/revisions"}],"predecessor-version":[{"id":507,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/posts\/452\/revisions\/507"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/media\/480"}],"wp:attachment":[{"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/media?parent=452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/categories?post=452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/tags?post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}