<?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: How to answer Yes and No question using paramiko (scripting) in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-to-answer-yes-and-no-question-using-paramiko-scripting/m-p/89709#M21178</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I never used paramiko, but if you happen to have XMC, you should consider porting your script to it. XMC would take care of all of that for you and you could more easily manage these questions.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 18:28:06 GMT</pubDate>
    <dc:creator>Stephane_Grosj1</dc:creator>
    <dc:date>2019-11-08T18:28:06Z</dc:date>
    <item>
      <title>How to answer Yes and No question using paramiko (scripting)</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-to-answer-yes-and-no-question-using-paramiko-scripting/m-p/89708#M21177</link>
      <description>&lt;P&gt;I need to save configuration on switch extreme. The command is :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;save configuration "File Name"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After of command's execution i need to answer 2 question.&lt;/P&gt;&lt;P&gt;First:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Do you want to save configuration ? (y/N) -&amp;gt; I have to say Yes&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Second:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Do you want to make "File Name".cfg the default database? (y/N) -&amp;gt; I have to say No&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am using paramiko for command execution.&lt;/P&gt;&lt;P&gt;Below is a piece of my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ssh = paramiko.SSHClient()&lt;BR /&gt;ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())&lt;BR /&gt;ssh.connect(server, username=username, password=password)&lt;BR /&gt;stdin, stdout, stderr = ssh.exec_command('save configuration '+ backupFileName)&lt;BR /&gt;#Now i need to say first Yes and then NO&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Someone could help me?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 17:04:56 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-to-answer-yes-and-no-question-using-paramiko-scripting/m-p/89708#M21177</guid>
      <dc:creator>Elegua</dc:creator>
      <dc:date>2019-11-05T17:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to answer Yes and No question using paramiko (scripting)</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-to-answer-yes-and-no-question-using-paramiko-scripting/m-p/89709#M21178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I never used paramiko, but if you happen to have XMC, you should consider porting your script to it. XMC would take care of all of that for you and you could more easily manage these questions.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 18:28:06 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-to-answer-yes-and-no-question-using-paramiko-scripting/m-p/89709#M21178</guid>
      <dc:creator>Stephane_Grosj1</dc:creator>
      <dc:date>2019-11-08T18:28:06Z</dc:date>
    </item>
  </channel>
</rss>

