[AGENT++] Agent Address V1 trap

Frank Fock fock at agentpp.com
Sat Nov 2 00:06:08 CET 2013


Hi,

I am not sure, that I understand what you are trying to do.
The agentAddress field in SNMPv1 has been deprecated.
Trap receiver should use the IP address from the incoming
packet instead.

Are you trying the specify the sender IP address differently
to the physical interface?

Best regards,
Frank

Am 01.11.2013 19:51, schrieb Cristian Saavedra:
> Hi,
>
> I'm trying to change the originator agent Ipaddress to a desired one.
>
> I'm setting the value on the pdu with the following
>
> UdpAddress add("192.168.1.20");
> pdu.set_v1_trap_address(add);
>
> It seems the library is taking the change however when I check the trap
> source is still saying the localhost IpAddress
> There is no way to assign the V1 ipAddress to the from address?
>
> $ ./snmpTraps localhost -v1 -P10162
> SNMP++ Trap to localhost SNMPV1 Community=public
> 20131101.18:47:17: 21713: (7)INFO   : SNMPMessage: Setting v1 trap address:
> (192.168.1.20)
> 20131101.18:47:17: 21713: (4)DEBUG  : SNMPMessage: return value for build
> message: (0)
> SNMP++ Trap Send Status = Success
>
>
> $ ./receive_trap
> Trying to register for traps on port 10162.
> Waiting for traps/informs...
> press return to stop
> 20131101.18:48:25: 22011: (4)DEBUG  : SNMPMessage: Trap address of received
> v1 trap: (192.168.1.20)
> reason: -7
> msg: SNMP++: Received SNMP Notification (trap or inform)
> from: 127.0.0.1/48547
> ID:  1.3.6.1.6.3.1.1.5.1
> Type:164
> Oid: 1.3.6.1.4.1.11.2.16.2
> Val: SNMP++ Trap Send Test
>
>
>
>
>
> Best Regards,
> Cristian Saavedra
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231



More information about the AGENTPP mailing list