Skip to content

sending a v1 trap does not sent agent_addr #255

@noeltimothy

Description

@noeltimothy

I just tried to send an SNMP v1 trap with the agent_addr option set. The trap is sent to the destination but the PDU does not have the 'agent_addr' varbind set.

    client.trap ('10.0.1.249', 'public',
                    {'specific_trap' : specific_trap,
                     'generic_trap': m.pdu.generic_trap,
                     'enterprise': m.pdu.enterprise,
                     'time_stamp' : m.pdu.time_stamp,
                     'agent_addr': m.pdu.agent_addr },
                    m.pdu.varbinds)

I'm assuming the destination should see the following OID in the varbind
iso.3.6.1.2.1.14.1.1.0 = IpAddress: 10.0.1.252

Please correct me if I'm wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions