I dislike the fact, that on my MX series routers, when I run a commit script it prints warning messages for both RE's. I'd prefer to print the messages once for the primary/active RE.
Is there a variable that will tell me which RE the script is being run on?
if ($routing-engine = "primary") {
<xnm:warning> {
<message> "you missed something in your config";
}
}
It looks like there is: http://jnpr.net/techpubs/software/junos/junos83/junoscript83-guide/html/summary-junoscript-tags21.html
However, I'm not sure how to get that into a variable. $top will look at the top of the config. How do I look in commit-results, and does commit-results. I don't know if I can use this anyhow, as it looks like a result from the 'server' AFTER the config commit is completed, and may not be available at the time I want the warning to show.
#RE#engine#junoscript#routing#Slax