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

how to enable syslog server in cisco devices routers and switches

praveennoc
Level 1
Level 1

Hi ,

i have installed syslog server in my PC .

how can i enable all trapes in from routers and switches .

What commanda needs to be run in those devices .

Thanks in advance

TY

PS

3 Replies 3

AFROJ AHMAD
Cisco Employee
Cisco Employee

Hi,

To enable all the traps on cisco devices :

snmp-server enable traps

just to enable traps for syslogs:

snmp-server enable traps syslog

To enable syslogs logging:

logging

Thanks-

Afroz

[Do rate the useful post]

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

Hi Praveen

I agree with Afroj on the first two commands. For syslog logging use the follwoing commands. Ususlayy loopback interface is given as source interface.

logging host x.x.x.x

logging source-interface INTERFACE

You can also set the level of trap logging by using

logging trap <0-7>

Refer http://www.cisco.com/en/US/docs/switches/lan/catalyst2950/software/release/12.1_19_ea1/configuration/guide/swlog.html

http://www.ciscopress.com/articles/article.asp?p=426638&seqNum=3

Regards,

Satrhvik K V

Hi Praveen,

Once you have the traps enabled, make sure you configure the host command

snmp-server host version 2c n case you are using snmp version2).

Regards,

Syed Khalid