Sun Update Connection - Enterprise 1.0 User's Guide

Submit Job (-sj) Command

The submit-job command creates a job from a profile, a confirmation policy, and a selected host or group, and submits it to the dependency manager.

Parameter

  • -j jobname Specify the name of the new job. If you do not supply this value, the job is given a name based on the date and time it was sent.

  • -P profile Specify the name of an existing profile.

  • -C policy Specify the name of an existing policy.

  • -h hostname Specify a single host name on which to run the job. This parameter cannot be used with the -g parameter.

  • -g groupname Specify a group name on which to run the job. This parameter cannot be used with the -h parameter.

Flag

  • -us Use only secure components to fulfill dependency requirements.

  • -dp Run the job in deploy mode. You must specify this flag if you want the job to actually make changes to the target host.

  • -sm Run the job in simulation mode. Jobs are run in simulation mode by default.

Syntax

uce_cli -sj [ -j "jobname" ] -P "profile" -C "policy" ( -g "groupname" | -h hostname ) [ -us ] ( -dp | -sm ) -u username -p password

Example

uce_cli -sj -j MakeWebServer -P webserverApps -C autoSW -h lnx13 -us -dp -u admin -p 123

uce_cli -sj -j 31_12_2003 -P UpgradeApache -C "Always ask me" -g webservers -sm -u admin -p 123

Either -h or -g must be given. If you do not give either -dp or -sm, the default mode for the job is simulate (not deploy).

To get a valid value for the -j parameter, use the -ljs command. To get a valid value for the -P parameter, use the -lp command. To get a valid value for the -C parameter, use the -lc command. To get a valid value for the -h parameter, use the -lah command. To get a valid value for the -g parameter, use the -lg command.