The following commands are used to manage local software and files.
This section includes the following:
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.
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.
The add-software-package command pushes a local software package to the local knowledge base.
To learn more about the security fix mark and when to use the -secure flag, see To Fix Local Software Missing Dependencies and Fixing Local Dependencies.
To get valid values for the -D parameter, use the -ld 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.
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.
The add-target-local command adds a file or a script to the local knowledge base.
|
Parameter |
|
|
Syntax |
uce_cli -atl -f "pathname" -pT category [ -ds "description>" ] ( -tF | -tM | -tP | -tR | -tS name ) [ -v version ] [ -D distribution ] -u username -p password |
|
Example: Config file |
uce_cli -atl -f "/home/admin/myFiles/print_v5" -pT "Configuration files/PrntVer" -ds "printcap Flr5" -tF "/etc/printcap" -v "05" -u admin -p 123 |
|
Example: Macro |
uce_cli -atl -f "/home/admin/scripts/findhost.sh" -pT "hostname" -ds "finds local hostname for file localization" -tM "hostname" -u admin -p 123 |
|
Notes |
Before performing this procedure, you must have created the category PrntVer under Configuration files and the category hostname under Macros (see Add Local Category (-alc) Command). You must also have created a script to upload as a macro. The example shows a script that finds the host name of the local host. |
To find a valid value for -pT, use -fc with -T "Local/default category>/" -sons.
To find a valid value for -D, use the -ld command. If you do not name a specific distribution, the named parent category (value of -pT) must also be in all distributions.
The -t* parameter that you choose to use must match the -pT parameter. For example, if -pT is Macros/localhostname then use -tM to name the macro.
The -tM, -tP, -tR, and -tS parameters take any new name as a value.
The -tF parameter needs a file declaration as its value. If you use a new path name for this value, it creates a new file declaration. If you use -tF, you must use -v to give the Configuration file a display version.