Add Local Category (-alc) Command
The add-local-category command creates a new category under Local, under
Probes, Pre-actions, Post-actions, Macros, or Configuration Files.
Use this command if you want to upload scripts and files to the local knowledge base.
You cannot upload a local file or script until you have created a category
to hold it.
|
Parameter
|
-
-T component – Specify the name of the component. If you
type part of a name, without -sons, the output will be all
components that have this string in their names. The value you specify is
case-insensitive.
-
-ds description – Specify an optional description of the new
category.
-
-pT category – Specify the parent category name in which
to create the new category. Valid values are: Probes, Pre-actions, Post-actions, Macros, Configuration files, or one of these, with /existing-subcategory.
-
-D distribution – Specify the distribution to use. If not specified,
the command operates on all distributions.
|
|
Syntax
|
uce_cli -alc -T "category" [ -ds
"description" ] -pT "parent-category"
[ -D distribution ] -u username -p password
|
|
Example
|
uce_cli -alc -T "PrintcapVersions" -ds "various config files
to set up different printers" -pT "Configuration files" -u admin -p 123
|
To get a list of the valid values for the -pT parameter,
use the -fc command, with "Local" as the
value of its -T parameter.
One or both of "ROOT/Local/Local RPMs" or "ROOT/Local/Local
PKGs" is listed, but are not valid values for the -alc command;
all the other items in this output are acceptable.