AutoPatrol
191
edits
Line 370: | Line 370: | ||
{| class="prettytable" | {| class="prettytable" | ||
| '''Macro''' | | '''Macro''' | ||
| '''Expands | | '''Expands to...''' | ||
|- | |- | ||
Line 386: | Line 386: | ||
|- | |- | ||
| script:''name'' | | script:''name'' | ||
| String returned by script ''name''. Script should be stored in script library (accessible via Control Panel -> Script Library). Inside the script, you can access current | | String returned by script ''name''. Script should be stored in script library (accessible via Control Panel -> Script Library). Inside the script, you can access current node's properties via $node variable. | ||
|} | |} | ||
For example, if you wish to insert | For example, if you wish to insert node's IP address into DCI description, you can enter the following in the description field of template DCI: | ||
Line 402: | Line 402: | ||
Please note that if you change something in the node, name for example, these changes will not be reflected automatically in DCI texts generated from macros. However, they will be updated if you reapply template to the node. | Please note that if you change something in the node, name for example, these changes will not be reflected automatically in DCI texts generated from macros. However, they will be updated if you reapply template to the node. | ||
== Working with collected data == | == Working with collected data == |