Syslog

Answered Question
Feb 15th, 2007

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

I have this problem too.
0 votes
Correct Answer by Richard Burts about 9 years 7 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.5 (2 ratings)
Loading.
trombidz1 Thu, 02/15/2007 - 02:04

Ok thanks but

what is snmp-server enable traps command use for ?

snmp-server enable traps

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

abhishek_nandavat Thu, 02/15/2007 - 09:29

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!!!

Correct Answer
Richard Burts Thu, 02/15/2007 - 10:13

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

Actions

This Discussion