Sometimes you may want to change some attribute for a number of templates at once. Instead of opening each individual template for editing, you may use the mass update function for that.
To mass-update some templates, do the following:
The Template tab contains general template mass update options.
The following options are available when selecting the respective button for the Link templates update:
To specify the templates to link/unlink, start typing the template name in the auto-complete field until a dropdown appears offering the matching templates. Just scroll down to select the required templates.
The Clear when unlinking option will allow to unlink any previously linked templates, as well as to remove all elements inherited from them (items, triggers, graphs, etc.).
The following options are available when selecting the respective button for the Template groups update:
These fields are auto-complete - starting to type in them offers a dropdown of matching template groups. If the template group is new, it also appears in the dropdown and it is indicated by (new) after the string. Just scroll down to select.
The Tags tab allows you to mass update template-level tags.
User macros, {INVENTORY.*} macros, {HOST.HOST}, {HOST.NAME}, {HOST.CONN}, {HOST.DNS}, {HOST.IP}, {HOST.PORT} and {HOST.ID} macros are supported in tags. Note that tags with the same name, but different values are not considered 'duplicates' and can be added to the same template.
The Macros tab allows you to mass update template-level macros.
The following options are available when selecting the respective button for macros update:
The Value mapping tab allows you to mass update value mappings.
Buttons with the following options are available for value map update:
Add from template and Add from host options are available for value mapping add/update operations. They allow to select value mappings from a template or a host respectively.
When done with all required changes, click on Update. The attributes will be updated accordingly for all the selected templates.