Friends,
I need to pass the device's hostname to a command in a configuration template. I can't seem to find what the variable is to insert the hostname or system name into the CLI portion of the script! Any clues to lend? Ought to be simple but I can't find any example of it anywhere.
For example:
script SetLogPrefixJUNOS(NCM.Nodes @ContextNode, @HOSTNAME)
{
CLI
{
configure exclusive
set system syslog host 10.1.1.1 log-prefix "@HOSTNAME"
commit
exit
}
}