# Template Exporting
Cacti allows **Device**, **Graph**, and **Data** Templates to be
exported in XML format. You can access the screen below by going
to `Console > Import / Export > Template Export`. When you get
to this page, the most popular option is to export the
**Device Template**, but the discretion is upto the user. Once
you pick the object type, the list of available templates
is presented. The most popular option is to save to a file,
but you have additional options.

Inside of the Template, Cacti uses a **hash** Global Uniqueue ID (GUID)
to uniquely identify every Template component. So, any Template
that you export can be shared with anyone around the globe without
ambiguity. See the Linux Device Template Example below.
In this Template thaere are Many Components:
1) The Device Template Name itself and it's GUID
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
Although the output is human readable, some columns are encoded
so as to not cause problems with the XML output format.
To read them, you must base64_decode them in PHP or some
other language.
Presently they are saved in XML format, but there are
discussions with making these templates YAML formatted.
```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
/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-2022 The Cacti Group