cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1219
Views
0
Helpful
3
Replies

SNMP Filtering out Link-3-UPDOWN

TOM FRANCHINA
Level 1
Level 1

I would like to send out only meaningful log information to the syslog.  I would like to filter out %LINK-3-UPDOWN: and  %LINEPROTO-5-UPDOWN: going to the syslog but I would like them to be visable in the show logging as it is useful for trouble shooting.

I don't want to just send level 2 and below because there are problem at level 4 and 5 that are important to know.

Switch Ports Model              SW Version            SW Image

------ ----- -----              ----------            ----------

     1 52    WS-C3750-48TS      12.2(53)SE            C3750-IPBASEK9-M

Thanks,

Tom

3 Replies 3

Rolf Fischer
Level 9
Level 9

Tom,

I assume you're asking for syslog, not SNMP?

A logging discriminator for host logging could be what you're looking for:

http://www.cisco.com/en/US/docs/ios-xml/ios/esm/command/esm-cr-a1.html#GUID-B7887982-361D-4C8E-BAAF-977AEC1C78EA

As you surely know, the syslog format starts like this:

%FACILITY-[SUBFACILITY-]SEVERITY-MNEMONIC

The messages, you don't want to be send to your syslog server both have "UPDOWN" as MNEMONIC.

So you could simply configure ("LINKCHANGE" ist just a name, change it if you like to):

logging discriminator LINKCHANGE mnemonics drops UPDOWN

logging host discriminator LINKCHANGE

Note: This discriminates all syslog messages with "UPDOWN" as mnemonic from sending to the syslog server. There might be other messages that match this pattern, although I don't know any.

HTH

Rolf                  

Thanks very much... this does what I was looking for.

Rolf,

Can I have multiple disciminators applied to one Server. I could not find a way to do that. For example UPDOWN and POWER_DETECTED

Thanks again

Review Cisco Networking products for a $25 gift card