cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
545
Views
4
Helpful
5
Replies

Syslog

trombidz1
Level 1
Level 1

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

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

HTH

Rick

View solution in original post

5 Replies 5

ahmednaas
Level 4
Level 4

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

Ok thanks but

what is snmp-server enable traps command use for ?

snmp-server enable traps

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

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

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

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: