[cisco-voip] OT: IOS Embedded Syslog Manager
Anthony Holloway
avholloway+cisco-voip at gmail.com
Tue Sep 28 22:40:14 EDT 2010
I have never worked with this feature before, but you are returning an empty
string: return "".
You could try any simply using the return keyword without the empty string
value. If it absolutely needs something, you could try a boolean: return
false.
Anthony
On Tue, Sep 28, 2010 at 1:43 PM, Ed Leatherman <ealeatherman at gmail.com>wrote:
> Not strictly VOIP related but lots of smart people on this list so
> figured i'd try it....
>
> Trying to setup an ESM script to block interface up/down and
> eventually CDP and POE messages (ie phone stuff) from being sent to
> remote syslog.
> This is a very basic script so there is apparently something
> fundamental i'm not grasping here...
>
> Script looks like this (i pilfered from netpro forums):
> set msgs [ list {LINK-3-UPDOWN} {LINEPROTO-5-UPDOWN}]
> set fac_sev_mnem "${::facility}-${::severity}-${::mnemonic}"
> foreach msg $msgs {
> if {$msg == $fac_sev_mnem } {
> return ""
> }
> }
> return $::orig_msg
>
>
> So I think the logic works fine, it passes messages through to syslog
> that i'm not interested in filtering, however the messages that match
> (LINK-3-UPDOWN etc) it is basically sending a blank line rather than
> not sending at all. Is this working as intended?
>
> TIA !
>
>
>
> --
> Ed Leatherman
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20100928/4e468d7b/attachment.html>
More information about the cisco-voip
mailing list