Hi All,
i'm traing to change summary of some events generated by cisco trap: "topologyChange".
I added to the summary the name of interface in this way:
evt.summary = evt.summary + ' - Interface ' + evt.ifName
and it work fine.
Then i tried to add also the vlan number involved in "topologyChange"
evt.summary = evt.summary + ' - Interface ' + evt.ifName + ' - vlan ' + evt.vtpVlanIndex
using this nothing happend a no one event appears in events page.
Then i tried something easier:
evt.summary = evt.summary + evt.vtpVlanIndex
but still nothing at all, no one event in the events page.
Then the last one, i tried this:
evt.summary = evt.vtpVlanIndex
And it works! But of course i don't want to have an event with only a number as a summary.
If i try this:
evt.summary = "Vlan: " + evt.vtpVlanIndex
it doesn't work.
I had also tried this:
vlan = evt.vtpVlanIndex
evt.summary = "Vlan: " + vlan
but still nothing.
Why does evt.vtpVlanIndex seem to not work in summary if i put it with other "words" and why does evt.ifName work in any condition?
Thanks
Ale