<?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: failsafe account configuration script in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44623#M5975</link>
    <description>i try that with an XMC Script and also failed.&lt;BR /&gt;
&lt;BR /&gt;
CLI configure failsafe-account deny all&lt;BR /&gt;
CLI configure failsafe-account permit serial&lt;BR /&gt;
&lt;BR /&gt;
CLI configure failsafe-account&lt;BR /&gt;
CLI failsafe&lt;BR /&gt;
CLI abcd1234&lt;BR /&gt;
CLI abcd1234&lt;BR /&gt;
&lt;BR /&gt;
Test run:&lt;BR /&gt;
&lt;BR /&gt;
CLI Login: admin&lt;BR /&gt;
X440G2-48p-10G4 10.1.1.211 08/26/2019 04:41:45 PM at 04:41:45 PM&lt;BR /&gt;
04:41:45 PM&lt;BR /&gt;
X440G2-48p-10G4.1 # configure failsafe-account deny all&lt;BR /&gt;
X440G2-48p-10G4.2 # &lt;BR /&gt;
&lt;BR /&gt;
X440G2-48p-10G4.2 # configure failsafe-account permit serial&lt;BR /&gt;
X440G2-48p-10G4.3 # &lt;BR /&gt;
&lt;BR /&gt;
Error: session exceeded timeout: 30 secs&lt;BR /&gt;
Error: session exceeded timeout: 30 secs&lt;BR /&gt;
Error: session exceeded timeout: 30 secs&lt;BR /&gt;
enter password again: &lt;BR /&gt;
X440G2-48p-10G4.4 # &lt;BR /&gt;
&lt;BR /&gt;
It seems XMC does not recognize switch prompt.</description>
    <pubDate>Mon, 26 Aug 2019 21:43:00 GMT</pubDate>
    <dc:creator>M_Nees</dc:creator>
    <dc:date>2019-08-26T21:43:00Z</dc:date>
    <item>
      <title>failsafe account configuration script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44614#M5966</link>
      <description>Hi Guys&lt;BR /&gt;
&lt;BR /&gt;
I have the below script which is suppose to set the failsafe and admin account passwords. It however just hangs at the first line; Disable clipaging&lt;BR /&gt;
&lt;BR /&gt;
#@MetaDataStart&lt;BR /&gt;
#@DetailDescriptionStart&lt;BR /&gt;
#############################################################################################&lt;BR /&gt;
# Define your user parameters in this section. For reference, see bundled scripts.&lt;BR /&gt;
##############################################################################################&lt;BR /&gt;
#@DetailDescriptionEnd&lt;BR /&gt;
#@MetaDataEnd&lt;BR /&gt;
#Enter all CLI commands from here&lt;BR /&gt;
disable clipaging&lt;BR /&gt;
#Set failsafe-account&lt;BR /&gt;
config failsafe-account&lt;BR /&gt;
regexp {.*enter failsafe user name:.*} ${CLI.OUT} foundfailsafe1&lt;BR /&gt;
  IF ([info exists foundfailsafe1]) THEN&lt;BR /&gt;
   CLI FailSafeAccount&lt;BR /&gt;
  ENDIF &lt;BR /&gt;
regexp {.*enter failsafe password:.*} ${CLI.OUT} foundfailsafe2&lt;BR /&gt;
  IF ([info exists foundfailsafe2]) THEN&lt;BR /&gt;
   CLI FailSafePassword&lt;BR /&gt;
  ENDIF &lt;BR /&gt;
regexp {.*enter password again:.*} ${CLI.OUT} foundfailsafe3&lt;BR /&gt;
  IF ([info exists foundfailsafe3]) THEN&lt;BR /&gt;
   CLI FailSafePassword&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
configure failsafe-account permit all&lt;BR /&gt;
#Configure Local Admin password&lt;BR /&gt;
configure account "admin" password&lt;BR /&gt;
regexp {.*Current user's password:.*} ${CLI.OUT} AdminAccount1&lt;BR /&gt;
  IF ([info exists AdminAccount1]) THEN&lt;BR /&gt;
   CLI Admin&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
regexp {.*New password:.*} ${CLI.OUT} AdminAccount2&lt;BR /&gt;
  IF ([info exists AdminAccount2]) THEN&lt;BR /&gt;
   CLI AdminPassword&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
regexp {.*Reenter password:.*} ${CLI.OUT} AdminAccount3&lt;BR /&gt;
  IF ([info exists AdminAccount3]) THEN&lt;BR /&gt;
   CLI AdminPassword&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
regexp {.*overwrite it?.*} ${CLI.OUT} foundit1&lt;BR /&gt;
  IF ([info exists foundit1]) THEN&lt;BR /&gt;
   CLI yes&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
 save&lt;BR /&gt;
regexp {.*overwrite it?.*} ${CLI.OUT} foundit2&lt;BR /&gt;
  IF ([info exists foundit2]) THEN&lt;BR /&gt;
   CLI yes&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
  &lt;BR /&gt;
enable clipaging&lt;BR /&gt;
&lt;BR /&gt;
so the question is, can this be scripted? Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 15 Feb 2018 19:24:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44614#M5966</guid>
      <dc:creator>Justsomebodi</dc:creator>
      <dc:date>2018-02-15T19:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: failsafe account configuration script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44615#M5967</link>
      <description>Try to add: &lt;I&gt;enable cli scripting&lt;/I&gt; at the begining&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:40:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44615#M5967</guid>
      <dc:creator>Michal_Rz</dc:creator>
      <dc:date>2018-02-15T20:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: failsafe account configuration script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44616#M5968</link>
      <description>Hi &lt;BR /&gt;
&lt;BR /&gt;
Thanks for the reply. That didn't work.</description>
      <pubDate>Thu, 15 Feb 2018 20:40:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44616#M5968</guid>
      <dc:creator>Justsomebodi</dc:creator>
      <dc:date>2018-02-15T20:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: failsafe account configuration script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44617#M5969</link>
      <description>So i get the below debug error, which sort off indicates I am missing something.&lt;BR /&gt;
&lt;BR /&gt;
2018-02-15 14:03:36,919 DEBUG [com.extremenetworks.epicenter.server.deviceCommunicator.session.cli.DeviceCliSession] 192.168.5.15|Completed Command|config failsafe-account permit all|&lt;BR /&gt;
2018-02-15 14:03:36,920 DEBUG [com.extremenetworks.epicenter.server.deviceCommunicator.scriptInterpreter.ExecuteCLICommand] timeout for cli [CLI config failsafe-account] 55 seconds.&lt;BR /&gt;
2018-02-15 14:03:36,920 DEBUG [com.extremenetworks.epicenter.server.deviceCommunicator.session.cli.DeviceCliSession] 192.168.5.15|Processing Command|config failsafe-account|&lt;BR /&gt;
2018-02-15 14:03:39,245 DEBUG [com.extremenetworks.epicenter.server.scripting.beans.impl.ExpiringScriptCache] Expiring Script Cache:size=2] Found: 386&lt;BR /&gt;
2018-02-15 14:03:43,433 DEBUG [com.extremenetworks.epicenter.server.scripting.beans.impl.ExpiringScriptCache] Expiring Script Cache:size=2] Found: 386&lt;BR /&gt;
2018-02-15 14:03:46,976 ERROR [com.extremenetworks.ScriptingEngine]  | 192.168.5.15 : Error: Timeout waiting for cli response&lt;BR /&gt;
2018-02-15 14:03:46,978 DEBUG [com.extremenetworks.epicenter.server.deviceCommunicator.beans.impl.DeviceCommunicatorManagerBean] Error||Exception&lt;BR /&gt;
tcl.lang.TclException: Error: Timeout waiting for cli response</description>
      <pubDate>Fri, 16 Feb 2018 19:15:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44617#M5969</guid>
      <dc:creator>Justsomebodi</dc:creator>
      <dc:date>2018-02-16T19:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: failsafe account configuration script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44618#M5970</link>
      <description>The problem here seems to be that the "configure failsafe-account" command requires an interactive prompt.  The switch/script is waiting for you to enter the user and password and times out.  Try a simpler approach to entering that info just by adding it to the next lines after the command:&lt;BR /&gt;
&lt;BR /&gt;
configure failsafe-acount&lt;BR /&gt;
&lt;U&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;/U&gt;</description>
      <pubDate>Fri, 16 Feb 2018 23:01:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44618#M5970</guid>
      <dc:creator>Chad_Smith1</dc:creator>
      <dc:date>2018-02-16T23:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: failsafe account configuration script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44619#M5971</link>
      <description>Thanks for that, it still hangs.</description>
      <pubDate>Fri, 16 Feb 2018 23:01:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44619#M5971</guid>
      <dc:creator>Justsomebodi</dc:creator>
      <dc:date>2018-02-16T23:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: failsafe account configuration script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44620#M5972</link>
      <description>I actually tried the simple version above myself and it worked.   What did your script look like (password omitted of course)?</description>
      <pubDate>Fri, 16 Feb 2018 23:01:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44620#M5972</guid>
      <dc:creator>Chad_Smith1</dc:creator>
      <dc:date>2018-02-16T23:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: failsafe account configuration script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44621#M5973</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
See below. This is a Oneview script not a Netsite command script.&lt;BR /&gt;
&lt;BR /&gt;
#@MetaDataStart&lt;BR /&gt;
#@DetailDescriptionStart&lt;BR /&gt;
#############################################################################################&lt;BR /&gt;
# Define your user parameters in this section. For reference, see bundled scripts.&lt;BR /&gt;
##############################################################################################&lt;BR /&gt;
#@DetailDescriptionEnd&lt;BR /&gt;
#@MetaDataEnd&lt;BR /&gt;
#Enter all CLI commands from here&lt;BR /&gt;
disable clipaging&lt;BR /&gt;
#Set failsafe-accountconfigure failsafe-account&lt;BR /&gt;
CLI user&lt;BR /&gt;
CLI password&lt;BR /&gt;
CLI password&lt;BR /&gt;
configure failsafe-account permit all&lt;BR /&gt;
#Configure Local Admin password&lt;BR /&gt;
configure account "admin" password&lt;BR /&gt;
regexp {.*Current user's password:.*} ${CLI.OUT} AdminAccount1&lt;BR /&gt;
  IF ([info exists AdminAccount1]) THEN&lt;BR /&gt;
   CLI Admin&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
regexp {.*New password:.*} ${CLI.OUT} AdminAccount2&lt;BR /&gt;
  IF ([info exists AdminAccount2]) THEN&lt;BR /&gt;
   CLI AdminPassword&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
regexp {.*Reenter password:.*} ${CLI.OUT} AdminAccount3&lt;BR /&gt;
  IF ([info exists AdminAccount3]) THEN&lt;BR /&gt;
   CLI AdminPassword&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
regexp {.*overwrite it?.*} ${CLI.OUT} foundit1&lt;BR /&gt;
  IF ([info exists foundit1]) THEN&lt;BR /&gt;
   CLI yes&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
 save&lt;BR /&gt;
regexp {.*overwrite it?.*} ${CLI.OUT} foundit2&lt;BR /&gt;
  IF ([info exists foundit2]) THEN&lt;BR /&gt;
   CLI yes&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
  &lt;BR /&gt;
enable clipaging</description>
      <pubDate>Fri, 16 Feb 2018 23:01:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44621#M5973</guid>
      <dc:creator>Justsomebodi</dc:creator>
      <dc:date>2018-02-16T23:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: failsafe account configuration script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44622#M5974</link>
      <description>So the same concept applies to the local admin accounts as well.  This script is attempting to read CLI.OUT and respond.  That isn't necessary.  Just simply enter the responses for the prompted input line by line.&lt;BR /&gt;
&lt;BR /&gt;
#@MetaDataStart&lt;BR /&gt;
#@DetailDescriptionStart&lt;BR /&gt;
#############################################################################################&lt;BR /&gt;
# Define your user parameters in this section. For reference, see bundled scripts.&lt;BR /&gt;
##############################################################################################&lt;BR /&gt;
#@DetailDescriptionEnd&lt;BR /&gt;
#@MetaDataEnd&lt;BR /&gt;
#Enter all CLI commands from here&lt;BR /&gt;
disable clipaging&lt;BR /&gt;
#Set failsafe-account&lt;BR /&gt;
configure failsafe-account&lt;BR /&gt;
&lt;U&gt;&lt;BR /&gt;
&lt;BR /&gt;
configure failsafe-account permit all&lt;BR /&gt;
#Configure Local Admin password&lt;BR /&gt;
configure account "admin" password&lt;BR /&gt;
&lt;CURRENTPASSWORD&gt;&lt;BR /&gt;
&lt;NEWPASSWORD&gt;&lt;BR /&gt;
&lt;NEWPASSWORD&gt;&lt;BR /&gt;
enable clipaging&lt;BR /&gt;&lt;/NEWPASSWORD&gt;&lt;/NEWPASSWORD&gt;&lt;/CURRENTPASSWORD&gt;&lt;/U&gt;</description>
      <pubDate>Fri, 16 Feb 2018 23:01:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44622#M5974</guid>
      <dc:creator>Chad_Smith1</dc:creator>
      <dc:date>2018-02-16T23:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: failsafe account configuration script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44623#M5975</link>
      <description>i try that with an XMC Script and also failed.&lt;BR /&gt;
&lt;BR /&gt;
CLI configure failsafe-account deny all&lt;BR /&gt;
CLI configure failsafe-account permit serial&lt;BR /&gt;
&lt;BR /&gt;
CLI configure failsafe-account&lt;BR /&gt;
CLI failsafe&lt;BR /&gt;
CLI abcd1234&lt;BR /&gt;
CLI abcd1234&lt;BR /&gt;
&lt;BR /&gt;
Test run:&lt;BR /&gt;
&lt;BR /&gt;
CLI Login: admin&lt;BR /&gt;
X440G2-48p-10G4 10.1.1.211 08/26/2019 04:41:45 PM at 04:41:45 PM&lt;BR /&gt;
04:41:45 PM&lt;BR /&gt;
X440G2-48p-10G4.1 # configure failsafe-account deny all&lt;BR /&gt;
X440G2-48p-10G4.2 # &lt;BR /&gt;
&lt;BR /&gt;
X440G2-48p-10G4.2 # configure failsafe-account permit serial&lt;BR /&gt;
X440G2-48p-10G4.3 # &lt;BR /&gt;
&lt;BR /&gt;
Error: session exceeded timeout: 30 secs&lt;BR /&gt;
Error: session exceeded timeout: 30 secs&lt;BR /&gt;
Error: session exceeded timeout: 30 secs&lt;BR /&gt;
enter password again: &lt;BR /&gt;
X440G2-48p-10G4.4 # &lt;BR /&gt;
&lt;BR /&gt;
It seems XMC does not recognize switch prompt.</description>
      <pubDate>Mon, 26 Aug 2019 21:43:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44623#M5975</guid>
      <dc:creator>M_Nees</dc:creator>
      <dc:date>2019-08-26T21:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: failsafe account configuration script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44624#M5976</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; &lt;P&gt;If you are doing the configuration from Extreme Management Center then I believe the issue is the following:&lt;/P&gt; &lt;P&gt;After each command execution, the Extreme Management Center&amp;nbsp;does wait for prompt.&lt;/P&gt; &lt;P&gt;The prompt is defined in CLIRules.xml&lt;/P&gt; &lt;P&gt;We need to create&amp;nbsp;myCLIRules.xml and handle the prompt properly.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;The other option is to use Python and instruct the send function to not wait for the prompt.&lt;/P&gt; &lt;PRE&gt;&lt;CODE&gt;emc_cli.send( 'configure failsafe-account', False)&lt;BR /&gt;&lt;BR /&gt;emc_cli.send( 'failUser',&amp;nbsp;False)&lt;BR /&gt;&lt;BR /&gt;emc_cli.send( 'failPassword', False)&lt;BR /&gt;&lt;BR /&gt;emc_cli.send( 'failPassword', False)&lt;/CODE&gt;&lt;/PRE&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 17:45:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/failsafe-account-configuration-script/m-p/44624#M5976</guid>
      <dc:creator>Zdeněk_Pala</dc:creator>
      <dc:date>2019-11-28T17:45:00Z</dc:date>
    </item>
  </channel>
</rss>

