06-12-2009 04:50 AM - edited 03-06-2019 06:13 AM
hi,
What is the difference between syslog and snmp traps.
Is 'logging host' command used for both syslog and snmp traps.
06-12-2009 06:13 AM
A syslog entry is generated by the device as a notification of something happening on the system. An example is that a NAT translation was created.
An SNMP trap is a log entry that is generated by the system that maps from a MIB. An example is a BGP session went down (which may or may not also be a syslog entry). Typically you use traps if you need something specific to be logged.
The logging host can used for both.
Hope that helps.
06-12-2009 07:36 AM
How can I distinguish a syslog from an snmp trap on the logger where both the information is stored.
Thanks.
06-12-2009 08:26 AM
A syslog will have a code associated with it-
%PIX|ASA-3-105010
I believe the snmp trap will have just a number-
952376318
You could also search your logs on the keyword 'Trap'
http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_tech_note09186a0080094a13.shtml
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: