MIDServerCluster - clusterExists()

Determines if a cluster exists.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean True if a cluster exists; otherwise, false.
var midgr = new GlideRecord("ecc_agent");
midgr.addQuery("name", "al1winmid");
midgr.query();
midgr.next();
 
var mscl = new MIDServerCluster(midgr);
gs.print(mscl.clusterExists());

Output: true