Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 Administration Guide


17.10  ioutils exporttemplate (exporting template)

When importing asset information, you can use a template that defines field mappings. This section describes the ioutils exporttemplate command used to export the template.

Functionality

This command exports a template whose type and name you can specify. One of the following template types can be specified:

If you have multiple JP1/IT Desktop Management 2 systems configured, this command enables a template created on one management server to be reused on another management server.

Execute this command on a management server.

Format

ioutils exporttemplate -export export-file-name -templatetype template-type -name template-name[ -s]

Argument

-export export-file-name

Specify the absolute path (within 259 bytes) of the XML file to export.

-templatetype template-type

Specify a template type to export. The following types of template type can be specified:

  • assetImport: Template for importing hardware asset information

  • licenseImport: Template for importing software license information

  • softwareImport: Template for importing managed software information

  • contractImport: Template for importing contract information

  • vendorCatalogImport: Template for importing contract vendor list information

-name template-name

Specify a template name to export.

-s

Overwrites the file even if a file with the same file name already exists at the export destination. If this argument is not specified and a file with the same file name already exists, an overwrite confirmation message appears. In this case, the system cancels the output or overwrites the file according to the administrator's reply.

Storage location

JP1/IT Desktop Management 2-installation-folder\mgr\bin\

You can execute this command without specifying the storage location for the executable file, by using the command prompt provided by JP1/IT Desktop Management 2.

Notes

Return value

The following table shows the return values of the ioutils exporttemplate command.

Return value

Description

0

The command finished normally.

11

The format for specifying the command arguments is invalid.

12

The specified folder is invalid, the disk does not have sufficient capacity, or the folder does not exist.

15

A file access error occurred when outputting the file, or the disk does not have sufficient capacity.

31

Another command is being executed.

51

You do not have the permissions to execute this command.

54

The management server has not been set up.

72

The specified template does not exist.

101

Command execution failed because there is not enough memory, or due to some other reason.

120

A database access error occurred.

150

Command execution was interrupted due to some other error.

Example

The following example shows use of this command to export "hardware asset information template1" into C:\temp\assetexport.xml, which can be used as a template for importing hardware asset information.

ioutils exporttemplate -export C:\temp\assetexport.xml -templatetype assetImport -name "hardware asset information template1" -s

Related Topics: