...
- Line 1: The Connect-JS cmdlet connects to JOC Cockpit at the given URL and pre-selects the Master specified with the value of the
-Id
parameter. - Line 2: The return value of the
Connect-JS
cmdlet includes an array of Master instances that are connected to the given JOC Cockpit instance. This return value is piped to theWhere-Object
cmdlet to identify the currently active Master. The result object includes information such as the URL and state of the active Master. - The output of line 2 includes the active Master that is identified by the same JobScheduler ID that was specified for
Connect-JS
and by the attributeseverity=0
.