Top
Systemwalker Software Configuration Manager Reference Guide
FUJITSU Software

1.2.9 swcfmg_changetemplate (Configuration Modification Template Information Management Command)

Description

Creates, updates, performs batch update, deletes, and displays a list and a history of the configuration modification information managed by Systemwalker Software Configuration Manager.

Synopsis

[Windows]

swcfmg_changetemplate.exe

{ -add [-id <Configuration modification template ID>] -name <Configuration modification template name> -userid <Administrator> -scope <Scope> [-description <Description>] -file <Configuration modification template definition file path> |

-update -id <Configuration modification template ID> [-name <Configuration modification template name>] [-userid <Administrator>] [-scope <Scope>] [-description <Description>] [-file <Configuration modification template information file path>] |

-batchupdate -csv <Configuration modification template information file path> [-e <Character encoding>] } |

-delete -id <Configuration modification template ID>, |

-list [-csv <Output file path>] [-e <Character encoding>] [-scope Scope] |

-get -id <Configuration modification template ID> [-file <Output file path>] | }

[Linux]

swcfmg_changetemplate

{ -add [-id <Configuration modification template ID>] -name <Configuration modification template name> -userid <Administrator> -scope <Scope> [-description <Description>] -file <Configuration modification template definition file path> |

-update -id <Configuration modification template ID> [-name <Configuration modification template name>] [-userid <Administrator>] [-scope <Scope>] [-description <Description>] [-file <Configuration modification template information file path>] |

-batchupdate -csv <Configuration modification template information file path> [-e <Character encoding>] } |

-delete -id <Configuration modification template ID>, |

-list [-csv <Output file path>] [-e <Character encoding>] [-scope Scope] |

-get -id <Configuration modification template ID> [-file <Output file path>] | }

Options

-add [-id <Configuration modification template ID>] -name <Configuration modification template name> -userid <Administrator> -scope <Scope [-description <Description>] -file <Configuration modification template definition file path>

Creates a configuration modification template. Specify the ID of the configuration modification template to update, the administrator, the scope, and a description. When the configuration modification template ID is omitted, the ID, which does not use a serial number starting from 000000001, is automatically allocated. For the "-file" option, specify the path of a configuration modification template definition file with its definitions described. For details on the configuration modification template definition file, refer to "2.2.8 Configuration Modification Template Definition Files".

-update -id <Configuration modification template ID> [-name <Configuration modification template name>] [-userid <Administrator>] [-scope <Scope>] [-description <Description>] [-file <Configuration modification template definition file path>]

Update the configuration modification template specified using the configuration modification template ID. Specify the name of the configuration modification template to update, the administrator, the scope, and a description. When updating the definition of a configuration modification template, specify the path of the configuration modification template definition file with its definitions described for the "-file" option. For details on the definition file of the configuration modification template, refer to "2.2.8 Configuration Modification Template Definition Files". The items corresponding to the omitted option are not updated.

-batchupdate -csv <Configuration modification template information file path> [-e <Character encoding>]

Uses the description of the configuration modification template information file to perform batch update of multiple sets of configuration modification template information. The configuration modification template information file is in CSV format For details on the configuration modification template information file, refer to "2.2.7 Configuration Modification Template Information File". Definitions of configuration modification templates cannot be updated using this option. To update definitions, use the "-update" option of this command.

-delete -id <Configuration modification template ID>,...

Deletes the configuration modification template specified using the configuration modification template ID. Multiple configuration modification template IDs can be specified by delimiting them with ',' (comma). Use the "-list" option of this command to check the configuration modification template ID.

-list [-csv <Output file path>]

Outputs configuration modification template information in CSV format.

If -csv <Output file path> is omitted, information will be output to the standard output for the command. If the specified file does not exist, a new file will be created. If the file exists, the existing file will be overwritten. If the file cannot be output because of an error, either a new file will not be created or, if an existing file was to be overwritten, the existing file will be kept as it is, without being overwritten. If the file cannot be output because of an error, either a new file will not be created or, if an existing file was to be overwritten, the existing file will be kept as it is, without being overwritten.

For details on the output file, refer to "2.2.7 Configuration Modification Template Information File".

By specifying the options below, you can filter the configuration modification template information to be output. If no option has been specified, all information of the configuration modification template will be output.

[-scope Scope]

Specify the scope of the configuration modification template to output. For the scope of the tenant, specify the tenant ID. For the global scope, specify "#GLOBAL".

For Linux, when specifying the global scope, the value must be enclosed with double quotes '"'.

-get -id <Configuration modification template ID> [-file <Output file path>]

Outputs the definition of the configuration modification template specified using the configuration modification template ID.

If -file <Output file path> is omitted, information will be output to the standard output for the command. If the specified file does not exist, a new file will be created. If the file exists, the existing file will be overwritten. If the file cannot be output because of an error, either a new file will not be created or, if an existing file was to be overwritten, the existing file will be kept as it is, without being overwritten. If the file cannot be output because of an error, either a new file will not be created or, if an existing file was to be overwritten, the existing file will be kept as it is, without being overwritten.

For details on the definition file of the configuration modification template, refer to "2.2.8 Configuration Modification Template Definition Files".

-e <Character encoding>

Specify the character encoding for the file.

The following character encoding can be specified. Use uppercase letters.

  • UTF-8

If this option is omitted, the character encoding for the environment in which this command is to be executed will be used in the input file.

Return value

Return value

Meaning

0

The command has terminated normally.

10

A parameter error has occurred.

20

The specified I/O path is incorrect.

30

The specified character encoding is incorrect.

50

The file description is incorrect.

70

The specified configuration modification template ID, user ID, or tenant ID is incorrect.

100

Systemwalker Software Configuration Manager is not running.

101

A command that cannot be executed at the same time as this command is already running.

103

Connection to the directory service failed.

110

A write error has occurred.

200

Setup has not been performed.

255

A system error has occurred.

Command location

[Windows]

[Systemwalker Software Configuration Manager installation directory]\SWCFMGM\bin

[Linux]

/opt/FJSVcfmgm/bin

Privilege required

[Windows]

[Linux]

Note

Common notes
Notes on creation
Notes on update
Notes on batch update
Notes on list display
Notes on deletion
Notes on batch update errors

Notes on creation and update errors

Example