Compare Models (modelCompare)
The modelCompare
command compares two versions of the model and displays a summary of changes between them.
ttGridAdmin modelCompare -latest|-current|-version n [-latest|-current|-version m]
Options
The modelCompare
command has the options:
Option | Description |
---|---|
|
Specifies that the latest version of the model—the model being modified and not yet applied to the grid—is one of the versions to compare. If the command line specifies only one version, that version is compared against the latest version by default. |
|
Specifies that the current version of the model—the model most recently applied to the grid—is one of the versions to compare. |
|
Specifies that model version |
|
Specifies that model version |
Examples
This example shows that the client/server connectable database1CS
was added between the current model and the latest model. (Other differences shown are for meta data.)
% ttGridAdmin modelCompare -current -latest
4,5c4,5
< "applied" : true,
< "current" : true,
---
> "applied" : false,
> "current" : false,
94a95,107
> },
> {
> "attrs" : {
> "CipherSuites" : "SSL_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
> "ConnectionCharacterSet" : "AL32UTF8",
> "Encryption" : "requested",
> "UID" : "terry",
> "Wallet" : "!!TIMESTEN_HOME!!/conf/wallets/clientWallet"
> },
> "clientServer" : true,
> "guid" : "413F6633-B45B-4F47-A542-560C8519A058",
> "name" : "database1CS",
> "type" : "connectable"
433,435c446,447
< "version" : 1,
< "whenApplied" : "2021-08-12T14:48:14.000Z",
< "whenCreated" : "2021-08-12T14:45:06.000Z"
---
> "version" : 2,
> "whenCreated" : "2021-08-12T14:46:25.000Z"
Note:
The summary of changes is displayed in UNIX diff
format.