<?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: Workflow: inclusive parallel and mail activity not working properly (coding help needed) in Scripting</title>
    <link>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61567#M368</link>
    <description>&lt;P&gt;Yes&amp;nbsp;i am using this forum as last chance before opening a GTAC case.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;BLOCKQUOTE&gt; &lt;P&gt;In your workflow you can only get one email per worflow execution.&lt;/P&gt; &lt;P&gt;You could create a loop to go through all the devices but this is not supported by the support, you could create infinite loops.&lt;/P&gt; &lt;P&gt;It is better to create one mail for all devices with the email object or to handle the mail generation directly with python code and not the email object.&lt;/P&gt; &lt;/BLOCKQUOTE&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;I thought that every device that enters the workflow could trigger the email box activity as it does for every other activity box of the workflow.&amp;nbsp; I don’t get the meaning of havig a mail&amp;nbsp;box activity that can be triggered only once per workflow.&lt;/P&gt; &lt;P&gt;All great ideas, thank you so much for the sharing however I feel much comfortable with creating only one summary email using a temporary list or file support rather than creating unsupported loops or handling the emails with Python.&lt;/P&gt; &lt;P&gt;If we do all with Python we can call it a script instead of a workflow , i hope for a future where we can rely on the stability and functionality of the workflow activity boxes.&lt;/P&gt; &lt;P&gt;Best regards&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2020 14:51:29 GMT</pubDate>
    <dc:creator>Alessandro_Maio</dc:creator>
    <dc:date>2020-04-06T14:51:29Z</dc:date>
    <item>
      <title>Workflow: inclusive parallel and mail activity not working properly (coding help needed)</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61563#M364</link>
      <description>&lt;P&gt;Gentle hubber,&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;this is my workflow&amp;nbsp;schema&lt;/P&gt; &lt;FIGURE&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="dcdb18b341be4083843855284c363465_dc76b7fe-20ef-4c0d-bef1-1086d31778e0.jpg"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/5991iFEF03027F6DFEB81/image-size/large?v=v2&amp;amp;px=999" role="button" title="dcdb18b341be4083843855284c363465_dc76b7fe-20ef-4c0d-bef1-1086d31778e0.jpg" alt="dcdb18b341be4083843855284c363465_dc76b7fe-20ef-4c0d-bef1-1086d31778e0.jpg" /&gt;&lt;/span&gt;&lt;/FIGURE&gt;&lt;P&gt;It is a simple workflow that runs on any JunOS device in our netwkork environment once a day. It launches “show chassis alarms” to look for some particular malfunctions that are not sysloggable by the device. If there are alarms they are written in a log file on the server and and email is prepaired for every device containing its own alarms.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;There are five workflow’s scope variables to handle this passage of informations:&lt;/P&gt; &lt;UL&gt;&lt;LI&gt;GLB_found: is the most important since it can be initialized with “nothing”, “alarms”, “errors” and use&amp;nbsp;the inclusive parallel selection to trigger the right path.&lt;/LI&gt; &lt;LI&gt;GLB_cli_output: filled with switch alarms&lt;/LI&gt; &lt;LI&gt;GLB_file_path: used to manage the log file position on the server&lt;/LI&gt; &lt;LI&gt;GLB_switch_header: it passes&amp;nbsp;the email object field like i want it to be&lt;/LI&gt; &lt;LI&gt;GLB_email_body: it is filled with alarms&lt;/LI&gt; &lt;/UL&gt;&lt;P&gt;Two things are not working&amp;nbsp;after more that 300 attempts. Here it is the first: the central inclusive parallel don’t trigger the right path even though i can see that the variables are correctly valorized and the check is made looking if the variable GLB_found is “Equals to” “nothing”/”alarms”/”errors”.&lt;/P&gt; &lt;P&gt;The second one is: when (randomly) the inclusive trigger the alarms path, only one email is sent for one device evev if there are multiple devices choosen by me that should be there.&lt;/P&gt; &lt;P&gt;If you want i can past the code of each box here.&lt;/P&gt; &lt;P&gt;Thank you for the support&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 14:24:21 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61563#M364</guid>
      <dc:creator>Alessandro_Maio</dc:creator>
      <dc:date>2020-04-03T14:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: inclusive parallel and mail activity not working properly (coding help needed)</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61564#M365</link>
      <description>&lt;P&gt;Alessandro,&lt;/P&gt; &lt;P&gt;Are you running XMC version 8.4.2.38?&lt;/P&gt; &lt;P&gt;I’ve been hitted by such behavior after upgrade to 8.4.2.38 and rewrote the workflow to not use the gateway object (paraallel with O inside).&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;Mig&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 01:57:29 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61564#M365</guid>
      <dc:creator>Miguel-Angel_RO</dc:creator>
      <dc:date>2020-04-05T01:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: inclusive parallel and mail activity not working properly (coding help needed)</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61565#M366</link>
      <description>&lt;P&gt;Hi Miguel,&lt;/P&gt; &lt;P&gt;thank you for sharing. Yes i am using XMC&amp;nbsp;8.4.2.38.&lt;/P&gt; &lt;P&gt;Wow, it could mean that there is&amp;nbsp;a bug on&amp;nbsp;this new version.&amp;nbsp;Help me understand the behaviour you’ve got. You mean that only the gateway object is not working for you either.&amp;nbsp;is&amp;nbsp;it?&lt;/P&gt; &lt;P&gt;And what about the email activity box?&amp;nbsp;Before the XMC upgrade even if the inclusive parallel was working better i had only&amp;nbsp;1 email per workflow instead of 1 per device. But this could be another issue.&lt;/P&gt; &lt;P&gt;However rewriting the workflow to avoid using the gateway could be a workaround and at the same time i could focus on the emal activity box issue.&lt;/P&gt; &lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 14:06:28 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61565#M366</guid>
      <dc:creator>Alessandro_Maio</dc:creator>
      <dc:date>2020-04-06T14:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: inclusive parallel and mail activity not working properly (coding help needed)</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61566#M367</link>
      <description>&lt;P&gt;Alessandro,&lt;/P&gt; &lt;P&gt;In my case only the gateway was not functioning but I don’t use the email object as such.&lt;/P&gt; &lt;P&gt;I suggest to open a case at GTAC to address this.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;In your workflow you can only get one email per worflow execution.&lt;/P&gt; &lt;P&gt;You could create a loop to go through all the devices but this is not supported by the support, you could create infinite loops.&lt;/P&gt; &lt;P&gt;It is better to create one mail for all devices with the email object or to handle the mail generation directly with python code and not the email object.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;Mig&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 14:19:21 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61566#M367</guid>
      <dc:creator>Miguel-Angel_RO</dc:creator>
      <dc:date>2020-04-06T14:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: inclusive parallel and mail activity not working properly (coding help needed)</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61567#M368</link>
      <description>&lt;P&gt;Yes&amp;nbsp;i am using this forum as last chance before opening a GTAC case.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;BLOCKQUOTE&gt; &lt;P&gt;In your workflow you can only get one email per worflow execution.&lt;/P&gt; &lt;P&gt;You could create a loop to go through all the devices but this is not supported by the support, you could create infinite loops.&lt;/P&gt; &lt;P&gt;It is better to create one mail for all devices with the email object or to handle the mail generation directly with python code and not the email object.&lt;/P&gt; &lt;/BLOCKQUOTE&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;I thought that every device that enters the workflow could trigger the email box activity as it does for every other activity box of the workflow.&amp;nbsp; I don’t get the meaning of havig a mail&amp;nbsp;box activity that can be triggered only once per workflow.&lt;/P&gt; &lt;P&gt;All great ideas, thank you so much for the sharing however I feel much comfortable with creating only one summary email using a temporary list or file support rather than creating unsupported loops or handling the emails with Python.&lt;/P&gt; &lt;P&gt;If we do all with Python we can call it a script instead of a workflow , i hope for a future where we can rely on the stability and functionality of the workflow activity boxes.&lt;/P&gt; &lt;P&gt;Best regards&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 14:51:29 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61567#M368</guid>
      <dc:creator>Alessandro_Maio</dc:creator>
      <dc:date>2020-04-06T14:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: inclusive parallel and mail activity not working properly (coding help needed)</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61568#M369</link>
      <description>&lt;P&gt;The 8.4.3 will address the bug with conditions. 8.4.3 is expected mid April (very soon).&lt;/P&gt; &lt;P&gt;There is a fix available for 8.4.2. Ask GTAC.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;regarding the email, one of options you have:&lt;/P&gt; &lt;UL&gt;&lt;LI&gt;each activity can store the content to the unique file (user+workflow_name+IP)&lt;/LI&gt; &lt;LI&gt;the next activity will combine content of those files and prepare email&lt;/LI&gt; &lt;LI&gt;the email will be generated with combination&lt;/LI&gt; &lt;/UL&gt;&lt;P&gt;As inspiration you can use&amp;nbsp;&lt;A href="https://github.com/extremenetworks/ExtremeScripting/blob/master/Netsight/oneview_workflows/xwf/ERS_Devices_Report-8.4.1.23v108.xwf?raw=true" target="_blank" rel="nofollow noreferrer noopener"&gt;ERS inventory&lt;/A&gt;&amp;nbsp;workflow.&lt;/P&gt; &lt;P&gt;Good luck and stay safe!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 05:38:48 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61568#M369</guid>
      <dc:creator>Zdeněk_Pala</dc:creator>
      <dc:date>2020-04-09T05:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: inclusive parallel and mail activity not working properly (coding help needed)</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61569#M370</link>
      <description>&lt;P&gt;Hi Zdenek,&lt;/P&gt; &lt;P&gt;yes i am in a safe place working at home. Great&amp;nbsp;that there will be an&amp;nbsp;imminent update and for the GTAC option.&lt;/P&gt; &lt;P&gt;I was somehow thinking about the file way you mentioned even if i am not so sure how to deal with device count or info combination.&amp;nbsp;I was even already studying the workflow you send me, i found it on&amp;nbsp;&lt;A href="https://github.com/extremenetworks/ExtremeScripting/tree/master/Netsight/oneview_workflows" target="_blank" rel="nofollow noreferrer noopener"&gt;https://github.com/extremenetworks/ExtremeScripting/tree/master/Netsight/oneview_workflows&lt;/A&gt;&lt;/P&gt; &lt;P&gt;as ERS inventory.&lt;/P&gt; &lt;P&gt;The script is a bit complex to understand for me but i am learning a lot studying it&lt;/P&gt; &lt;P&gt;Thank you, best regards&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 14:40:34 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61569#M370</guid>
      <dc:creator>Alessandro_Maio</dc:creator>
      <dc:date>2020-04-09T14:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: inclusive parallel and mail activity not working properly (coding help needed)</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61570#M371</link>
      <description>&lt;P&gt;If you contact me directly (zpala), we can schedule online session and go through the workflow. I agree the workflow is complex, but the idea is not so difficult to explain.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 14:56:14 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61570#M371</guid>
      <dc:creator>Zdeněk_Pala</dc:creator>
      <dc:date>2020-04-09T14:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow: inclusive parallel and mail activity not working properly (coding help needed)</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61571#M372</link>
      <description>&lt;P&gt;Wow thank you for this&amp;nbsp;availability,&lt;/P&gt; &lt;P&gt;In which platform do you mean you we can schedule the session with the nickname zpala? Skype? Zoom?&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 15:27:10 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-inclusive-parallel-and-mail-activity-not-working/m-p/61571#M372</guid>
      <dc:creator>Alessandro_Maio</dc:creator>
      <dc:date>2020-04-09T15:27:10Z</dc:date>
    </item>
  </channel>
</rss>

