02-15-2007 01:29 AM - edited 03-05-2019 02:22 PM
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
Solved! Go to Solution.
02-15-2007 10:13 AM
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
02-15-2007 01:44 AM
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
02-15-2007 02:04 AM
Ok thanks but
what is snmp-server enable traps command use for ?
snmp-server enable traps
snmp-server host xxx.xxx.xxx.xxx public
02-15-2007 02:23 AM
Check this link for info about SNMP:
02-15-2007 09:29 AM
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 -->
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 -->
Hope this helps...
Regards,
AbhisheK
Please rate helpful posts!!!
02-15-2007 10:13 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide