Hello,
Aside from editing the timeout value directly as shown below, is any other option to do the requested in bulk ? For e.g., using a script ? Thank you.
Hi Arun,
Yes, this is possible through an SLNET call, however, I think it should also be possible to do it in the Class Library which is prefered. I don't have an off-the-shelf example though with the Class Library.
Example with SLNET call:
public void ChangeNimbraCommunity(Engine engine, Element myElement, int timeoutTime)
{
LiteElementInfoEvent leimyElement = GetElementLiteInfo(engine, myElement);
if(!string.IsNullOrWhiteSpace(leimyElement.Name))
{
if (leimyElement.PortInfo.Length == 2)
{
leimyElement.PortInfo[0].TimeoutTime = timeoutTime;
}
AddElementMessage aemRequest = new AddElementMessage
{
AlarmTemplate = leimyElement.AlarmTemplate,
CreateDVEs = leimyElement.CreateDVEs,
DataMinerID = leimyElement.DataMinerID,
Description = leimyElement.Description,
ElementID = leimyElement.ElementID,
ElementName = leimyElement.Name,
HostingDataMinerID = leimyElement.HostingAgentID,
IsHidden = leimyElement.Hidden,
IsReadOnly = leimyElement.IsReadOnly,
IsReplicationActive = leimyElement.IsReplicated,
KeepOnline = leimyElement.KeepOnline,
Ports = leimyElement.PortInfo,
ProtocolName = leimyElement.Protocol,
ProtocolVersion = leimyElement.ProtocolVersion,
State = leimyElement.State,
TrendTemplate = leimyElement.TrendTemplate,
Type = leimyElement.Type,
};
engine.SendSLNetSingleResponseMessage(aemRequest);
}
}