Chris
The initial traps which you got are forwarded by snmpd, but when your try to send traps using snmptrap, bydefault it will send to 162 port for clients. So you need to send traps(snmptrap) with your required port #no in the command. If agent itself generates traps then (not from snmptrap) it would send to your inteneded port 9162.
Mahesh
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of MAZELIN-EXTERNAL Christophe
Sent: Thu 1/12/2006 3:42 PM
To: net-snmp-coders@lists.sourceforge.net
Subject: NET-SNMP Configuration
Hi, all
I would like to have your opinion about my problem when I use NET-SNMP :
My application send a trap locally, It uses localhost - port 162. I want
to send this trap to my SNMP manager and I want also to change the port
number, in fact I want to translate the port number 162 to 9162 ( I use
NET-SNMP version 5.0.9, Redhat AS 3).
I wrote this snmpd.conf :
############################################################
rwcommunity unix
trapsink 10.104.17.52 unix 9162
trap2sink 10.104.17.52 unix 9162
trapcommunity unix
informsink 10.104.17.52 unix 9162
master agentx
[snmp]
doDebugging 1
debugTokens agent,result
dumpPacket true
logTimestamp true
############################################################
When I start snmpd daemon, I receive 2 (information) traps (ip address :
10.104.17.52 , port number 9162):
[12/Jan/2006:10:13:55 +0100] 1.3.6.1.6.3.1.1.5.1 - 30 -
[1.3.6.1.2.1.1.3.0 = 0:00:00.30; 1.3.6.1.6.3.1.1.4.1.0 =
1.3.6.1.6.3.1.1.5.1; 1.3.6.1.6.3.1.1.4.3.0 = 1.3.6.1.4.1.8072.3.2.10]
[12/Jan/2006:10:14:04 +0100] 1.3.6.1.4.1.8072.3.2.10.0 - 30 - []
But after that, I try to simulate a new trap with snmptrap locally, but
I receive nothing at all from the server on my SNMP manager.
If you can give me an advice about settings, I will appreciate, I join
an attached files for completing my explanation.
Thanks a lot. <<configuration.jpg>>
Best regards.
Chris.
Title: RE: NET-SNMP Configuration
- RE: NET-SNMP Configuration kanakamahesh.anasuri
- Re: NET-SNMP Configuration Dave Shield
- RE: NET-SNMP Configuration Dave Shield
- RE: NET-SNMP Configuration Dave Shield