Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Syslog

Hi,

I need to send syslog to a server

which command should I use :

logging xxx.xxx.xxx.xxx

or

snmp-server enable traps

snmp-server host xxx.xxx.xxx.xxx public

cheers

dav

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: Syslog

I believe that the fundamental question here is about the relationship between: snmp-server enable traps command and syslog server. The answer is that snmp-server enable traps will enable the router to send traps to the SNMP server. It is an entirely different function than sending to a syslog server.

HTH

Rick

5 REPLIES
Silver

Re: Syslog

If it is a syslog server then use:

logging on

logging server-ip

logging trap informational <- security level

logging facility router5 <- must match server

http://www.cisco.com/en/US/products/sw/cscowork/ps2073/products_tech_note09186a00800a7275.shtml

New Member

Re: Syslog

Ok thanks but

what is snmp-server enable traps command use for ?

snmp-server enable traps

snmp-server host xxx.xxx.xxx.xxx public

Silver

Re: Syslog

Hi!

You need to first build a server and then install some syslogging software on that.(Kiwi syslog is the best and its available for free!!!)

Then you need to add this server as the syslog server in all the devices from which you want logs to be stored.

On all the devices from which you want logs, enter the following commands:

- enable

- configure terminal

- logging host a.b.c.d

- logging trap '0-7'

logging level 0 is the most severe and logging level 7 is the lowest in severity.

You can also configure services so that all your logs have a time stamp with the date and time.

Enter the following commands:

- enable

- configure terminal

- service timestamps log datetime

For more please refer the following link -->

http://www.cisco.com/en/US/products/hw/switches/ps646/products_configuration_guide_chapter09186a00801f0a4e.html#1031634

Download Kiwi syslog daemon from the following link-->

http://www.kiwisyslog.com/php/download.php?syslogdV8_kiwitools&v=8.0.2

Using SNMP you can monitor your devices in real time, also you can monitor various aspects of the device in realtime. You can also use SNMP to make changes in the device.

Read the following link for more -->

http://www.cisco.com/en/US/products/hw/switches/ps708/products_configuration_guide_chapter09186a008019f033.html

Hope this helps...

Regards,

AbhisheK

Please rate helpful posts!!!

Hall of Fame Super Silver

Re: Syslog

I believe that the fundamental question here is about the relationship between: snmp-server enable traps command and syslog server. The answer is that snmp-server enable traps will enable the router to send traps to the SNMP server. It is an entirely different function than sending to a syslog server.

HTH

Rick

227
Views
4
Helpful
5
Replies
CreatePlease login to create content