Add File Declaration (-afd) Command
The add-file-declaration command adds a file declaration to the local knowledge base.
A file declaration is the target path name for installation of a local Configuration
file onto managed hosts.
|
Parameter
|
-
-pT category – Specify the parent category name in which
to create the new category. This value must be a user-defined category under Configuration files.
-
-ds description – Specify an optional description of the new
file.
-
-tfp pathname – Specify the target path name for installation
on remote hosts.
-
-D distribution – Specify the distribution to which the file
applies. If not specified, the command operates on all distributions.
|
|
Syntax
|
uce_cli -afd -pT "category" [ -ds
"description" ] -tfp "pathname"
[ -D distribution ] -u username -p password
|
|
Example
|
uce_cli -afd -pT "Configuration files/PrintcapVersions" -ds
"install directory for printcap versions" -tfp "/etc/printcap" -u admin -p
123
|
Before you can create a file declaration, you have to have a category
under Configuration files. Use the -alc command to create
a category. To see a list of categories, use the -fc command
with -T "Local/Configuration files" -sons.
The output of this command would give valid values for the -pT parameter
of the -afd command. You can shorten the path of the category
component to Configuration files/category.
You do not need to type the full path from the root.