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.
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 |