[cisco-voip] OT: IOS Embedded Syslog Manager

Ed Leatherman ealeatherman at gmail.com
Tue Sep 28 14:43:47 EDT 2010


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


More information about the cisco-voip mailing list