<?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 'javax.script.ScriptException: *** Script Error *** null' TCL script problem in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/javax-script-scriptexception-script-error-null-tcl-script/m-p/27424#M2503</link>
    <description>Hello, &lt;BR /&gt;
I've wrote very simple script to rewrite IP address from vlan to management. It works as intended if executed from switch:&lt;BR /&gt;
/code&lt;BR /&gt;
enable cli scripting&lt;BR /&gt;
disable clipaging&lt;BR /&gt;
set var cli.out 0&lt;BR /&gt;
sh vlan mana | i 172&lt;BR /&gt;
set var ss $TCL(split ${cli.out} "\n")&lt;BR /&gt;
set var IP $TCL(regexp -inline {(?:\d+\.){3}\d+} $ss)&lt;BR /&gt;
#set var result $TCL(lindex $sline 3)&lt;BR /&gt;
show var IP&lt;BR /&gt;
configure vlan Mgmt ipaddress $IP 255.255.254.0&lt;BR /&gt;
/code&lt;BR /&gt;
&lt;BR /&gt;
Slot-1 D8_parter.4 # load script net.xsf&lt;BR /&gt;
172.17.200.30&lt;BR /&gt;
&lt;BR /&gt;
But when execute this one from XMC i got error:&lt;BR /&gt;
javax.script.ScriptException: &lt;BR /&gt;
*** Script Error ***&lt;BR /&gt;
null&lt;BR /&gt;
&lt;BR /&gt;
-&amp;gt; set ss $TCL(split ${cli.out} "\n")&lt;BR /&gt;
&lt;BR /&gt;
It looks like variable cli.out is NOT set propertly.&lt;BR /&gt;
&lt;BR /&gt;
Anyone has suggestion how to fix that ? &lt;BR /&gt;
&lt;BR /&gt;
Also i see that XMC sends own scripts as files to execute on switch - vide nms.xsf, maybe that is a solution ?&lt;BR /&gt;
&lt;BR /&gt;
Tomek</description>
    <pubDate>Wed, 05 Dec 2018 16:26:00 GMT</pubDate>
    <dc:creator>Tomasz_Lubas</dc:creator>
    <dc:date>2018-12-05T16:26:00Z</dc:date>
    <item>
      <title>'javax.script.ScriptException: *** Script Error *** null' TCL script problem</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/javax-script-scriptexception-script-error-null-tcl-script/m-p/27424#M2503</link>
      <description>Hello, &lt;BR /&gt;
I've wrote very simple script to rewrite IP address from vlan to management. It works as intended if executed from switch:&lt;BR /&gt;
/code&lt;BR /&gt;
enable cli scripting&lt;BR /&gt;
disable clipaging&lt;BR /&gt;
set var cli.out 0&lt;BR /&gt;
sh vlan mana | i 172&lt;BR /&gt;
set var ss $TCL(split ${cli.out} "\n")&lt;BR /&gt;
set var IP $TCL(regexp -inline {(?:\d+\.){3}\d+} $ss)&lt;BR /&gt;
#set var result $TCL(lindex $sline 3)&lt;BR /&gt;
show var IP&lt;BR /&gt;
configure vlan Mgmt ipaddress $IP 255.255.254.0&lt;BR /&gt;
/code&lt;BR /&gt;
&lt;BR /&gt;
Slot-1 D8_parter.4 # load script net.xsf&lt;BR /&gt;
172.17.200.30&lt;BR /&gt;
&lt;BR /&gt;
But when execute this one from XMC i got error:&lt;BR /&gt;
javax.script.ScriptException: &lt;BR /&gt;
*** Script Error ***&lt;BR /&gt;
null&lt;BR /&gt;
&lt;BR /&gt;
-&amp;gt; set ss $TCL(split ${cli.out} "\n")&lt;BR /&gt;
&lt;BR /&gt;
It looks like variable cli.out is NOT set propertly.&lt;BR /&gt;
&lt;BR /&gt;
Anyone has suggestion how to fix that ? &lt;BR /&gt;
&lt;BR /&gt;
Also i see that XMC sends own scripts as files to execute on switch - vide nms.xsf, maybe that is a solution ?&lt;BR /&gt;
&lt;BR /&gt;
Tomek</description>
      <pubDate>Wed, 05 Dec 2018 16:26:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/javax-script-scriptexception-script-error-null-tcl-script/m-p/27424#M2503</guid>
      <dc:creator>Tomasz_Lubas</dc:creator>
      <dc:date>2018-12-05T16:26:00Z</dc:date>
    </item>
  </channel>
</rss>

