LooT Manuals
Deutsch

Nodes, templates and clones

List, create, inspect, clone, delete, link and prioritize nodes, create and use templates, and follow background deletions and clones.

Basic concepts#

A node is a point in the hierarchy of a tenant, for example Brewery/Plant.Line1.Temperature. A node can have children and at the same time carry a time series of its own; a node without a value type is just an organizing node. How paths are built is described in the introduction.

Important properties of a node:

PropertyMeaning
Value typeKind of the values: int, long, float, double (numbers), bool, string, custom (files and binary data), geo (position), compound (record made of several fields), stream (audio and video). The type can only be changed while the node has no values.
UnitFor example °C. Queries can convert to other units.
Directionin (input: the node accepts values from outside), out (output: the node provides values to the outside), inout (both) or none (internal only). It controls how the node can be used in connections and components.
Same timestampHow two values with the same timestamp are handled: last (the value written last wins, default) or first (the first one stays).
Aliases and tagsAdditional names (aliases, unique within the tenant) and keywords (tags) for searching and organizing
PriorityNormal or Realtime (see loot node priority)

Working with nodes in the web interface is described in node page and editing nodes; templates are explained in templates.

CommandPurpose
loot node listList the root nodes of a tenant or the children of a node
loot node createCreate a node, also from a template
loot node showShow properties and the latest value
loot node cloneClone a node with its subtree
loot node deleteDelete a node
loot node migrate-templateSwitch a node to a newer template version
loot node linkCreate a link to another node
loot node prioritySet the priority
loot template list, loot template show, loot template createList, inspect and create templates
loot copy show, loot copy list, loot copy cancelFollow and cancel background clones
loot deletion showFollow background deletions

loot node list#

Lists the root nodes of a tenant or the children of a node.

text
loot node list <path>
ArgumentMeaning
<path>Path of a tenant (shows the root nodes) or of a node (shows the children)
console
$ loot node list "Brewery/Plant.Line1"
Id   Name         Werttyp  Einheit  Richtung
---  -----------  -------  -------  --------
103  Temperature  Double   °C       InOut
104  Pressure     Double   bar      InOut
105  Alarm        Compound -        InOut

The columns show id, name, value type, unit and direction. A dash stands for "not set"; nodes without a value type have no direction either. You see only nodes for which you have the Read permission (or that lie on the way to a readable node).

loot node create#

Creates a node.

text
loot node create <path> [--type <value-type>] [--unit <unit>] [--description <text>]
                 [--direction <direction>] [--duplicate <first|last>] [--tag <tag>]… [--alias <alias>]…
                 [--high-volume] [--format <format>] [--param <name=value>]…
                 [--template <template>] [--version <number>]

The <path> is the path of the new node. Brewery/Plant creates a root node, Brewery/Plant.Line1 a child of Plant. The parent node must exist. Creating root nodes needs the Manage permission on the tenant, creating children Manage on the parent node. You create tenants with loot tenant create.

OptionMeaning
--type <value-type>Value type: bool, compound, custom, double, float, geo, int, long, stream or string. Without it the node has no time series.
--unit <unit>Unit, for example °C
--description <text>Description
--direction <direction>Direction of the value toward the outside: in, out, inout or none. Default for a node with a value type: inout.
--duplicate <first|last>With the same timestamp the first (first) or the last (last, default) value wins
--tag <tag>Tag of the node, repeatable
--alias <alias>Alias of the node, repeatable. An alias is unique within the tenant and counts as a path segment like the name.
--high-volumeSizes the node for very many values (over 100,000 per day); the data volume setting in the web interface
--format <format>Only with --type stream: stream format raw, wav or mp4
--param <name=value>Parameter of the stream format, repeatable: for wav for example sampleRate=48000, channels=2, bitsPerSample=24 (or float32=true), for raw bytesPerSecond=…
--template <template>Creates a whole subtree from a template. Name in the target's tenant, Tenant/Name or id.
--version <number>Only with --template: version of the template (default: the newest)
console
$ loot node create "Brewery/Plant.Line1.Temperature" --type double --unit °C --description "Wort temperature" --tag Sensor
Node 'Brewery/Plant.Line1.Temperature' angelegt (Id 103).

More examples:

A node with its own alias, input only from outside and sized for very many values:

console
$ loot node create "Brewery/Plant.Line1.Vibration" --type double --unit mm/s --direction in --alias Schwingung --high-volume
Node 'Brewery/Plant.Line1.Vibration' angelegt (Id 108).

A compound node with two fields. You create the fields of a compound as children of the compound node:

console
$ loot node create "Brewery/Plant.Line1.Alarm" --type compound
Node 'Brewery/Plant.Line1.Alarm' angelegt (Id 105).
$ loot node create "Brewery/Plant.Line1.Alarm.Message" --type string
Node 'Brewery/Plant.Line1.Alarm.Message' angelegt (Id 106).
$ loot node create "Brewery/Plant.Line1.Alarm.Severity" --type int
Node 'Brewery/Plant.Line1.Alarm.Severity' angelegt (Id 107).

A stream node for a microphone that delivers 48 kHz at 24 bit:

console
$ loot node create "Brewery/Plant.Line1.Microphone" --type stream --format wav --param sampleRate=48000 --param channels=2 --param bitsPerSample=24
Node 'Brewery/Plant.Line1.Microphone' angelegt (Id 109).

A subtree from a template (see below). Value type, unit, description, direction, duplicate rule, format and parameters then come from the template, which is why these options are not allowed together with --template. The template's default values are written as first values:

console
$ loot node create "Brewery/Plant.Line2" --template Tank
Node 'Brewery/Plant.Line2' aus Template 'Tank' (Version 3) angelegt (Id 130); 4 Defaultwert(e) geschrieben.

If the template has command connections or links that cannot be created at the target (missing Execute permissions or targets that no longer exist), loot also reports how many were left out.

loot node show#

Shows the properties of a node and its latest value.

text
loot node show <path>
console
$ loot node show "Brewery/Plant.Line1.Temperature"
Pfad:         Brewery/Plant.Line1.Temperature
Id:           103
Name:         Temperature
Beschreibung: Wort temperature
Werttyp:      Double
Einheit:      °C
Richtung:     InOut
Duplikate:    LastServe
Letzter Wert: 18.9

Where applicable, these are added:

  • for compound nodes a Felder: line (Name: Werttyp [Einheit]) and the latest record as JSON,
  • for stream nodes format, parameters and the last session instead of the latest value,
  • for nodes created from a template a Template: line with name, version, newest version and the number of deviations.

Duplikate shows the rule for equal timestamps: LastServe is last, FirstServe is first.

loot node clone#

Clones a node with its subtree: structure, properties, units, links and the connections within the subtree are copied. Not copied are values, permissions, file contents, aliases, tags and connections to the outside. The copy inherits the permissions of its new parent.

text
loot node clone <path> <target-path> --name <name> [--with-commands] [--wait]
Argument or optionMeaning
<path>Node whose subtree is cloned
<target-path>Tenant (the copy becomes a root node) or node (the copy becomes a child) under which the copy lives
--name <name>Required. Name of the copy. It must not be taken at the target yet.
--with-commandsAlso copies commands with their parameters, their visibility and the command connections within the subtree
--waitFor a clone in the background, waits for the end and shows progress

A clone never crosses tenant boundaries and never goes into its own subtree. Small subtrees are copied at once:

console
$ loot node clone "Brewery/Plant.Line1" "Brewery/Plant" --name Line2
Node 'Brewery/Plant.Line1' nach 'Brewery/Plant' geklont als 'Line2' (Id 140).

The server clones large subtrees in the background. loot then names the number of the clone:

console
$ loot node clone "Brewery/Plant" "Brewery" --name PlantCopy
Klon 12 gestartet: 'Brewery/Plant' wird im Hintergrund nach 'Brewery' geklont (Node 150, mindestens 5200 Elemente).
Stand abfragen: loot copy show 12

With --wait, loot stays until the end and shows progress; on an error or cancellation it ends with exit code 1:

console
$ loot node clone "Brewery/Plant" "Brewery" --name PlantCopy --with-commands --wait
Klon 12 gestartet: 'Brewery/Plant' wird im Hintergrund nach 'Brewery' geklont (Node 150, mindestens 5200 Elemente).
1800/5200 Elemente
4100/5200 Elemente
Node 'Brewery/Plant' nach 'Brewery' geklont als 'PlantCopy' (Id 150, 5200 Elemente).
Kommando-Verbindungen: 14 kopiert, 2 ausgelassen.

Connections to commands for which you lack the Execute permission on the copy are left out, because they would never trigger.

loot node delete#

Deletes a node.

text
loot node delete <path> [--recursive] [--no-wait]
Argument or optionMeaning
<path>Path of the node
--recursiveAlso deletes all children together with their values. Without this option the server refuses to delete while the node has content (a conflict message).
--no-waitDoes not wait for the end of a deletion in the background
console
$ loot node delete "Brewery/Plant.Line1.Vibration"
Gelöscht: Brewery/Plant.Line1.Vibration

The server deletes large subtrees in the background. The nodes are then invisible at once, and loot waits and shows progress unless you give --no-wait:

console
$ loot node delete "Brewery/Plant" --recursive
Löschung 8 gestartet: Brewery/Plant wird im Hintergrund gelöscht (5200 Nodes).
2100/5200 Nodes, 840000 Werte
Gelöscht: Brewery/Plant (5200 Nodes, 1960000 Werte).

loot node migrate-template#

Switches a node that was created from a template to a newer version of that template, without losing values.

text
loot node migrate-template <path> [--version <number>]
Argument or optionMeaning
<path>Path of the node created from a template
--version <number>Target version (default: the newest)

Switching works only to newer versions, and only if the node itself has no structural changes compared with its version and no node with values would drop out or change its value type or retention class. Otherwise the server refuses and names the reasons. Existing nodes keep id, values and permissions; new ones arise with their default values.

console
$ loot node migrate-template "Brewery/Plant.Line2"
'Brewery/Plant.Line2' von Version 2 auf 3 umgestellt; 2 Defaultwert(e) geschrieben.

Indented lines below describe the individual changes, if there are any to name. Requirements: Manage on the node and Read on the template.

Creates a link under a node, a reference to another node of the same tenant. Creating it needs the Manage permission on the node under which the link appears. A link grants no permissions: whoever follows it needs permissions on the target.

text
loot node link <path> <target> [--name <name>]
Argument or optionMeaning
<path>Node under which the link appears
<target>Node the link points to (in the same tenant)
--name <name>Name of the link (default: name of the target)
console
$ loot node link "Brewery/Plant.Line2" "Brewery/Plant.Line1.Temperature" --name Reference
Link 'Reference' unter 'Brewery/Plant.Line2' angelegt.

loot node priority#

Sets the priority of a node. Normal is the default. With Realtime, a new value appears in the node page, charts and dashboards and takes effect in the data flow in under 100 milliseconds after arrival, even before it is stored.

text
loot node priority <path> <Normal|Realtime>
ArgumentMeaning
<path>Path of the node
<Normal|Realtime>Normal or Realtime

Whoever has Manage on the node and the tenant permission Assign realtime may set realtime; in addition, the tenant's realtime quota must have room. Going back to Normal needs only Manage. Realtime exists only for nodes with a time series, not for streams and compounds.

console
$ loot node priority "Brewery/Plant.Line1.Temperature" Realtime
'Brewery/Plant.Line1.Temperature' hat jetzt die Priorität Realtime.

loot template list#

Lists the templates of a tenant.

text
loot template list <tenant>
ArgumentMeaning
<tenant>Name or id of the tenant
console
$ loot template list "Brewery"
Id  Name  Neueste Version  Versionen  Verwendet
--  ----  ---------------  ---------  ---------
21  Tank  3                3          5
22  Pump  1                1          0

loot template show#

Shows the versions of a template and the nodes of its newest version.

text
loot template show <template>
ArgumentMeaning
<template>Template as Tenant/Name or as an id
console
$ loot template show "Brewery/Tank"
Template:     Tank
Id:           21
Arbeitsstand: wie neueste Version
Verwendet:    5 Node(s)

Version  Angelegt                          Von     Nodes  Verwendet
-------  --------------------------------  ------  -----  ---------
1        2026-10-02T10:01:12.000000+02:00  alice  3      0
2        2026-11-05T15:40:03.000000+01:00  alice  4      0
3        2026-11-20T09:12:44.000000+01:00  alice  5      5

Nodes der Version 3:
Pfad      Werttyp  Einheit  Richtung  Defaultwert
--------  -------  -------  --------  -----------
(Wurzel)  -        -        -         -
Level     Double   %        InOut     0
Links: 0, Kommandos: 2, Verbindungen: 1

The tables show all versions and the nodes of the newest version with their default values; the last line counts links, commands and connections in the template.

loot template create#

Creates a new template from the subtree of a node (version 1). The node then refers to the template.

text
loot template create <node> [--name <name>]
Argument or optionMeaning
<node>Path of the node whose subtree becomes the template
--name <name>Name of the template (default: name of the node)
console
$ loot template create "Brewery/Plant.Line1" --name Line
Template 'Line' angelegt (Id 23, Version 1); 'Brewery/Plant.Line1' verweist darauf.

You create new versions and edit a template in the web interface (templates). You create nodes from a template with loot node create --template.

loot copy show#

Shows the state of a background clone.

text
loot copy show <id>
ArgumentMeaning
<id>Number of the clone (shown in the output of loot node clone)
console
$ loot copy show 12
Klon 12: Brewery/Plant -> PlantCopy
Status: Läuft
Elemente: 3300 von 5200
Kopie: Node 150
Gestartet: 2026-11-30T14:20:00.000000+01:00

The status is Läuft (running), Abgeschlossen (completed), Fehlgeschlagen (failed) or Abgebrochen (cancelled). After an error, Letzter Fehler: … is added.

loot copy list#

Lists the clones of a tenant. You see your own; tenant admins see all.

text
loot copy list <tenant> [--all]
Argument or optionMeaning
<tenant>Name or id of the tenant
--allAlso shows finished clones (completed, failed, cancelled). Finished clones stay retrievable for a limited time (seven days by default).
console
$ loot copy list "Brewery" --all
12  Abgeschlossen   5200/5200  Brewery/Plant -> PlantCopy
13  Läuft           900/5200   Brewery/Plant -> PlantTest

Without matches the command reports Keine laufenden Klone. (with --all: Keine Klone.).

loot copy cancel#

Cancels a background clone. The partial copy is then deleted in the background. Whoever started the clone may cancel it, as may tenant admins and system admins.

text
loot copy cancel <id>
ArgumentMeaning
<id>Number of the clone
console
$ loot copy cancel 13
Klon 13 abgebrochen; die Teilkopie wird im Hintergrund gelöscht.

loot deletion show#

Shows the state of a background deletion, as started by loot node delete and loot tenant delete.

text
loot deletion show <id>
ArgumentMeaning
<id>Number of the deletion (shown in the output of loot node delete or loot tenant delete)
console
$ loot deletion show 8
Löschung 8: Brewery/Plant
Status: Läuft
Nodes: 2100 von 5200
Werte entfernt: 840000
Gestartet: 2026-11-30T14:25:10.000000+01:00

When finished, Status: Abgeschlossen and a line Abgeschlossen: with the time appear; an error appears under Letzter Fehler:.

A product of Rheinwert Datentechnik · rheinwert.deVersion: LooT 0.9.10