Sun Update Connection - Enterprise 1.0 User's Guide

ProcedureTo Upload a Macro from a Managed Host

If you selected Managed Host, follow this procedure.

  1. Click the Select Host button of the Host Name field.

    The Host Selection window opens.

  2. Select the managed host that has the file, and click OK.

    The Host Selection window closes. The host name appears in the Host Name field.

  3. In the File Name field, type the full path name of the file.

  4. Click Apply.

    The Status column indicates when the upload is done. Click Close to close the window, or Reset to add more.


Example 5–10 Adding a Macro with the CLI

The Add Target Local command is the same for Pre-actions, Post-actions, Configuration files, Macros, and Probes. The following syntax is for Macros.

In the CLI syntax, a category under the default Local categories is mandatory. See Example 5–1 on Example 5–1 for the Add Local Category CLI command. See Add Target Local (-atl) Command.


#! /bin/bash 

function login { 
  echo -n “Type your user name:” 
  read user 
  echo -n “Type your password:” 
  read password 
} 
function distro { 
  echo “Active distributions are:” 
  uce_cli -ld -u “$user” -p “$password” 
  echo -n “To which distro should this script be added?” 
  read distro 
  echo 
} 
function category { 
  echo “Under which category should this Macro be added?” 
  echo “Valid answers: any subcategory under Macros. See list:” 
  uce_cli -fc -T “Macros” -sons -D $distro -u “$user” -p “$password” > tmp.file 
  sed “s/ROOT\/Local\/Macros//” tmp.file 
  echo -n “Start your answer with / :” 
  read parent 
  rm tmp.file 
  echo 
} 
function setup { 
  echo -n “Type the full path name of the file to upload:” 
  read pathname 
  echo -n “Type a display name for the macro:” 
  read displayName 
} 
login 
distro 
category 
setup 
uce_cli -atl -f “$pathname” -pT “Macros$parent” -tM “$displayName” \
-D $distro -u “$user” -p “$password”