Just a quick question ...
I am working on a change template to set some logging parameters and I can't figure out how to use the Polling IP in my template.... or if it is even possible.
I am trying to do something like this ...
logging source-interface <Node Polling Address> and logging source-interface @node.IPAddress does NOT work.
I want to be sure that the source interface for logging matches the IP address that SW is polling so that syslog events on a node are attached to the correct node IP.
Any ideas?
Thanks,
Brent
script ConfigLogging ( NCM.Nodes @ContextNode )
{
foreach ( @node in @ContextNode )
{
CLI
{
configure terminal
service timestamps debug datetime localtime msec
service timestamps log datetime localtime msec
archive
log config
logging enable
notify syslog contenttype plaintext
hidekeys
logging trap notifications
logging facility syslog
logging source-interface @node.IPAddress
logging 10.1.1.1
}
}
}