We know that we can set the parameters to enable the polling of CDP and LLDP in several drivers by specifying the driver, version, parameter, value and the devices that we want to apply the changes.
Basically we are going to use a correlation rule so when an alarm triggers the rule, a script enable CDP/LLDP in the devices of several drivers.
There's any way to automate the multiple set with an automation script?
Hi, this could indeed be done by letting the correlation rule trigger an automation script. That script receives the necessary information from the correlation engine, including the element ID and name. This can be used to execute the set(s).
For more information see the following pages in our documentation:
Hopefully this can already help you further.
Hi Jesus, that’s certainly possible. The engine object in an automation script has the “FindElementsByProtocol” method that allows to retrieve all elements using the specified protocol.
public void Run(IEngine engine)
{
var elements = engine.FindElementsByProtocol(“protocol X”, “version X”);
foreach (var element in elements)
{
element.SetParameter(123, value);
}
Thank you very much Tom.
Thank you Tom.
But I have the doubt if the multiple set can be apply by this automation script several times for different drivers.
So if an element X is created, the correlation rule trigger an automation script that enables cdp for al devices with the driver Y, and then enables cdp for all devices with the driver Z and so on.
In that case we don’t have to get the information from the element created, just apply a multiple set.