Sun Update Connection - Enterprise 1.0 User's Guide

ProcedureTo Add a File Declaration

  1. Log in with full permissions or as the admin user.

  2. From the drop-down list in the tool bar, select a distribution-architecture.

    The Components list shows Local components applied to the selected distribution.

  3. From the Components list select Local/Configuration Files/[category].

  4. Do one of the following:

    • From the tool bar, click the Add Component button.

    • Right-click the selected category and choose Local -> Add.

    • From the Components menu, choose Local -> Add.

      The Add Target File Declaration window opens.

  5. In the Target File path name text-field, type the path name where you want the files that will be held under this declaration to be installed on the target hosts. Do not delete the starting back-slash.

  6. Type a free-text description.

  7. Check each distribution to which this file should be applied.

  8. Click Apply.

    The status column indicates when the file declaration is uploaded to the knowledge base.

  9. Click Close.

    The Add Target File Declaration window closes.

    The file declaration is created. A file with a suffix of -Unknown is also created. This is a placeholder and prevents accidental overwrites.


Example 5–7 Adding a File Declaration with the CLI

You may add a file declaration to all distributions (default; do not use the -D parameter) or to a single distribution. If you choose to add a file declaration to a single specified distribution, you can add the Configuration files only to that distribution. Remember that a file declaration, declares the target path name for installation; it does not upload the file itself.

In the CLI syntax, a category under the default Local categories is mandatory. See the procedure: Example 5–1 on for the Add Local Category CLI command. See Add File Declaration (-afd) 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 be added?” 
  read distro echo 
} 
function category { 
  echo “Under which category should this File Declaration be added?” 
  echo “Valid answers: any subcategory under Configuration files. See list:” 
  uce_cli -fc -T “Configuration files” -sons -D $distro -u “$user” -p “$password” > tmp.file 
  sed “s/ROOT\/Local\/Configuration files//” tmp.file 
  echo -n “Start your answer with / :” 
  read parent 
  rm tmp.file 
  echo 
} 
function setup { 
  echo -n “Type the full path name for target installation:” 
  read path name 
} 
login 
distro 
category 
setup 
uce_cli -afd -tfp “$pathname” -pT “Configuration files$parent” -D $distro -u “$user” -p “$password”