How to reset a resource from CLI and run the command as dSeries job?
Workload Automation DE: 12.2 or above
The CLI can be executed as a Unix / Windows job. In Script / Command field enter the cli with path. In 'Arguments to pass' enter the required args that are needed to login to server. Then add the actual cli command after the login information.
Command: C:\CA\DE\bin\cli.bat
Arguments: de-server-address 7500 deuser pass "RESETRESOURCEPROPERTY NAME("MY_RESOURCE") PROPERTY("availability") VALUE(5)"
Change above "Command" to match your server install location (see example below). Above example uses port 7500, which is default client port, if DE was installed with different ports, then use that instead.
Note: Once a Resource has been update, use this command to see the changes:
listresourcestatus NAME("my_resource")
The resource updates are not reflected in the Services -> Resources.