<?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: TCL script || yes/no in DevNet General Discussions</title>
    <link>https://community.cisco.com/t5/devnet-general-discussions/tcl-script-yes-no/m-p/3799478#M1069</link>
    <description>&lt;P&gt;Look at this thread, you need to use regex to parse the output and take action based on output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.cisco.com/t5/network-management/tcl-cli-read-pattern/td-p/2261228" target="_blank"&gt;https://community.cisco.com/t5/network-management/tcl-cli-read-pattern/td-p/2261228&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Feb 2019 19:18:27 GMT</pubDate>
    <dc:creator>balaji.bandi</dc:creator>
    <dc:date>2019-02-11T19:18:27Z</dc:date>
    <item>
      <title>TCL script || yes/no</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/tcl-script-yes-no/m-p/3799428#M1068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need some help to do a script to accept "Yes" from CLI&lt;/P&gt;
&lt;P&gt;I want to do TCL Script to put this command:&amp;nbsp;vrf upgrade-cli multi-af-mode common-policies vrf&amp;nbsp;XXX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i insert this command on CLI, it´ll give me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ROUTER(config)#vrf upgrade-cli multi-af-mode common-policies vrf NAC&lt;BR /&gt;You are about to upgrade to the multi-AF VRF syntax commands.&lt;BR /&gt;You will lose any IPv6 addresses configured on interfaces&lt;BR /&gt;belonging to upgraded VRFs.&lt;/P&gt;
&lt;P&gt;Are you sure ? [yes]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My script will be something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tclsh&lt;BR /&gt;ios_config "vrf upgrade-cli multi-af-mode common-policies vrf XXX"&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;but then i don´t know to accept the "yes".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone give a suggest?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 10:59:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/tcl-script-yes-no/m-p/3799428#M1068</guid>
      <dc:creator>sebasttee</dc:creator>
      <dc:date>2019-03-01T10:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: TCL script || yes/no</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/tcl-script-yes-no/m-p/3799478#M1069</link>
      <description>&lt;P&gt;Look at this thread, you need to use regex to parse the output and take action based on output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.cisco.com/t5/network-management/tcl-cli-read-pattern/td-p/2261228" target="_blank"&gt;https://community.cisco.com/t5/network-management/tcl-cli-read-pattern/td-p/2261228&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 19:18:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/tcl-script-yes-no/m-p/3799478#M1069</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2019-02-11T19:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: TCL script || yes/no</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/tcl-script-yes-no/m-p/3800025#M1070</link>
      <description>&lt;P&gt;I have already looked to that thread. I'm not familiarize with this type of language. I was look for something easier.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 12:26:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/tcl-script-yes-no/m-p/3800025#M1070</guid>
      <dc:creator>sebasttee</dc:creator>
      <dc:date>2019-02-12T12:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: TCL script || yes/no</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/tcl-script-yes-no/m-p/3800177#M1071</link>
      <description>&lt;P&gt;I have found a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tclsh&lt;BR /&gt;foreach VRF {&lt;BR /&gt;aaa&lt;BR /&gt;bbb&lt;BR /&gt;} { puts "[ ios_config "vrf upgrade-cli multi-af-mode common-policies vrf $VRF" ]" }&lt;BR /&gt;yes&lt;BR /&gt;yes&lt;BR /&gt;tclquit&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 15:08:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/tcl-script-yes-no/m-p/3800177#M1071</guid>
      <dc:creator>sebasttee</dc:creator>
      <dc:date>2019-02-12T15:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: TCL script || yes/no</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/tcl-script-yes-no/m-p/3800256#M1072</link>
      <description>&lt;P&gt;good to know it was solved, the document have that command syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 16:35:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/tcl-script-yes-no/m-p/3800256#M1072</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2019-02-12T16:35:18Z</dc:date>
    </item>
  </channel>
</rss>

