cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1314
Views
0
Helpful
3
Replies

SNMP Trap/Syslog

nojpt
Level 1
Level 1

Hi,

Can anybody point me to a site where i could read a nice article about SNMP Traps and Syslog?

I am confused which to use. SNMP traps or syslog messages logged to a management station. I have a HPOV on solaris and im afraid i have incorrect configuration on my cisco devices. Or do i have to configure both snmp traps and set logging server to be able to get syslog messages to my management station ?

Thanks.

1 Accepted Solution

Accepted Solutions

Palani Mohan
Cisco Employee
Cisco Employee

A good place to start to know what is SNMP would be

http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/snmp.htm

Traps and syslog messages are different means by which an agent tells the monitoring application something siginificant.

Both UDP for transport, but different port numbers trap udp/162 syslog udp/514.

Traps are received and processed by NMS applications like OV/NNM.

Syslog messages are received and processed by syslog daemon (which is standard for UNIX systems) and 3rd party syslog applications for Windows systems

As correctly metioned by you, you can configure a router to send syslog messages using the command logging a.b.c.d where a.b.c.d is the IP address of the syslog server

Enabling traps is a 2 step process:

snmp-server enable traps ?

Select which traps are of interest to you

snmp-server host a1.b1.c1.d1 public

where a1.b1.c1.d1 is the IP address of your NMS application

An excellent resource is the Cisco press book titled

Performance & Fault Management

ISBN: 1578701805

Here comes the tricky part: A syslog message can be encaspulated in a trap packet and sent to a trap receiver like OV/NNM. To enable a Cisco router to send a syslog message a SNMP trap, you would do the following:

snmp-server enable traps syslog

^^^^^^^

This functionality is not needed in most situations.

hth .. palani

View solution in original post

3 Replies 3

Palani Mohan
Cisco Employee
Cisco Employee

A good place to start to know what is SNMP would be

http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/snmp.htm

Traps and syslog messages are different means by which an agent tells the monitoring application something siginificant.

Both UDP for transport, but different port numbers trap udp/162 syslog udp/514.

Traps are received and processed by NMS applications like OV/NNM.

Syslog messages are received and processed by syslog daemon (which is standard for UNIX systems) and 3rd party syslog applications for Windows systems

As correctly metioned by you, you can configure a router to send syslog messages using the command logging a.b.c.d where a.b.c.d is the IP address of the syslog server

Enabling traps is a 2 step process:

snmp-server enable traps ?

Select which traps are of interest to you

snmp-server host a1.b1.c1.d1 public

where a1.b1.c1.d1 is the IP address of your NMS application

An excellent resource is the Cisco press book titled

Performance & Fault Management

ISBN: 1578701805

Here comes the tricky part: A syslog message can be encaspulated in a trap packet and sent to a trap receiver like OV/NNM. To enable a Cisco router to send a syslog message a SNMP trap, you would do the following:

snmp-server enable traps syslog

^^^^^^^

This functionality is not needed in most situations.

hth .. palani

Thank you.

jinjun.liu
Level 1
Level 1

a