RE: how can I decode a PDU?
"JORDI LOPEZ" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
What if you make a small program that gets the PDU from the serial and relays it to net-snmp using a socket to 127.0.0.1 UDP port 161 and relay back the answer to the serial, sort of a bridge between serial and socket. No need to decode the PDU. In this way net-snmp would do the work for you and you'd only have to develop a subagent to handle the objects involved. Subagent that will also work if accessed through LAN. Jordi López > -----Mensaje original----- > De: Ottavio Campana [mailto:[email protected]] > Enviado el: lunes, 20 de septiembre de 2010 14:22 > Para: [email protected] > Asunto: how can I decode a PDU? > > > I have an application that receives SNMP PDU from a serial port. > > I correctly get the PDU and I'd like to use the library provided by > net-snmp to decode the PDU. > > My problem is that I cannot find how to use it. If I use > xdump I see the > correct unit, but it is not clear to me if I have to use > snmp_parse_var_op or some other function to decode the PDU. > > Do you have any hint? > > Thank you > > Ottavio > > -------------------------------------------------------------- > ---------------- > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > 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 > > ______________________________________________________________________ > IMAGO GROUP > This email has been scanned by the MessageLabs Email Security System. > > ______________________________________________________________________ > ______________________________________________________________________ IMAGO GROUP www.imagoscreens.com This email has been scanned by the MessageLabs Email Security System. ______________________________________________________________________ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ 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