- 20 Jan 2025
- 1 Minute to read
- Print
- DarkLight
- PDF
PROFILES Section
- Updated on 20 Jan 2025
- 1 Minute to read
- Print
- DarkLight
- PDF
Profiles are managed in this section. This includes configurations, custom scripts, software versions, backup entries, and cellular firmware versions.
About Dynamic Templates
A dynamic template can be used to apply a dynamic configuration/script to one or more devices, using the Jinja2 format. When this type of template is applied, it contain embedded configuration details and scripts. Based on device specifications, the template is easily configured by the user. Dynamic templates can contain 2 types of pre-defined variables, static and dynamic ones.
The process to apply a dynamic template requires these conditions:
Identify needed custom fields (existing or newly created)
Enable the dynamic custom fields that are intended to be used.
Identify the configuration/script (create, clone, edit as needed).
Identify the devices to apply the template (must be Enrolled).
When the device(s) are selected, select the dynamic template that are contained in the scopes applied.
When applied, the device is updated.
Dynamic Variables Example
For this, device.version, site.name and site.address must be previously enabled.
#!/bin/bash
echo "What's the device version?"
echo "The device version is {{ device.version }}!"
echo "And the device's site? What's its name?"
echo "The device site is {{ site.name }} and its address is {{ site.address }}"
echo "Look at these nice curly brackets! {{ '{{' }} remember.to.escape.it {{ '}}' }}"
echo "More nice brackets {% raw %} {{ another.way.to.escape }} {% endraw %}!"