unlock

You can use the command option to unlock a scheduling item that are locked.

Overview

You can unlock an item which is locked by you. You must have the unlock access to the scheduling items.

Syntax and command line options

You must provide at least one scheduling item with the command to perform the action. You can create the command as described below.
ocli model unlock|un Scheduling item [;forced]
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 must specify the name of the folder that you want to unlock. Wildcard characters are permitted.
jobs | jobdefinition | jd [[folder/]workstationame#][folder/]jobname If you provide a specific jobname only that particular job definition is locked and if not, all the job definitions are unlocked. 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 unlocked and if not, all the job stream definitions are unlocked. 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 unlock. Optionally, you can provide the folder in which the items are located. Wildcard characters are permitted.
forced

You can use this option to unlock item definitions that are locked by your user id, regardless of the session.

Examples

  1. Run the following command to unlock the job definition way2:
    ocli model unlock jd=@#way2
  2. Run the following command to unlock the folder delhi:
    ocli model unlock folder /delhi