ElectricFlow's web UI search function is powerful, but the output table can't be customized to display specific properties. This makes some searches (such as getting all the job step IDs of running jobs) tedious to conduct. The UI search is also not very helpful if search results are needed for some automated task.
Use ec-perl's findObjects API to search for jobSteps that match the criteria, then parse the XML response object for relevant values to either print to log or save for other use. With the right parameters and filters, this method can also be expanded to search for objects other than job steps and criteria other than status.
The following script searches for all job steps that are waiting on resources. It then prints the job ID, job name, job step ID, step name, and status message of each of those step.
To see what the return object for findObjects looks like and what properties are accessible by default for each object, add this line to print it:
Please consult ElectricFlow documentation for more details and examples on the findObjects API.
- Product versions: all
- OS versions: all