Table of Contents

Method SetMaintenanceMode

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

SetMaintenanceMode(IActionableElement, bool)

Sets the maintenance mode of the specified element in the redundancy group.

public void SetMaintenanceMode(IActionableElement element, bool inMaintenance)

Parameters

element IActionableElement

The element in the redundancy group.

inMaintenance bool

true to set in maintenance mode; otherwise, false (normal mode).

Examples

var redundancyGroup = engine.FindRedundancyGroup("MyRedundancyGroup");
var mainElement = engine.FindElement("MyMainElement");

redundancyGroup.SetMaintenanceMode(mainElement, true);

SetMaintenanceMode(string, bool)

Sets the maintenance mode of the specified element in the redundancy group.

public void SetMaintenanceMode(string name, bool inMaintenance)

Parameters

name string

The name of the element in the redundancy group.

inMaintenance bool

true to set in maintenance mode; otherwise, false (normal mode).

Examples

var redundancyGroup = engine.FindRedundancyGroup("MyRedundancyGroup");

redundancyGroup.SetMaintenanceMode("MyMainElement", true);

SetMaintenanceMode(int, int, bool)

Sets the maintenance mode of the specified element in the redundancy group.

public void SetMaintenanceMode(int dmaid, int eid, bool inMaintenance)

Parameters

dmaid int

The DataMiner Agent ID of the element in the redundancy group.

eid int

The ID of the element in the redundancy group.

inMaintenance bool

true to set in maintenance mode; otherwise, false (normal mode).

Examples

var redundancyGroup = engine.FindRedundancyGroup("MyRedundancyGroup");

redundancyGroup.SetMaintenanceMode(200, 4000, true);