Hi,
One can read the trap varbinds from standard input to get the OID and value of
the varbinds. (snmptrapd.conf file configured with processing file to read the
std input)
Is there way to get varbind type from standard input so that we can rebuild the
trap and can send northbound.
#./snmptrapd -f -Le
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (15375814) 1 day, 18:42:38.14
SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprises.9.10.2.3.1.0.1
SNMPv2-SMI::enterprises.9.10.2.1.1.4.1.2.239.16.245.1 = IpAddress: 0.0.0.0
SNMPv2-SMI::enterprises.9.10.2.1.1.4.1.3.239.16.245.1 = INTEGER: 10
SNMPv2-SMI::enterprises.9.10.2.1.1.4.1.4.239.16.245.1 = INTEGER: 1
SNMPv2-SMI::enterprises.9.10.2.1.1.4.1.5.239.16.245.1 = Gauge32: 0
Value retrieved --> DISMAN-EVENT-MIB::sysUpTimeInstance 1:18:42:38.14
Value retrieved --> SNMPv2-MIB::snmpTrapOID.0
SNMPv2-SMI::enterprises.9.10.2.3.1.0.1
Value retrieved --> SNMPv2-SMI::enterprises.9.10.2.1.1.4.1.2.239.16.245.1
0.0.0.0
Value retrieved --> SNMPv2-SMI::enterprises.9.10.2.1.1.4.1.3.239.16.245.1 10
Value retrieved --> SNMPv2-SMI::enterprises.9.10.2.1.1.4.1.4.239.16.245.1 1
Value retrieved --> SNMPv2-SMI::enterprises.9.10.2.1.1.4.1.5.239.16.245.1 0
Regards,
Surya.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders