<?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 Prompt for input / edit script? in Scripting</title>
    <link>https://community.extremenetworks.com/t5/scripting/prompt-for-input-edit-script/m-p/19592#M90</link>
    <description>Create Date: Aug 23 2012  8:29AM&lt;BR /&gt;
&lt;BR /&gt;
I am writing a 'default' config script, basically to apply all of our default settings for a switch. &lt;BR /&gt;
&lt;BR /&gt;
What i would like to do, but can do without, is to prompt the users for a number and assign that number as the IP of the switch.&lt;BR /&gt;
&lt;BR /&gt;
command equiv:&lt;BR /&gt;
configure vlan VLAN-Default ipa 192.168.1.X&lt;BR /&gt;
&lt;BR /&gt;
I know i can make a variable and think i could apply the variable to the command, however i am not sure if it is possible to interupt a script to ask for input / resume script.&lt;BR /&gt;
&lt;BR /&gt;
I want to know if during a script i can prompt the user to enter a number and apply that number to X / then execute that command and move on.&lt;BR /&gt;
&lt;BR /&gt;
Alternatively I can tell users to just edit the script each time and change the IP to whatever it needs to be (not use a variable).  I want to IP the switch as part of the general config so that i can also add default route, dns, etc (at least the default route won't enter until the vlan is IP'd).&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
  (from Nick_Lindhag)</description>
    <pubDate>Wed, 08 Jan 2014 05:50:00 GMT</pubDate>
    <dc:creator>EtherNation_Use</dc:creator>
    <dc:date>2014-01-08T05:50:00Z</dc:date>
    <item>
      <title>Prompt for input / edit script?</title>
      <link>https://community.extremenetworks.com/t5/scripting/prompt-for-input-edit-script/m-p/19592#M90</link>
      <description>Create Date: Aug 23 2012  8:29AM&lt;BR /&gt;
&lt;BR /&gt;
I am writing a 'default' config script, basically to apply all of our default settings for a switch. &lt;BR /&gt;
&lt;BR /&gt;
What i would like to do, but can do without, is to prompt the users for a number and assign that number as the IP of the switch.&lt;BR /&gt;
&lt;BR /&gt;
command equiv:&lt;BR /&gt;
configure vlan VLAN-Default ipa 192.168.1.X&lt;BR /&gt;
&lt;BR /&gt;
I know i can make a variable and think i could apply the variable to the command, however i am not sure if it is possible to interupt a script to ask for input / resume script.&lt;BR /&gt;
&lt;BR /&gt;
I want to know if during a script i can prompt the user to enter a number and apply that number to X / then execute that command and move on.&lt;BR /&gt;
&lt;BR /&gt;
Alternatively I can tell users to just edit the script each time and change the IP to whatever it needs to be (not use a variable).  I want to IP the switch as part of the general config so that i can also add default route, dns, etc (at least the default route won't enter until the vlan is IP'd).&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
  (from Nick_Lindhag)</description>
      <pubDate>Wed, 08 Jan 2014 05:50:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/prompt-for-input-edit-script/m-p/19592#M90</guid>
      <dc:creator>EtherNation_Use</dc:creator>
      <dc:date>2014-01-08T05:50:00Z</dc:date>
    </item>
    <item>
      <title>RE: Prompt for input / edit script?</title>
      <link>https://community.extremenetworks.com/t5/scripting/prompt-for-input-edit-script/m-p/19593#M91</link>
      <description>Create Date: Aug 23 2012  9:45AM&lt;BR /&gt;
&lt;BR /&gt;
For prompting of variables at the command line.&lt;BR /&gt;
&lt;BR /&gt;
set var myVar $READ(Description.)&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps  (from john_padilla)</description>
      <pubDate>Wed, 08 Jan 2014 05:50:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/prompt-for-input-edit-script/m-p/19593#M91</guid>
      <dc:creator>EtherNation_Use</dc:creator>
      <dc:date>2014-01-08T05:50:00Z</dc:date>
    </item>
    <item>
      <title>RE: Prompt for input / edit script?</title>
      <link>https://community.extremenetworks.com/t5/scripting/prompt-for-input-edit-script/m-p/19594#M92</link>
      <description>Create Date: Aug 26 2012  6:25PM&lt;BR /&gt;
&lt;BR /&gt;
OR, if you need only one (or two) variables - you can pass them to the script as parameters (using $CLI.ARGV1 ..."load script myScript variable1 variable2")&lt;BR /&gt;
&lt;BR /&gt;
For more variables, the GUI version is the best one; $READ works anytime so it will be your call in the end.  (from Eugen_NAIMAN)</description>
      <pubDate>Wed, 08 Jan 2014 05:50:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/prompt-for-input-edit-script/m-p/19594#M92</guid>
      <dc:creator>EtherNation_Use</dc:creator>
      <dc:date>2014-01-08T05:50:00Z</dc:date>
    </item>
  </channel>
</rss>

