User command example: Echo command

This example shows how to create an echo user command. You can see the use of TALES
expressions in the definition of this command.

Add a command called "echoDevice"

In the command definition, echo the name and IP address of the device:

echo name = ${here/id} ip = ${here/manageIp}

In a TALES expression, here is the object against which the
expression is executed. Some TALES expressions in the system have other variables (such as
evt for event, and dev or device for
the device). See the Appendix titled TALES Expressions for more information about TALES
expressions syntax.