Top
ServerView Resource Orchestrator Cloud Edition V3.1.1 Reference Guide (Command/XML)
ServerView

9.4 cfmg_addtemplate (Registering Template Information)

Name

[Windows Manager]
Installation_folder\RCXCFMG\bin\cfmg_addtemplate - Registering Template Information

[Linux Manager]
/opt/FJSVcfmg/bin/cfmg_addtemplate - Registering Template Information

Synopsis

cfmg_addtemplate [-id Template ID] [-name Template name] -xml Template information file path

Functional Description

This command registers template information.

The template ID that has been allocated is output using the following XML format:

<?xml version="1.0" encoding="UTF-8"?>
<result>
    <id>[Template ID]</id>
</result>

Options

-id (optional)

This option specifies the template ID using a string of up to 32 printable ASCII.

A registration error will occur if the template ID is already being used.
If this option is specified, it takes priority over information in the template information file.

If this option is omitted, an ID will be automatically created.

-name (optional)

This option specifies the name of the template using a string of up to 85 printable ASCII characters.
If the software name includes spaces, enclose the name in double quotes.
If this option is specified, it takes priority over information in the template information file.

If this option is omitted, the template name in the template information is enabled.

If this option is omitted and there is no template name written in the template information, an error will occur.

-xml

This option specifies the absolute or relative path to the template information file, using a string of printable ASCII characters.
If the path includes spaces, enclose the path in double quotes.

Requirements

Permissions

Infrastructure administrator with OS administrator privilege

Location

Admin server

Example

> cfmg_addtemplate -xml sample1.xml
<?xml version="1.0" encoding="Windows-31J"?>
<result>
	<id>template-12c95768de8</id>
</result>

Remarks: Encoding will be "UTF-8" with the Linux Manager.

Exit Status

This command returns the following values:

0

The command executed successfully.

non-zero

An error has occurred.