<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Cli on inetshell</title><link>https://inet.sh/en/tags/cli/</link><description>Recent content in Cli on inetshell</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 19 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://inet.sh/en/tags/cli/index.xml" rel="self" type="application/rss+xml"/><item><title>HP iLO CLI: users, network, ISO, and power</title><link>https://inet.sh/en/posts/ilo/cli-commands/</link><pubDate>Wed, 19 Aug 2026 00:00:00 +0000</pubDate><guid>https://inet.sh/en/posts/ilo/cli-commands/</guid><description>HP iLO SMASH CLP commands over SSH: create a user, change the password, set a static IP, mount an HTTP ISO, and power the server.</description><content:encoded><![CDATA[<h2 id="tldr">TL;DR</h2>
<p>SSH to iLO (<code>ssh Administrator@&lt;ilo-ip&gt;</code>). SMASH CLP for accounts, static IP, HTTP ISO, power. Legacy cipher: <code>-c aes256-cbc</code>.</p>
<p>If you have SSH to iLO and do not want the web UI, the shell is <strong>SMASH CLP</strong> (<code>/map1</code>, <code>oemhp_*</code>). This is the iLO 2/3/4 dialect, not Redfish.</p>
<h2 id="connect">Connect</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">ssh Administrator@&lt;ilo-ip&gt;
</span></span></code></pre></td></tr></table>
</div>
</div><p>Old firmware often needs a legacy cipher:</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">ssh -c aes256-cbc Administrator@&lt;ilo-ip&gt;
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="accounts">Accounts</h2>
<p>Create a user with the usual admin groups (network changes reset iLO; accounts persist):</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">create /map1/accounts1 <span class="nv">username</span><span class="o">=</span>ops <span class="nv">password</span><span class="o">=</span><span class="s1">&#39;&lt;password&gt;&#39;</span> <span class="nv">group</span><span class="o">=</span>admin,config,oemhp_vm,oemhp_rc,oemhp_power
</span></span></code></pre></td></tr></table>
</div>
</div><p>Change the <code>Administrator</code> password on first boot (<code>Administrator</code> / <code>hpinvent</code> is the HP default):</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="nb">set</span> /map1/accounts1/Administrator <span class="nv">password</span><span class="o">=</span><span class="s1">&#39;&lt;new-password&gt;&#39;</span>
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="network-ilo-reboots">Network (iLO reboots)</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="nb">set</span> map1/dhcpendpt1 <span class="nv">EnabledState</span><span class="o">=</span>no
</span></span><span class="line"><span class="cl"><span class="nb">set</span> map1/enetport1/lanendpt1/ipendpt1 <span class="nv">IPv4Address</span><span class="o">=</span>192.168.1.213 <span class="nv">SubnetMask</span><span class="o">=</span>255.255.255.0
</span></span><span class="line"><span class="cl"><span class="nb">set</span> map1/enetport1 <span class="nv">SystemName</span><span class="o">=</span>merlin
</span></span></code></pre></td></tr></table>
</div>
</div><p>After each network <code>set</code>, wait for iLO to come back and SSH to the new address.</p>
<h2 id="mount-an-http-iso-and-boot-once">Mount an HTTP ISO and boot once</h2>
<p>The ISO must be HTTP-reachable <strong>from iLO</strong>, not from your laptop.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="nb">set</span> /map1/oemhp_vm1/cddr1 <span class="nv">oemhp_image</span><span class="o">=</span>http://10.254.0.50/ssp2017.iso
</span></span><span class="line"><span class="cl"><span class="nb">set</span> /map1/oemhp_vm1/cddr1 <span class="nv">oemhp_boot</span><span class="o">=</span>Once
</span></span><span class="line"><span class="cl">show /map1/oemhp_vm1/cddr1
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="power">Power</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">show /system1
</span></span><span class="line"><span class="cl">start /system1
</span></span><span class="line"><span class="cl">stop /system1
</span></span><span class="line"><span class="cl">reset /system1
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="ping-from-ilo">Ping from iLO</h2>
<p>Useful to see whether iLO can reach the management network:</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">oemhp_ping /map1 10.1.1.50
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="manual">Manual</h2>
<p>HP&rsquo;s CLP tree: <a href="http://h10032.www1.hp.com/ctg/Manual/c02237707.pdf">iLO scripting and command line</a>.</p>
<p>See also: <a href="/en/posts/ilo/upgrade-firmware-ssh/">upgrade firmware over SSH</a>, <a href="/en/posts/ilo/get-license-key/">read the license key</a>.</p>
]]></content:encoded></item></channel></rss>