The CLI command to submit a job runs one task on a single selected host or group. See Submit Job (-sj) Command.
#! /bin/bash echo -n “Enter your user name:” read user echo -n “Enter your password:” read password echo -n “Type a name for this job:” read jobname echo -n “Do you want to run this job on a host or a group? (h|g):” read hostgroup if [ $hostgroup = “h” ];then echo “Hosts are:” uce_cli -lah -u “$user” -p “$password” else echo “Groups are:” uce_cli -lg -u “$user” -p “$password” fi echo -n “Copy host or group name to receive job:” read selected echo “Profiles are:” uce_cli -lp -u “$user” -p “$password” echo -n “Copy profile to use:” read profile echo “Policies are:” uce_cli -lc -u “$user” -p “$password” echo -n “Copy policy to use:” read policy echo “Simulating $jobname” uce_cli -sj -j “$jobname” -P “$profile” -C “$policy” -$hostgroup “$selected” -us -sm -u “$user” -p “$password” echo -n “Do you want to deploy $jobname? (y|n)” read yes if [ $yes = “y” ]; then uce_cli -sj -j “$jobname Deployed” -P “$profile” -C “$policy” -$hostgroup “$selected” -us -dp -u “$user” -p “$password” fi |