<?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 Insight VM workflow to update in Scripting</title>
    <link>https://community.extremenetworks.com/t5/scripting/insight-vm-workflow-to-update/m-p/119028#M583</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.extremenetworks.com/t5/user/viewprofilepage/user-id/31466"&gt;@Ludovico_Steven&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;A small improvement to your "Deploy Insight VM" workflow.&lt;/P&gt;&lt;P&gt;By default, with Fabric Engine 9.0.4.0, XIQ-SE 25.5.10.64, the script fails at "terminal more disable".&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error: cli session was closed
Aborting script due to error on previous command
Aborting because this command failed: terminal more disable
Traceback (most recent call last):&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Looking at others workflow, it looks like the command&amp;nbsp;sendCLI_showCommand() for the very first command, needs to be sent with a retry (my guess is that the script is faster than the time it takes for the session to open).&lt;/P&gt;&lt;P&gt;So&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sendCLI_showCommand(CLI_Dict[Family]['disable_more_paging'])&lt;/LI-CODE&gt;&lt;P&gt;should be replaced with&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sendCLI_showCommand(CLI_Dict[Family]['disable_more_paging'], retries=cliRetries, retryDelay=cliRetryDelay)&lt;/LI-CODE&gt;&lt;P&gt;with either cliRetries and cliRetryDelay set in the script, or defined in the workflow and referenced as variables.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;try:
        cliRetries           = int( emc_vars['const_CLI_RETRIES'] )
    except:
        cliRetries           = 6
    try:
        cliRetryDelay        = int( emc_vars['const_CLI_RETRY_DELAY'] )
    except:
        cliRetryDelay        = 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;With this short correction the workflow works fine.&lt;/P&gt;&lt;P&gt;Also if I can suggest a small improvement, it would be to rollback the installation if the workflow does not complete. I ran the workflow and it failed at the VM deployment (due to a misconfiguration), if I want to rerun the workflow it fails since the VM tpvm already exists. This is out of my coding skills to implement this improvement though, but for information.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 08:33:23 GMT</pubDate>
    <dc:creator>Yoann_Jonard</dc:creator>
    <dc:date>2025-06-25T08:33:23Z</dc:date>
    <item>
      <title>Insight VM workflow to update</title>
      <link>https://community.extremenetworks.com/t5/scripting/insight-vm-workflow-to-update/m-p/119028#M583</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.extremenetworks.com/t5/user/viewprofilepage/user-id/31466"&gt;@Ludovico_Steven&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;A small improvement to your "Deploy Insight VM" workflow.&lt;/P&gt;&lt;P&gt;By default, with Fabric Engine 9.0.4.0, XIQ-SE 25.5.10.64, the script fails at "terminal more disable".&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error: cli session was closed
Aborting script due to error on previous command
Aborting because this command failed: terminal more disable
Traceback (most recent call last):&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Looking at others workflow, it looks like the command&amp;nbsp;sendCLI_showCommand() for the very first command, needs to be sent with a retry (my guess is that the script is faster than the time it takes for the session to open).&lt;/P&gt;&lt;P&gt;So&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sendCLI_showCommand(CLI_Dict[Family]['disable_more_paging'])&lt;/LI-CODE&gt;&lt;P&gt;should be replaced with&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sendCLI_showCommand(CLI_Dict[Family]['disable_more_paging'], retries=cliRetries, retryDelay=cliRetryDelay)&lt;/LI-CODE&gt;&lt;P&gt;with either cliRetries and cliRetryDelay set in the script, or defined in the workflow and referenced as variables.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;try:
        cliRetries           = int( emc_vars['const_CLI_RETRIES'] )
    except:
        cliRetries           = 6
    try:
        cliRetryDelay        = int( emc_vars['const_CLI_RETRY_DELAY'] )
    except:
        cliRetryDelay        = 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;With this short correction the workflow works fine.&lt;/P&gt;&lt;P&gt;Also if I can suggest a small improvement, it would be to rollback the installation if the workflow does not complete. I ran the workflow and it failed at the VM deployment (due to a misconfiguration), if I want to rerun the workflow it fails since the VM tpvm already exists. This is out of my coding skills to implement this improvement though, but for information.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 08:33:23 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/insight-vm-workflow-to-update/m-p/119028#M583</guid>
      <dc:creator>Yoann_Jonard</dc:creator>
      <dc:date>2025-06-25T08:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Insight VM workflow to update</title>
      <link>https://community.extremenetworks.com/t5/scripting/insight-vm-workflow-to-update/m-p/119034#M585</link>
      <description>&lt;P&gt;Hi Yoann&lt;/P&gt;&lt;P&gt;Thanks for reporting the issue! I have made the changes and re-posted version 103 of the workflow to Github.&lt;/P&gt;&lt;P&gt;About reverting the switch back to initial state (trashing the partially created VM..) please use this XIQ-SE script for that :&lt;BR /&gt;&lt;A href="https://github.com/extremenetworks/ExtremeScripting/blob/master/XMC_XIQ-SE/oneview_CLI_scripts/xml/Delete_Insight_VMs.xml" target="_self"&gt;https://github.com/extremenetworks/ExtremeScripting/blob/master/XMC_XIQ-SE/oneview_CLI_scripts/xml/Delete_Insight_VMs.xml&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Ludovico&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 13:21:49 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/insight-vm-workflow-to-update/m-p/119034#M585</guid>
      <dc:creator>Ludovico_Steven</dc:creator>
      <dc:date>2025-06-25T13:21:49Z</dc:date>
    </item>
  </channel>
</rss>

