extract
You can use the command option to create a text file by copying item definitions from the database.
Overview
You can configure the command line syntax with different parameters to create
specific item definitions. You can either use create
or
extract
to copy item definitions. You must have
display access to the items being copied and
modify access, if you want to use the
;lock keyword.
Syntax and command line options
ocli model create | cr | extract | ext filename from Scheduling item [;lock]
For the list of scheduling parameters that you can use and the format that needs to
be followed, see the tables below. Scheduling items | Description |
---|---|
domain | dom
domainname |
If you provide a specific domainname, only that particular domain definition is copied and if not, all the domain definitions in the database are copied into the file. Wildcard characters are permitted. |
folder | fol
foldername |
You can specify the name of the folder. If you do not provide the foldername, all the folder definitions are copied into the file. Wildcard characters are permitted. |
jobs | jobdefinition | jd
[[folder/]workstationame#][folder/]jobname
|
If you provide a specific jobname only that particular job definition is copied and if not, all the job definitions are copied into the file. 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 copied and if not,
all the job stream definitions are copied into the file. 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
full: If you add the option, all the job definitions in the job stream are displayed. |
prompt | pr
[folder/]promptname |
If you provide a specific [folder/]promptname only that particular prompt definition is copied and if not, all the prompt definitions in the database are copied into the file. Wildcard characters are permitted. |
resource | re | reso
[folder/]resourcename |
If you provide a specific [folder/]resourcename only that particular resource definition is copied and if not, all the resource definitions in the database are copied into the file. Wildcard characters are permitted. |
runcyclegroup | rcg
[folder/]rcgname] |
If you provide a specific [folder/]rcgname] only that particular run cycle group definition is copied and if not, all the run cycle group definitions in the database are copied into the file. Wildcard characters are permitted. |
workstation | ws | cpu
[folder/]workstationame] |
You can specify the name of the workstation or workstation class or domain and optionally, you can provide the folder in which these items are located. Wildcard characters are permitted. |
workstationclass | wsc
[folder/]workstationclassname] |
If you provide a specific [folder/]workstationclassname] only that particular workstation class definition is copied and if not, all the workstation class definitions in the database are copied into the file. Wildcard characters are permitted. |
You can use the option to lock the selected items. If the selected items are locked by any other user, you cannot copy the definitions into the file.
Examples
- Run the following command to create the file
store
with all job streams defined in the database:ocli model cr store from jobstream=@
- Run the following command to create the file
mainvid.txt
with the definition of userrorshar
of workstationserv2356
, including the encrypted password:ocli model extract c:\mainvid.txt from user=serv2356#rorshar;password
The contents of filemainvid.txt
will be:USERNAME rorshar PASSWORD "ENCRYPT:EIu7PP+gvS8=" END