5.7

Table Of Contents
template export "
template-name
" [
output-dir
]
template-name
Name of the dashboard template to export. If the dashboard template does not
exist, the command fails.
output-dir
Directory where the command exports the dashboard template file. If you do
not provide an output directory name, the command exports the dashboard
template file to the current directory.
The following template export command exports a dashboard template named MyTemplate to a file named
MyTemplate.xml in the tools\dbcli\templates directory.
dbcli.sh template export "MyTemplate" templates
Import a Dashboard Template
You can use the dbcli template import command to import a dashboard template that you exported from
another instance of vCenter Operations Manager. You can import XML format and Java binary object (.bin)
format dashboard template files.
The template import command has the following syntax.
template import "
input-file
" [--force] [--share all |
group-name
[,
group-name
]... ] [--retry
maxRetryMinutes
]
input-file is the name of a previously exported dashboard template file. If the file does not exist, the command
fails.
The template import command has certain options.
Table 13-3. template import Command Options
Option Description
--force
Use this option to import the dashboard template even if a
dashboard template that has the same name already exists
on the target system.
NOTE This option can cause the command to create a
duplicate dashboard tempate on the target system.
--share all | group-name[,group-name]... List of user groups that can share the dashboard template on
the target system. Separate multiple names with a comma.
To share the dashboard template with all user groups, type
all instead of individual user group names.
--retry maxRetryMinutes Maximum amount of time, in minutes, that the command
retries the import operation. The command retries the import
operation at one-minute intervals until it reaches this time
limit.
NOTE This option is useful if data is missing from the
dashboard template when you initiate the command.
The following template import command imports a dashboard template file named
templates\MyTemplate.xml and shares it with all existing user groups. If the required information is not
available when you initiate the command, the command retries the import operation at one-minute intervals
for up to 10 minutes.
dbcli.sh template import "templates\MyTemplate.xml" --retry 10 -share all
Chapter 13 Using the Database Command Line Interface
VMware, Inc. 159