Hi everyone!,

i´m new with NetSNMP and i want to know if it´s possible receive traps and
extract the legible data with a existing client MIB and write it (just the
legible coming data) to a text file or an Oracle DB. At this moment, i
receive the raw data of the trap in a log, but i would like to extract the
important data and i can´t find a solution. Is is possible make it only with
NetSNMP?. Well this is part of the section OBJECT TYPE of the client MIB:
.......
imei            (7),
imsi            (8),
icc             (9),
......

And the output with the raw data of the trap that i get is like this:

SNMPv2-SMI::enterprises.xxxxx.10.1.1.1.1.7 = INTEGER: 7
SNMPv2-SMI::enterprises.32784.10.1.1.1.2.7 = STRING: "45123653019818"
SNMPv2-SMI::enterprises.xxxxx.10.1.1.1.1.8 = INTEGER: 8
SNMPv2-SMI::enterprises.32784.10.1.1.1.2.8 = STRING: "214078430255897"
SNMPv2-SMI::enterprises.xxxxx.10.1.1.1.1.9 = INTEGER: 9
SNMPv2-SMI::enterprises.32784.10.1.1.1.2.9 = STRING: "8934075100127857548"

I only need the data betwwen quotes to pass it to a txt or an Oracle DB. Can
anyone help me, please?.

Thanks in advance
------------------------------------------------------------------------------

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to