Sun Update Connection - Enterprise 1.0 User's Guide

Compare Hosts and Inventories (-chi) 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

  • -h hostname Specify the name of the source host.

  • -s snapshot-name Specify the name of the source snapshot.

  • -t hostname Specify the name of the target host.

  • -ts snapshot-name Specify the name of the target snapshot.

  • -dlt delimiter Specify the delimiter for the output.

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