change resource

You can use the changeresource command to update the quantity of a resource.

Overview

You can either increase or decrease the quantity of a single resource or else all the resources at the same time. The maximum number of units that you can add to a single resource is 2,147,483,647.

Syntax and command line options

You must provide a quantity to run the command. You can run the command as described below:
ocli plan [change resource | cr | resource] [[/workstationfolder/workstationname#/foldername/resourcename] | [workstationname#/foldername/resourcename] | [/foldername/resourcename] | resourcename] quantity ;noask
Resourcename
Enter the resource key to display a specific definition or use wildcard characters to display all the resource definitions at the same time. If the resource is defined in the root folder, specify only the name of the resource. Otherwise add the resource key that contains the workstation name and folder name as follows:
[[/workstationfolder/workstationname#/foldername/resourcename] | [workstationname#/foldername/resourcename] | [/foldername/resourcename] | resourcename]
Quantity
Specify any positive integer as quantity. You can enter any value up to 2,147,483,647 units.
noask
When you add the noask option as an attribute, the agent does not ask for confirmation before it acts on each qualifying item.

Examples

  1. Run the following command to update the quantity of RES1 to 100.
    ocli plan cr res1 100
  2. Run the following command to update the quantity of all resources to 100.
    ocli plan cr @#@ 100