# Template Exporting Open **Console > Import/Export > Export Templates**, choose the object type, then select the template to export. Select **Include Dependencies** when the recipient needs its referenced objects. Choose the output option to display XML or download it as a file. ![Import Template](images/export-template.png) Each template component has a persistent hash identity. Import uses it to match objects across installations. The historical Linux example below illustrates the XML structure; it is not a current, self-contained import fixture. Generate a complete export from your own installation rather than copying omitted or legacy dependencies. An export with dependencies can include: 1. The device template name and its identity 2. All the Graph Templates and their GUID's 3. All the Graph Template inputs and their GUID's 4. All the Data Templates and their GUID's 5. All the Data Input Method's and their GUID's 6. All the GPrint Presets and their GUID's 7. All the CDEF's and VDEF's and their GUID's 8. All the Data Source Profiles and their GUID's Most fields use XML escaping. Data-input command strings can be base64-encoded; decode only fields defined that way by the format. For example, the path placeholder is stored as `<path_cacti>` in XML, not as an unclosed element. Template export writes XML. Preserve object hashes when sharing an update: they identify the objects to update on import. The compatibility prefix is described in [Determine a Template Version](How-To-Determine-Template-Version.md). Select **Include Dependencies** when the recipient needs referenced templates, queries, profiles, CDEFs or VDEFs. Ordinary template XML does not bundle the external scripts or query XML files; install those separately or use a signed package workflow. Review the import preview on a separate test installation before distributing an update that changes existing objects. ```xml Local Linux Machine hash_0001029fe8b4da353689d376b99b2ea526cc6b|hash_000102fe5edd777a76d48fc48c11aded5211ef|hash_00010263610139d44d52b195cc375636653ebd|hash_0001026992ed4df4b44f3d5595386b8298f0ec hash_0401028ffa36c1864124b38bcda2ae9bd61f46 Unix - Processes |host_description| - Processes processes 1 200 700 1000 on on 2 100 0 0 0 0 on 40 0 0 Processes Data Source task_item_id hash_000102d023fcaa39c9ffe41116492a116ea18e|hash_00010210b6ba6d1f88815cfac5397d41c426a6|hash_000102eadd16a7d7cb09b2b0555ac3710196ef|hash_0001025ae0cb568c7ca4ea3e6a0fbef39a7f76 Legend Color color_id hash_000102d023fcaa39c9ffe41116492a116ea18e Unix - Load Average |host_description| - Load Average run que length 1 200 700 1000 on on 2 on 100 0 0 0 0 0 on 40 0 0 1 Minute Data Source task_item_id hash_0001023702a05e8729c3d48d162208dd072137|hash_000102862aeaac11049c1d81ae654d66c97dfb|hash_000102124baf8d0260ff62a1e6d21d9c4a4e97|hash_00010242b9183300db803dfcc0af1fd4b9f122|hash_000102cb9b5207c9f1f1009b813ef56f55702f 5 Minute Data Source task_item_id hash_000102ab258aac51f4a0160d43e0ba20b9b393|hash_0001020984a4c622139c0d11b78608160b33e3|hash_00010264469091b7dc7d6b39d3754980fc4a43|hash_0001028457ef82c0b87cae267536de4b667e09|hash_0001024e8ee8aa54c425e1ec17c83441fcc393 15 Minute Data Source task_item_id hash_0001022438af0fdd01e612291791acb29a711d|hash_000102752e3ae4e9a82bc3c923b0b236a5ac67|hash_0001028060cd7596e4f6b0831bf73ef8ba531a|hash_0001024a6c18ff005f2bcb751cdba638757566|hash_000102bfc93ecb2b6784c8525bc00d6448617b Unix - Logged in Users |host_description| - Logged in Users users 1 200 700 1000 on on 2 on 100 0 0 on 40 Logged in Users Data Source task_item_id hash_000102ab8392b002d42ad2fa1ba35a99ea51fe|hash_000102ad192b4b614505bbc36a8afd01d1781d|hash_0001023dcb58ff0357a88a9031cbf27b6f4c60|hash_000102efbf534120dad14b8ffcec7d71961640|hash_000102a1b9a134b64c84366bedc7e8d4c3a5bb Legend Color color_id hash_000102ab8392b002d42ad2fa1ba35a99ea51fe Linux - Memory Usage |host_description| - Memory Usage bytes 1 200 700 1000 on on 2 on 100 0 0 0 0 on 40 0 0 Free Data Source task_item_id hash_000102404665179f589ad7ce64b458bf93a58d|hash_00010264dd010cd56ccca790f2d640486a5bb7|hash_000102216032db321bbce61c28e318e1610c19|hash_0001026b871e99f6f37c98004a43df0155f521 Swap Data Source task_item_id hash_0001023e8ad5940852e6d4bf3cefa6680885b4|hash_000102bb01f635dbb02625115a9640ba6ece90|hash_0001025f16039fc5cef2deaa4dbe10d12a90b8|hash_000102fa62617953fa551b24d4109c52f6906e Unix - Available Disk Space on |host_description| - Available Disk Space bytes 1 200 700 1024 on on 2 on 100 0 0 on 40 Available Disk Space Data Source task_item_id hash_0001023343968ae34b1a88fa46213c3e070d95|hash_00010243c7d573c7ae75f2ce7b8b5f43b8dc88|hash_00010283ae02d7a5034b683ee150a8245aa8a4|hash_000102b7a591d11b24890b366e82d15f70f474|hash_000102e277320375d05534aa01971d9320fc2e Used Disk Space Data Source task_item_id hash_000102b3d537a4ecdabbcd43313ed3a9ba3243|hash_000102b8bddc548722b2666a52beb9637890d8|hash_000102b09a9febbd898acec5a0af9296861c5b|hash_000102b974496fa30d693fafdea2aba4eda440|hash_00010288cce764897070f936dccdc37d620ed9 Unix - Get Mounted Partitions Queries a list of mounted partitions on a unix-based host with the <path_cacti>/resource/script_queries/unix_disk.xml hash_03010280e9e4c4191a5da189ae26d0e237f015 hash_0001028e7c8a511652fe4a8e65c69f3d34779d Disk Space dskAvailable hash_010102e4ac6919d4f6f21ec5b281a1d6ac4d4e hash_080102e801aab0a4b1d242b1e2bd49004d48ab dskUsed hash_010102e4ac6919d4f6f21ec5b281a1d6ac4d4e hash_0801027b94166ab8c3e3374f44f13c8e36c109 title 1 |host_description| - Disk Space - |query_dskDevice| name hash_010102e4ac6919d4f6f21ec5b281a1d6ac4d4e 1 |host_description| - Free Space - |query_dskDevice| Get Script Data (Indexed) 4 Index Type index_type in index_type Index Value index_value in index_value Output Type ID output_type in output_type Output Value on out output ``` --- Copyright (c) 2004-2026 The Cacti Group