cancel
Showing results for 
Search instead for 
Did you mean: 

Worflow : Send email with multiple outputs

Worflow : Send email with multiple outputs

COUTURET
New Contributor
Hi all,

I'm trying to create a workflow in which I would connect to all switches to retrieve ports which are not included in netlogin.
My goal is to create a HTML table with all the devices and the ports and send it to myself.

But it seems that in the workflow script, you can either have input for devices/ports or without ( I presume mainly to do stuff related to NBI, API, ...)

If I go for a input with all the selected switches, how can I retreive all the ouputs of my switches at the end of the script ?

Else if I go for the script/workflow with no device selected, how can I do an emc_send() to a specific switch ? 
I already tried to get my switches from NBI and rewrite emc_vars["deviceIP"] and then do emc_send() without success.

Any ideas or workaround would be much appreciated.
Thank you all,
Theo
1 ACCEPTED SOLUTION

Zdeněk_Pala
Extreme Employee
each activity can create its own output and store it to the filesystem = executed in concurrent.
then the next activity will read all files and combine it to one output
the next activity will send the email
the next activity will wait 60 seconds and then delete temporary files

Take inspiration at ERS port counters at GitHub
Regards Zdeněk Pala

View solution in original post

2 REPLIES 2

COUTURET
New Contributor
Thanks ! That was exactly what I was looking for !

Zdeněk_Pala
Extreme Employee
each activity can create its own output and store it to the filesystem = executed in concurrent.
then the next activity will read all files and combine it to one output
the next activity will send the email
the next activity will wait 60 seconds and then delete temporary files

Take inspiration at ERS port counters at GitHub
Regards Zdeněk Pala
GTM-P2G8KFN