<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automating API commands and securing passwords in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Automating-API-commands-and-securing-passwords/m-p/6918#M62</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes we know this can be used in 7-mode. how can we use the &lt;SPAN style="color: #1f497d;"&gt;hosts&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN class="GRcorrect"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN class="GRnoSuggestion GRcorrect"&gt;equiv method (HOST) in C-Mode.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 17:46:42 GMT</pubDate>
    <dc:creator>robinpeter</dc:creator>
    <dc:date>2013-03-18T17:46:42Z</dc:date>
    <item>
      <title>Automating API commands and securing passwords</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Automating-API-commands-and-securing-passwords/m-p/6908#M60</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there. I have written some scripts using the undocumented system-cli API command. I am also using the apitest.pl script to run them. An example for running "cifs shares" is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perl apitest.pl -i $host $user $pass "&amp;lt;system-cli&amp;gt;&amp;lt;args&amp;gt;&amp;lt;arg&amp;gt;cifs&amp;lt;/arg&amp;gt;&amp;lt;arg&amp;gt;shares&amp;lt;/arg&amp;gt;&amp;lt;/args&amp;gt;&amp;lt;/system-cli&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two potential problems I see here:&lt;/P&gt;&lt;P&gt;1. The command takes in a plain text password. I have written something to turn off echo and take in a password typed in by the user running the script. This however is not convenient for scripts we want to run automatically, say from crontab. Is there any default way to go about securing a password for this cause? So far my conclusion has been to create a config file housing the encoded/encrypted password and decoding/decrypting it every time the script runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. As per my limited knowledge, these commands are sent unencrypted over port 80. Are there any ways to secure the transmission of these commands so the plain text username and password cannot be sniffed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the easiest solution is to use ssh keys and run the equivalent cli commands over the ssh session instead of using the api commands. This however requires a rewrite of my scripts. Are there any other known solutions when working with the API commands?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:14:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Automating-API-commands-and-securing-passwords/m-p/6908#M60</guid>
      <dc:creator>DRCLEND123</dc:creator>
      <dc:date>2025-06-05T06:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Automating API commands and securing passwords</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Automating-API-commands-and-securing-passwords/m-p/6913#M61</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) &lt;SPAN style="color: #1f497d;"&gt;You could add host &lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN class="GRcorrect"&gt;ip&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt; in the hosts&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN class="GRcorrect"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN class="GRnoSuggestion GRcorrect"&gt;equiv&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt; file. You don’t need to give password in the scripts provided your host is &lt;/SPAN&gt;&lt;SPAN class="GRcorrect" style="color: #1f497d;"&gt;secured&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt; enough.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;2) SDK also has a HTTPS transport type (uses port 443) that you can set while making your connection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 06:24:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Automating-API-commands-and-securing-passwords/m-p/6913#M61</guid>
      <dc:creator>aashray</dc:creator>
      <dc:date>2012-12-11T06:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Automating API commands and securing passwords</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Automating-API-commands-and-securing-passwords/m-p/6918#M62</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes we know this can be used in 7-mode. how can we use the &lt;SPAN style="color: #1f497d;"&gt;hosts&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN class="GRcorrect"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN class="GRnoSuggestion GRcorrect"&gt;equiv method (HOST) in C-Mode.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 17:46:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Automating-API-commands-and-securing-passwords/m-p/6918#M62</guid>
      <dc:creator>robinpeter</dc:creator>
      <dc:date>2013-03-18T17:46:42Z</dc:date>
    </item>
  </channel>
</rss>

