<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cli on Evan Hoffman</title><link>https://evan.wtf/tags/cli/</link><description>Recent content in Cli on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Tue, 22 Jul 2014 10:58:21 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/cli/index.xml" rel="self" type="application/rss+xml"/><item><title>OpenVPN CLI Cheat Sheet</title><link>https://evan.wtf/2014/07/22/openvpn-cli-cheat-sheet/</link><pubDate>Tue, 22 Jul 2014 10:58:21 +0000</pubDate><guid>https://evan.wtf/2014/07/22/openvpn-cli-cheat-sheet/</guid><description>&lt;h3 id="adding-a-regular-user-called-testing"&gt;Adding a regular user called testing&lt;a class="heading-anchor" href="#adding-a-regular-user-called-testing" aria-label="Link to this section"&gt;&#10; &lt;svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"&#10; stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"&gt;&#10; &lt;path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/&gt;&#10; &lt;path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/&gt;&#10; &lt;/svg&gt;&#10; &lt;/a&gt;&#10;&lt;/h3&gt;&#10;&lt;p&gt;/usr/local/openvpn_as/scripts/sacli -u testing -k type -v user_connect UserPropPut&lt;/p&gt;&#10;&lt;h3 id="add-an-autologin-user-called-knock"&gt;Add an autologin user called knock&lt;a class="heading-anchor" href="#add-an-autologin-user-called-knock" aria-label="Link to this section"&gt;&#10; &lt;svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"&#10; stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"&gt;&#10; &lt;path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/&gt;&#10; &lt;path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/&gt;&#10; &lt;/svg&gt;&#10; &lt;/a&gt;&#10;&lt;/h3&gt;&#10;&lt;p&gt;/usr/local/openvpn_as/scripts/sacli -u knock -k prop_autologin -v true UserPropPut&lt;/p&gt;</description></item><item><title>Setting hostname in an EC2 instance from the name tag</title><link>https://evan.wtf/2014/05/19/setting-hostname-in-an-ec2-instance-from-the-name-tag/</link><pubDate>Mon, 19 May 2014 15:24:09 +0000</pubDate><guid>https://evan.wtf/2014/05/19/setting-hostname-in-an-ec2-instance-from-the-name-tag/</guid><description>&lt;pre tabindex="0"&gt;&lt;code&gt;# pip install awscli&#10;# HOSTNAME=`aws ec2 describe-tags --region us-east-1 --filters Name=resource-id,Values=`curl http://169.254.169.254/latest/meta-data/instance-id 2&amp;gt; /dev/null` Name=key,Values=Name --output text --query &amp;#39;Tags[*].Value&amp;#39;`&#10;# hostname $HOSTNAME&#10;# hostname &amp;gt; /etc/hostname&#10;&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Use PowerShell to disconnect the CDROMs from all VMs in vCenter</title><link>https://evan.wtf/2013/04/20/use-powershell-to-disconnect-the-cdroms-from-all-vms-in-vcenter/</link><pubDate>Sat, 20 Apr 2013 14:59:36 +0000</pubDate><guid>https://evan.wtf/2013/04/20/use-powershell-to-disconnect-the-cdroms-from-all-vms-in-vcenter/</guid><description>&lt;p&gt;Recently I was moving all VMs from one NFS datastore to another so we could destroy the old volume. Storage vMotion took care of this for the most part, but even after moving the files, vCenter still showed that the VMs were using the old datastore. It turned out this was due to the VMs having mounted ISOs on that datastore. The solution was to eject/unmount the CDrom, but I didn&amp;rsquo;t want to do &amp;ldquo;Edit Settings&amp;hellip;&amp;rdquo; and manually remove the CDrom for 200+ VMs.&lt;/p&gt;</description></item></channel></rss>