Creating a configuration template – H3C Technologies H3C Intelligent Management Center User Manual

Page 534

Advertising
background image

520

Creating a configuration template

IMC provides you with these types of templates: File, Segment, and CLI Script.
File configuration templates include the entire contents of a startup or running configuration. File

configuration templates are applied in their entirety and the operator determines which file (the existing
startup or running configuration file) is replaced when a template is deployed.
Segment configuration templates contain only a portion of a configuration file. When they are deployed,

the configuration segment is added to the existing startup or running configuration. Segment

configuration templates let you modularize the process of template creation and configuration file

management.
A CLI script template contains a set of commands. When a CLI script template is deployed, IMC

automatically logs in to the device through Telnet or SSH and executes the commands contained in the

template step by step.
IMC also provides three methods for creating device configuration templates. The recommended method
for creating a template involves importing the contents of a template from a configuration file backed up

by IMC. By using this method, you can leverage existing configurations and modify them as needed to

create a template.
You can also create a configuration template from scratch by using the Manual Add option. By using this
method, you begin with a blank file and build the configuration manually.
The third method for creating a configuration template is to import the contents from a file on the

operator's local computer.

Adding a configuration template by using a backup file

Creating a configuration template by using a backup file is the quickest and easiest way to build
templates. By using this method, you can leverage an existing configuration file and make the

modifications that are needed before saving it as a template. This method is effective both file and

segment configuration template types and is the recommended method for building configuration

templates quickly and easily.
To create a configuration template from a backup configuration file created by IMC:

1.

Navigate to Service > Configuration Templates.

a.

Click the Service tab from the tabular navigation system on the top.

b.

Click the Configuration Center on the navigation tree on the left.

c.

Click the Configuration Templates under Configuration Center from the navigation system on

the left.

All root configuration template folders and configuration templates stored at the template folder
root level are displayed in the Configuration Templates list.

2.

Navigate to the folder that you want to add a configuration template to.

3.

Click Add.

4.

Select Import From Backup File from the popup menu.
A list displaying all backup configuration files in IMC appears.

5.

In the query field in the upper right corner of the page, enter the IP address of the device you wan
to query, and click the Search icon .
All matching backup configuration files are displayed in the list. Or

6.

Click the Advanced icon located in the upper right corner of the page.

Advertising