Automation
Automation rules automatically apply tags to agents based on matching criteria. Instead of manually tagging every new endpoint, define rules that evaluate agent properties and assign tags when conditions are met.
How automation works
Each rule defines a set of conditions, a target tag, and one or more triggers that control when the rule runs. When a rule is triggered and the agent matches all conditions, the target tag is applied automatically.
Trigger types
Every automation rule can be configured with any combination of these triggers:
| Trigger | Description |
|---|---|
| New agent enrollment | Every enabled rule is evaluated automatically when a new agent registers. This is always on and has no setting. |
| Scheduled execution | Runs the rule on a cron schedule (e.g., every 30 minutes, hourly, every 4 hours). New rules run daily at 08:00 UTC by default. Useful for catching agents whose properties have changed since last evaluation. |
| Manual | Run the rule on demand using the Apply Rule action from the rule list or detail page. Evaluates the rule against all existing agents immediately. |
| Servicing Health report | Rules with a Servicing Health condition are also re-checked for an endpoint each time that endpoint reports its Servicing Health. This trigger is automatic and has no setting. |
A single rule can have multiple triggers active at the same time. For example, every rule runs on new enrollment, and a rule might also run on an hourly schedule.
Creating a rule
Navigate to Tags, open the Tag Automation tab, and click Create Rule. Configure the following fields:
Name
A descriptive name for the rule (e.g., "Tag Windows Servers", "Mark Linux Production Hosts"). This appears in the rule list and in audit logs when the rule applies a tag.
Conditions
Rules use condition groups to build flexible matching logic. Each group contains one or more conditions, and you choose whether a group requires all conditions to match (AND logic) or any condition to match (OR logic). Multiple groups are combined with OR logic between them.
Available condition fields:
| Field | Description | Example |
|---|---|---|
| Hostname | Computer name | Hostname contains prod |
| Operating System | OS name | Operating System equals Windows |
| OS Version | Specific version string | OS Version contains Server 2022 |
| IP Address | Internal IP | IP Address starts with 10.0.1 |
| Manufacturer | Hardware manufacturer | Manufacturer equals Dell Inc. |
| Model | Hardware model | Model contains PowerEdge |
| Domain | Active Directory domain | Domain equals corp.example.com |
| Status | Agent connection state | Status equals online |
| Servicing Health finding | A finding on the endpoint's Endpoint Health tab | Servicing Health finding has EFI System Partition Free Space, warning or worse |
Available operators: equals, does not equal, contains, does not contain, starts with, ends with, matches regex. The Servicing Health finding field has its own operators, described in Tagging by Servicing Health.
Target tag
The tag to apply when conditions are met. Select an existing tag from the dropdown, or create a new one inline.
Triggers
Configure when the rule should run:
- New agent registration - Every rule is evaluated automatically whenever a new agent enrolls. There is nothing to turn on.
- Scheduled execution - On by default for a new rule, daily at 08:00 UTC. Choose a different frequency or turn it off. Quick presets are available: every 30 minutes, hourly, every 2 hours, or every 4 hours. You can also enter a custom cron expression.
If the schedule is off, the rule runs for existing endpoints only when you manually click Apply Rule, or, for a rule with a Servicing Health condition, when an endpoint reports its Servicing Health.
- Remove the tag when the endpoint no longer matches - Toggle this on to have the rule take its tag off an endpoint that stops matching. See Removing tags automatically.
Priority
A numeric value that controls the order in which rules are evaluated. Lower numbers are evaluated first. Priority is relevant when you want certain rules to run before others, though in practice all matching rules apply their tags regardless of order.
Rule evaluation order
Rules are evaluated by priority (lowest number first). If multiple rules match the same agent, all matching tags are applied. There is no conflict between rules. Tags from different rules accumulate on the agent.
For example, if Rule A assigns "os-windows" and Rule B assigns "env-production", an agent matching both rules receives both tags.
A rule never removes a tag that was assigned by hand or added by another rule. A rule removes its own tag only when Remove the tag when the endpoint no longer matches is turned on for that rule.
Tagging by Servicing Health
A rule can match on what TridentStack Control reports under Servicing Health on an endpoint's Endpoint Health tab. Use it to tag the endpoints that need attention, such as those with low EFI System Partition free space or updates that need hands-on installation.
To add one, choose Servicing Health finding as the condition field, then choose:
- has or does not have
- The check, such as EFI System Partition Free Space. The list shows the common checks plus every check your own endpoints have reported.
- The level: info or worse, warning or worse, or critical.
How a finding is matched:
- The level is the one shown on the endpoint's Endpoint Health tab, so a rule and the tab always agree.
- A finding you have acknowledged on the Endpoint Health tab counts as not present.
- An endpoint that has not reported Servicing Health yet is not matched by has or by does not have.
- Each check belongs to one platform. EFI System Partition Free Space is a Windows check, Root filesystem free space is a Linux check, and Startup volume free space is a macOS check. A has condition on a Windows check never matches a Mac. A does not have condition matches every endpoint that has reported Servicing Health and lacks the finding, including endpoints on other platforms, so combine it with an Operating System condition in the same group.
Servicing Health conditions can be combined with any other condition in a group.
Removing tags automatically
Turn on Remove the tag when the endpoint no longer matches to have a rule take its tag off an endpoint that stops matching. It turns on by itself when you add the first Servicing Health condition to a rule, and you can turn it off.
- Only a tag this rule added is removed. A tag assigned by hand, or added by another rule, stays.
- Removing a tag also removes any policy the endpoint had only through that tag, the same as removing the tag by hand.
- Disabling or deleting the rule does not remove tags it already applied.
- A finding that sits right at a threshold can clear and return between reports, which adds and removes the tag each time.
Example: clean up low EFI space automatically
- Create a tag named
low-efi-space. - Create a rule with the condition Servicing Health finding has EFI System Partition Free Space, warning or worse, the target tag
low-efi-space, and tag removal turned on. - Create a Script Automation on the
low-efi-spacetag that runs your cleanup script, with an On an interval trigger.
Endpoints are tagged when the finding appears, the script runs on tagged endpoints at each interval, and the tag comes off once the finding clears, which stops the script running there.
Managing rules
The Tag Automation tab on the Tags page displays all rules in a data table with columns for name, target tag, status, match count, last applied, created, and last updated timestamps. Click any row to expand it and see the rule's full condition logic.
From this page you can:
- Enable/disable - Toggle a rule on or off without deleting it. Disabled rules are skipped during all evaluation (enrollment, scheduled, and manual).
- Edit - Open the rule detail page to modify conditions, triggers, target tag, or priority.
- Apply Rule - Manually evaluate the rule against all existing agents immediately.
- Duplicate - Create a copy of the rule with the schedule disabled, useful for creating variations of existing rules.
- View match count - See how many agents match the rule's conditions right now. The count is recalculated each time the list loads.
- Delete - Permanently remove a rule. Tags that were already applied by the rule remain on agents.
Organize with folders
You can group automation rules into folders, for example "Servers" or "Finance". Folders only change how the list looks: they never change which rules run or the order rules are evaluated in. Folders are shared by everyone in your organization, and anyone who can edit endpoints or assign policies can create and change them.
- Create a folder: select New folder above the list and enter a name.
- Move rules: on a computer, drag a rule onto a folder or onto any rule already in that folder. To take it out of a folder, drop it on the No folder heading or on any rule that is not in a folder. The folder it will land in is highlighted while you drag. On a phone, open the rule's actions and choose Move to folder....
- Collapse a folder you are not using with the arrow next to its name. Rules inside a folder are indented under it.
- Rename or delete a folder from its menu. Deleting a folder keeps its rules: they move back under No folder.
Applying rules manually
Click Apply Rule from the rule's action menu to evaluate it against all existing agents immediately. A confirmation dialog shows:
- How many agents match the rule's conditions
- How many agents will receive a new tag (agents that already have the tag are skipped)
- How many endpoints will lose the tag because they no longer match, when the rule has tag removal turned on
This is useful when:
- You created a new rule and want it applied to your current fleet right away.
- You changed conditions on an existing rule and want to see updated results.
- The rule has no schedule and you want existing endpoints tagged now.
For large fleets, applying a rule evaluates every agent against the rule's conditions. This is a lightweight operation, but the resulting tag assignments may take a few moments to propagate across all endpoints.