Antwort: Q: Snmp++ traps
Frank Fock
Frank.Fock____marconi.com
Mon Oct 9 15:24:47 CEST 2000
Hi Manjunath,
The IP address of the notification originator ist NOT part of
the SNMPv2 trap PDU (i.e., notification).
Thus, a manager can only determine the sender's IP address
by asking its transport layer. So, in your case, I assume, the agent
has sent the trap from the localhost to a manager on the same
host.
Best regards,
Frank
|--------+----------------------------->
| | "manjunath ramaiah |
| | " |
| | <manjunath.ramaiah@|
| | wipro.com> |
| | |
| | 08.10.00 20:35 |
| | |
|--------+----------------------------->
>----------------------------------------------------------------------------|
| |
| An: agentpp-dl at fock.de |
| Kopie: (Blindkopie: Frank Fock/MAIN/MC1) |
| Thema: Q: Snmp++ traps |
>----------------------------------------------------------------------------|
Hi ,
I am using snmp++ to send the traps( Snmp::trap() function) . I have
this problem .
I am not setting the address of the agent which is sending the trap in
the pdu in my code . On Receiving the trap , in the Manager side the
instead of displaying the agent ipaddress it is displaying as 'local
host ' .The source addr in
the trap pdu is 0. I looked into snmp++ code , SnmpMessage::load()
function is placing the agent addr by making gethostname function . But
this code is in the
IF condition and it is done for V1 traps only .
How to make the trap pdu to contain the ipaddr of the M/C sending the
trap ?
More information about the AGENTPP
mailing list