From: Tim Fletcher (tim@fletchmail.net)
Date: Fri Apr 25 2003 - 15:37:14 GMT-3
Although the documentation is not clear on this, you can only have 1 level set.
rtr#conf t
Enter configuration commands, one per line. End with CNTL/Z.
rtr(config)#logging trap error
rtr(config)#logging trap emergencies
rtr(config)#logging trap notifications
rtr(config)#^Z
rtr#sh run | inc logging
logging buffered 4096 debugging
logging trap notifications
logging facility local0
logging 192.168.240.8
All messages with a level equal to or lower will get logged.
Excerpts from my syslog server:
%SEC-6-IPACCESSLOGDP: list ACL denied icmp 192.168.1.1 -> 224.0.0.2 (10/0),
1 packet
%SYS-5-CONFIG_I: Configured from console by admin on vty0 (192.168.1.1)
%CRYPTO-4-IKMP_NO_SA: IKE message from 172.16.1.1 has no SA and is not an
initialization
%LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
-Tim Fletcher #11406
At 11:04 AM 4/25/2003 -0500, Swink, Dave wrote:
>Nguyen,
>
>This will limit error message logging to only the specified levels:
>
>logging trap error
>logging trap emergencies
>logging trap notifications
>
>Dave Swink
>
>-----Original Message-----
>From: Nguyen Hoang Long [mailto:ng-hlong@hn.vnn.vn]
>Sent: Thursday, April 24, 2003 8:19 PM
>To: Yadav, Arvind K (CAP, GECIS); ccielab@groupstudy.com
>Subject: Re: logging level
>
>
>not really what I want, check my exact requirement:
>
> > Is there anyway around to configure logging to a Syslog server, and sent
>ONLY
> > error(3), emergencies(0) and notifications(5) messages ?
> >
> >
> >
> > 'logging trap notifications' command will send all messages from
> > notifications(5) up to emergencies(0).
>
>
>
>----- Original Message -----
>From: "Yadav, Arvind K (CAP, GECIS)" <Arvind.Yadav@gecis.ge.com>
>To: "'Nguyen Hoang Long'" <ng-hlong@hn.vnn.vn>; <ccielab@groupstudy.com>
>Sent: Thursday, April 24, 2003 8:06 PM
>Subject: RE: logging level
>
>
> > You can define which level you want (0-7)
> >
> > Router(config)#logging trap ?
> > <0-7> Logging severity level
> > alerts Immediate action needed (severity=1)
> > critical Critical conditions (severity=2)
> > debugging Debugging messages (severity=7)
> > emergencies System is unusable (severity=0)
> > errors Error conditions (severity=3)
> > informational Informational messages (severity=6)
> > notifications Normal but significant conditions (severity=5)
> > warnings Warning conditions (severity=4)
> > <cr>
> >
> > Arvind
> >
> > -----Original Message-----
> > From: Nguyen Hoang Long [mailto:ng-hlong@hn.vnn.vn]
> > Sent: Thursday, April 24, 2003 2:46 PM
> > To: ccielab@groupstudy.com
> > Subject: Fw: logging level
> >
> >
> > Hi group,
> > Is there anyway around to configure logging to a Syslog server, and sent
>ONLY
> > error(3), emergencies(0) and notifications(5) messages ?
> >
> >
> >
> > 'logging trap notifications' command will send all messages from
> > notifications(5) up to emergencies(0).
> >
> >
> >
> > thx
> >
> > Long.
This archive was generated by hypermail 2.1.4 : Thu May 01 2003 - 13:36:07 GMT-3