Table of Contents

Method IsInMaintenance

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

IsInMaintenance(IActionableElement)

Gets a value indicating whether the specified element in the redundancy group is in maintenance mode.

public bool IsInMaintenance(IActionableElement element)

Parameters

element IActionableElement

The element in the redundancy group.

Returns

bool

true if the specified element is in maintenance mode; otherwise, false.

Examples

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

bool isInMaintenance = redundancyGroup.IsInMaintenance(mainElement);

Exceptions

ArgumentException

The redundancy group was not found.

ArgumentException

The element was not found in this redundancy group.

IsInMaintenance(string)

Gets a value indicating whether the specified element in the redundancy group is in maintenance mode.

public bool IsInMaintenance(string name)

Parameters

name string

The name of the element in the redundancy group.

Returns

bool

true if the specified element is in maintenance mode; otherwise, false.

Examples

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

bool isInMaintenance = redundancyGroup.IsInMaintenance("MyMainElement");

Exceptions

ArgumentException

The redundancy group was not found.

ArgumentException

The element was not found in this redundancy group.

IsInMaintenance(int, int)

Gets a value indicating whether the specified element in the redundancy group is in maintenance mode.

public bool IsInMaintenance(int dmaid, int eid)

Parameters

dmaid int

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

eid int

The element ID of the element in the redundancy group.

Returns

bool

true if the specified element is in maintenance mode; otherwise, false.

Examples

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

bool isInMaintenance = redundancyGroup.IsInMaintenance(200, 4000);

Exceptions

ArgumentException

The redundancy group was not found.

ArgumentException

The element was not found in this redundancy group.