MIDServerSelector - Global

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

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

MIDServerSelector - findAgent(String target)

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

Table 1. Parameters
Name Type Description
target String The target IP address
Table 2. Returns
Type Description
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.

Table 3. Parameters
Name Type Description
None
Table 4. Returns
Type Description
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.

Table 5. Parameters
Name Type Description
None
Table 6. Returns
Type Description
void
var mss = new MIDServerSelector();
var capab = ["ssh","wmi","snmp"];
mss.setCapabilities(capab);
mss.findAgent('100.101.10.10');
mss.getWarning();

MIDServerSelector - MIDServerSelector()

Creates an instance of MIDServerSelector.

Table 7. Parameters
Name Type Description
None
Table 8. Returns
Type Description
void

MIDServerSelector - setCapabilities(Array capabilities)

Sets the technologies for which to look.

Table 9. Parameters
Name Type Description
capabilities Array A list of capabilities, for example - capabilities = ["ssh","wmi","snmp",{"os_domain":"disco"},{"phase":1}];
Table 10. Returns
Type Description
void
var mss = new MIDServerSelector();
var capab = ["ssh","wmi","snmp"];
mss.setCapabilities(capab);