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,

What is the difference between syslog and snmp traps.

Is 'logging host' command used for both syslog and snmp traps.

3 REPLIES

Re: Syslog

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.

New Member

Re: Syslog

How can I distinguish a syslog from an snmp trap on the logger where both the information is stored.

Thanks.

Re: Syslog

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

128
Views
9
Helpful
3
Replies