Hi, i have a cli command which sets a multicast route within an Arista Switch. This is working fine in the explorer sections of the element.
Now i want to put this in to a c# script. i made it till the point that after executing the script the command appears in the explorer window but it is not executed to the switch. I think i miss something like the "Submit Request" Button in the Explorer.
My Question is how can i execute the "Submit Request Button" via a c# script?
Hi Jan,
You'll need to "press" the "submit request" button from your script, after setting the list of desired commands.
Please find an example below:
Element myArista = engine.FindElement("Arista DCS-7050");
if(myArista == null || !myArista.IsActive)
{
engine.ExitFail("Element not found or stopped");
}// set the list of commands ';' separated
myArista.SetParameter("Commands", "show interface ethernet 1");// trigger the element to send the commands to the arista
myArista.SetParameter(6010, 1);
Thanks for your prompt support. That was exact what i was searching for, this is now working!