Export a Version of a Model (modelExport)
The modelExport
command exports information about the grid for the specified version of the model in JSON format, typically to a specified file.
ttGridAdmin modelExport [-latest|-current|-version n]
[filepath]
Within the grid, the hierarchy of the output includes the following:
SQLNet
TNSNames
DataSpaceGroups
Hosts
Installations
Instances
Databases
Connectables
Options
The modelExport
command has the options:
Option | Description |
---|---|
|
Export the latest model—the model being modified and not yet applied to the grid. This is the default. |
|
Export the current model—the model most recently applied to the grid. |
|
Lists database definition objects in the specified version number of the model. |
|
Path and name of the file where the JSON representation of the model is written. If no file is specified, the export goes to |
Examples
Export the current version (version 4) of the model. This is run from a management instance:
% pwd /sw/tten/grid/ttinstances/gridmgmt1/bin % ttGridAdmin modelExport -current /sw/tten/grid/models/model4export.json Model version 4 exported to /sw/tten/grid/models/model4export.json
Export the latest version (version 5) of the model, which is the default version to export. This is run from a data instance:
% pwd /sw/tten/grid/ttinstances/instance1/bin % ttGridAdmin modelExport /sw/tten/grid/models/model5export.json Model version 5 exported to /sw/tten/grid/models/model5export.json
Output files:
% pwd /sw/tten/grid/models % ls model4export.json model5export.json
Notes
-
Metrics and logs are not exported. They exist on the active management instance but are not part of the model.
-
You can run this command from a management instance or a data instance.
-
You can use
modelExport
to create a backup of the model.