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 2147483647.
Syntax and command line options
You must provide a quantity to run the command. You can run the command as
follows:
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 2147483647 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
- To update the quantity of SRC1 to
100, run the following
command.
ocli plan cr SRC1 100 - To update the quantity of all resources to 100, run the
following
command.
ocli plan cr @#@ 100