Use of DE / dSeries Cli command to reset the resource
search cancel

Use of DE / dSeries Cli command to reset the resource

book

Article ID: 408070

calendar_today

Updated On:

Products

ESP dSeries Workload Automation

Issue/Introduction

How to reset a resource from CLI and run the command as dSeries job?

Environment

Workload Automation DE: 12.2 or above

Resolution

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.