<?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 Scripting in Oneview for Cisco devices - Invalid input in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/tcl-scripting-in-oneview-for-cisco-devices-invalid-input/m-p/41346#M5214</link>
    <description>Hello Nightrest,&lt;BR /&gt;
&lt;BR /&gt;
I think you have to add this line:&lt;BR /&gt;
&lt;BR /&gt;
&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set var abort_when_error no&lt;BR /&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Stephan</description>
    <pubDate>Tue, 04 Dec 2018 16:01:00 GMT</pubDate>
    <dc:creator>StephanH</dc:creator>
    <dc:date>2018-12-04T16:01:00Z</dc:date>
    <item>
      <title>TCL Scripting in Oneview for Cisco devices - Invalid input</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/tcl-scripting-in-oneview-for-cisco-devices-invalid-input/m-p/41345#M5213</link>
      <description>I am working on a TCL script that would role through ports on a Cisco chassis and check the vlan regardless of how many blades it had in it.  &lt;BR /&gt;
&lt;BR /&gt;
My issue is that if my script gets an error when i do a "show interface " command the script ends.  I want the script to continue even if i encounter an error... I have read about docs about catch statements but havent been able to get them to work.  Here is a snippet of my code...&lt;BR /&gt;
&lt;BR /&gt;
&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set var EGRESS "GigabitEthernet"&lt;BR /&gt;set var PortNumber 1&lt;BR /&gt;set var BladeNumber 0&lt;BR /&gt;set var ErrorOnBlade "% Invalid input detected at '^' marker."&lt;BR /&gt;while {$BladeNumber != 9} {&lt;BR /&gt;	show interfaces $EGRESS $BladeNumber/0/$PortNumber switchport | include Access&lt;BR /&gt;    if {[regexp $ErrorOnBlade $CLI.OUT] !=0} {&lt;BR /&gt;		incr BladeNumber 1&lt;BR /&gt;	}&lt;BR /&gt;    &lt;BR /&gt;	while {$PortNumber != 25 } {&lt;BR /&gt;	CLI show interfaces $EGRESS $BladeNumber/0/$PortNumber switchport | include Access&lt;BR /&gt;	if {[regexp "Access Mode VLAN: $VLANID" $CLI.OUT] !=0} {&lt;BR /&gt;   			CLI config t&lt;BR /&gt;    		CLI interface $EGRESS 1/0/$PortNumber &lt;BR /&gt;    		CLI switchport mode access&lt;BR /&gt;    		CLI switchport access vlan $NEWVLANID&lt;BR /&gt;    		CLI exit&lt;BR /&gt;            CLI exit&lt;BR /&gt;            }&lt;BR /&gt;		&lt;BR /&gt;  		incr PortNumber 1&lt;BR /&gt;	}&lt;BR /&gt;    incr BladeNumber 1&lt;BR /&gt;    set var PortNumber 1&lt;BR /&gt;        puts $BladeNumber&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
OUTPUT&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
R-changed# show interfaces GigabitEthernet 0/0/1 switchport | include Access&lt;BR /&gt;
                     ^&lt;BR /&gt;
% Invalid input detected at '^' marker.&lt;BR /&gt;
&lt;BR /&gt;
R-changed#&lt;BR /&gt;
** Aborting execution of script because cli-mode is set to abort-on-error *&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Any help or ideas would be great.</description>
      <pubDate>Fri, 30 Nov 2018 04:32:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/tcl-scripting-in-oneview-for-cisco-devices-invalid-input/m-p/41345#M5213</guid>
      <dc:creator>Nightrest</dc:creator>
      <dc:date>2018-11-30T04:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: TCL Scripting in Oneview for Cisco devices - Invalid input</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/tcl-scripting-in-oneview-for-cisco-devices-invalid-input/m-p/41346#M5214</link>
      <description>Hello Nightrest,&lt;BR /&gt;
&lt;BR /&gt;
I think you have to add this line:&lt;BR /&gt;
&lt;BR /&gt;
&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set var abort_when_error no&lt;BR /&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Stephan</description>
      <pubDate>Tue, 04 Dec 2018 16:01:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/tcl-scripting-in-oneview-for-cisco-devices-invalid-input/m-p/41346#M5214</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-12-04T16:01:00Z</dc:date>
    </item>
  </channel>
</rss>

