Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

MIDServerSelector- Global

The MIDServerSelector script include provides methods to find a MID Server based on capabilities and target IP address.

Use in server scripts to find a MID Server with specific capabilities.

Parent Topic:Server API reference

MIDServerSelector - MIDServerSelector()

Creates an instance of MIDServerSelector.

NameTypeDescription
None  
TypeDescription
void 

MIDServerSelector - findAgent(String target)

Finds the MID server based on the capabilities and target IP address.

NameTypeDescription
targetStringThe target IP address
TypeDescription
void 
var mss = new MIDServerSelector();
var capab = ["ssh","wmi","snmp"];
mss.setCapabilities(capab);
mss.findAgent('100.101.10.10');

MIDServerSelector - getError()

Gets the error messages for the current MID server.

NameTypeDescription
None  
TypeDescription
void 
var mss = new MIDServerSelector();
var capab = ["ssh","wmi","snmp"];
mss.setCapabilities(capab);
mss.findAgent('100.101.10.10');
mss.getError();

MIDServerSelector - getWarning()

Gets the warning messages for the current MID server.

NameTypeDescription
None  
TypeDescription
void 
var mss = new MIDServerSelector();
var capab = ["ssh","wmi","snmp"];
mss.setCapabilities(capab);
mss.findAgent('100.101.10.10');
mss.getWarning();

MIDServerSelector - setCapabilities(Array capabilities)

Sets the technologies for which to look.

NameTypeDescription
capabilitiesArrayA list of capabilities, for example - capabilities = ["ssh","wmi","snmp",{"os_domain":"disco"},{"phase":1}];
TypeDescription
void 
var mss = new MIDServerSelector();
var capab = ["ssh","wmi","snmp"];
mss.setCapabilities(capab);