Hi,
I am trying to write a handler. The objective of the handler is
1. To accept traps , process the traps and send it to another destination
host after processing them.
To send traps to other destination , I am trying to use from NET::SNMP.
$result = $session->trap(
-enterprise => $enterprise,
-agentaddr => $agentaddress,
-generictrap => $specifictrap,
-varbindlist => \...@varbindarray
};
*PROBLEM:*
I am having problem in constructing the \...@varbindarray.
The format of this is
--varbindlist => [
'1.3.6.1.2.1.1.1.0', OCTET_STRING, 'Hub',
'1.3.6.1.2.1.1.5.0', OCTET_STRING, 'Closet Hub'
]
How can I extract the ASN 1.0 Types ( ie OCTET_STRING ) for each varbind of
the incoming trap to build \...@varbindarray to build the array??
I thought I could use "$session->var_bind_types" to fetch those
information. But I am not sure how the usage would be.
Pls guide me with an example of the usage, or let me know if it can be
implemented at all or not??
Thanks
Chetan
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users