modify

You can use the command option to update the existing scheduling items in the database.

Overview

The command option performs similar to new command, when you want to modify an item that is not available in the database. When you run the command, the selected item definition is copied and opened in a temporary file. You can then edit the file and replace the existing item.

Syntax and command line options

You must provide at least one scheduling item with the command to perform the action.
ocli model modify|m Scheduling item
Important: If you modify an item by changing its key, a new item is created without modifying the existing one. You can use the rename command to modify the item.
For the list of scheduling parameters that you can use and the format that needs to be followed, see the tables below.
Table 1. Scheduling items
Scheduling items Description
folder | fol foldername You can specify the name of the folder. If you do not provide the foldername, all the folder definitions in the database are displayed in a file for editing. Wildcard characters are permitted.
jobs | jobdefinition | jd [[folder/]workstationame#][folder/]jobname If you provide a specific jobname only that particular job definition is displayed for editing and if not, all the job definitions are displayed. You can provide [folder/]workstationame#] and the folder in which the job is defined to make the selection more specific. Wildcard characters are permitted.
sched | jobstream | js [[folder/]workstationame#][folder/]jstreamname[valid from date|valid to date |valid in date date][;full]] If you provide a specific jstreamname only that particular job stream definition is displayed for editing and if not, all the job stream definitions are displayed. You can provide [folder/]workstationame#] and the folder in which the job stream is defined to make the selection more specific. Wildcard characters are permitted. You can also add the options below to provide more details of the job stream.

Valid from date: You can specify a date which will restrict the selection of job streams, that have a valid from date equal to the value specified. The format is mm/dd/yyyy.

Valid to date: You can specify a date which will restrict the selection of job streams, that have a valid to date equal to the value specified. The format is mm/dd/yyyy.

valid in date date: Specify the time frame at which the job is run. You can specify one of the dates as @. The format is mm/dd/yyyy-mm/dd/yyyy.

full: If you add the option, all the job definitions in the job stream are displayed for editing.

workstation | ws | cpu [folder/]workstationame] You can specify the name of the workstation that you want to update. Optionally, you can provide the folder in which the items are located. If you do not specify the workstationame, all the calendar definitions in the database are displayed in a file for editing. Wildcard characters are permitted.

Examples

  1. Run the following command to edit all the job definitions:
    ocli model modify job @
  2. Run the following command to modify the job stream FINAL located at folder TEAMS that is launched on workstation WS1:
    ocli model modify sched WS1#TEAMS/FINAL