<?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 Non-Interactive &amp;quot;sp setup&amp;quot; Command From SSH in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Non-Interactive-quot-sp-setup-quot-Command-From-SSH/m-p/102174#M20718</link>
    <description>&lt;P&gt;I'm trying to configure our NetApps using Plink from SSH and I have the entire thing working except for the "sp setup" command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This command is interactive and requires the user to enter "y", "n", IP, Netmask, Gateway in response to several prompts that pop up after you run the sp setup command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't seem to find a way to automate these entries so that they don't prompt the user for input or hang the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried "echo y|plink.exe .........." and that will work for the first prompt, but the second I try to add any additional inputs for the later prompts, all of the input fails (ex:&amp;nbsp; (echo y&amp;amp;echo n)|plink.exe .......)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to pipe input into the sp setup command right from the command line of the SSH window with no user interaction?&amp;nbsp; Perhaps something I could type by hand in a manual SSH session just to verify that it works, along the lines of echo y|sp setup or echo y&amp;gt;(sp setup)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is some fancy command I could do using "priv set advanced"?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 04:47:31 GMT</pubDate>
    <dc:creator>ArtieMan66</dc:creator>
    <dc:date>2025-06-05T04:47:31Z</dc:date>
    <item>
      <title>Non-Interactive "sp setup" Command From SSH</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Non-Interactive-quot-sp-setup-quot-Command-From-SSH/m-p/102174#M20718</link>
      <description>&lt;P&gt;I'm trying to configure our NetApps using Plink from SSH and I have the entire thing working except for the "sp setup" command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This command is interactive and requires the user to enter "y", "n", IP, Netmask, Gateway in response to several prompts that pop up after you run the sp setup command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't seem to find a way to automate these entries so that they don't prompt the user for input or hang the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried "echo y|plink.exe .........." and that will work for the first prompt, but the second I try to add any additional inputs for the later prompts, all of the input fails (ex:&amp;nbsp; (echo y&amp;amp;echo n)|plink.exe .......)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to pipe input into the sp setup command right from the command line of the SSH window with no user interaction?&amp;nbsp; Perhaps something I could type by hand in a manual SSH session just to verify that it works, along the lines of echo y|sp setup or echo y&amp;gt;(sp setup)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is some fancy command I could do using "priv set advanced"?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 04:47:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Non-Interactive-quot-sp-setup-quot-Command-From-SSH/m-p/102174#M20718</guid>
      <dc:creator>ArtieMan66</dc:creator>
      <dc:date>2025-06-05T04:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Non-Interactive "sp setup" Command From SSH</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Non-Interactive-quot-sp-setup-quot-Command-From-SSH/m-p/102546#M20810</link>
      <description>&lt;P&gt;For automating interactive programs, I would prefer using "expect" on a Linux system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simple script for example, does telnet to a remote server and executes "ls" command;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/usr/bin/expect&lt;/P&gt;&lt;P&gt;spawn telnet 192.168.0.1&lt;/P&gt;&lt;P&gt;expect "login:"&lt;/P&gt;&lt;P&gt;send "root\r"&lt;/P&gt;&lt;P&gt;expect "Passsword:"&lt;/P&gt;&lt;P&gt;send "PaSsWoRd\r"&lt;/P&gt;&lt;P&gt;expect "#"&lt;/P&gt;&lt;P&gt;send "ls\r"&lt;/P&gt;&lt;P&gt;exit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dont know whether it works on windows platform &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 10:27:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Non-Interactive-quot-sp-setup-quot-Command-From-SSH/m-p/102546#M20810</guid>
      <dc:creator>georgevj</dc:creator>
      <dc:date>2015-03-31T10:27:32Z</dc:date>
    </item>
  </channel>
</rss>

