The following commands allow you to access, save, and compare the inventory (list of installed software) of a host or of a group.
This section includes the following:
The save-host-inventory command saves a snapshot (a record of the host’s inventory at the current time) of the given host.
To get valid values for -h, use the -lah command.
The save-group-inventory command saves a snapshot of the inventory of each host in the given group.
To get valid values for -g, use the -lg command.
The delete-saved-snapshot command deletes a selected saved snapshot.
|
Parameter |
|
|
Syntax |
uce_cli -dss -h hostname -s snapshot -u username -p password |
|
Example |
uce_cli -dss -h lnxsrvr13 -s inventory_beforeRestore -u admin -p 123 |
To get a valid value for the -h parameter, use the -lah command. To get a valid value for the -s parameter, use the -lss command.
The convert-inventory-profile command saves the software inventory of a host into a profile. All software installed on the host is marked as Required on the profile; everything else is marked as Not Allowed.
|
Parameter |
|
|
Syntax |
uce_cli -cip -h hostname -P "profile" -u username -p password |
|
Example |
uce_cli -cip -h lnxsrvr13 -P lnxsrvrProfile -u admin -p 123 |
To get valid values for the -h parameter, use the -lah command.
The convert-snapshot-profile command converts a saved software inventory (a snapshot) of a host as a profile. All software listed in the snapshot is marked as Required on the profile; everything else is marked as Not Allowed.
|
Parameter |
|
|
Syntax |
uce_cli -csp -h hostname -s snapshot-name -P "profile" -u username -p password |
|
Example |
uce_cli -csp -h lnxsrvr13 -s beforeUp -P oldSrv -u admin -p 123 |
To get a valid value for the -h parameter, use the -lah command. To get a valid value for the -s parameter, use the -lss command.
The compare-host-inventory command compares the installed software of two hosts, or the snapshots of two hosts. You may also compare the inventory or snapshot of a host against the snapshot of a group. The result of this command is the set of differences.
|
Parameter |
|
|
Syntax |
uce_cli -chi -h source-hostname [ -s source-snapshot ] -t target-hostname [ -ts target-snapshot ] [ -dlt "delimiter" ] -u username -p password |
|
Example |
uce_cli -chi -h lnx13 -s lnxInvDec03 -t lnx29 -ts lnxInvDec18 -u admin -p 123 |
To get valid values for the -h and -t parameters, use the -lah command. To get values for the -s and -ts parameters, use the -lss command.
Whether -s and -ts are optional or mandatory depends on the type of comparison you are making. Comparison matrix:
|
Type |
-h |
-t |
-s |
-ts |
|---|---|---|---|---|
|
Compare two hosts, current inventories |
Different hosts |
Different hosts |
Not used |
Not used |
|
Compare two hosts, saved snapshots |
Different hosts |
Different hosts |
From -lss, each is a different snapshot |
From -lss, each is a different snapshot |
|
Compare current host to group snapshot |
Host in source group |
Target host |
From -lss |
Not used |
|
Compare host at different stages of lifecycle |
Same host named for both parameters |
Same host named for both parameters |
From -lss, each is a different snapshot |
From -lss, each is a different snapshot |
The submit-compare-job command compares the installed software of two hosts, or the snapshots of two hosts, and then changes the inventory of the target host to duplicate the inventory of the source host. The result of this command is application provisioning to the target host.
If the hosts are Solaris machines, you can compare either Software or Patches in one compare job.
|
Parameter |
|
|
Flag |
|
|
Syntax |
uce_cli -scj -h source-hostname [ -s source-snapshot ] -t target-hostname -j "jobname" -C "policy" [ -sm | -dp ] -u username -p password |
|
Example |
uce_cli -scj -h lnxsrvr13 -t lnxsrvr29 -j Make29Like13 -C autoSW -dp -u admin -p 123 |
To get a valid value for -h and -t, use the -lah command. To get a valid value for -s, use the -lss command. To get a valid value for -j, use the -ljs command. To get a valid value for -C, use the -lc command.