Hi Ruby Forum, I have a script that opens a UDPSocket on port 162 and listens for traps which are then sent to STDOUT for now. I am seeing data strings coming in that are in a format that I need to decode somehow. I have read through all the doco on UDPSocket and BasicSocket and Socket and don't see any way to decode the data being sent in the traps. Here is an example of what I'm seeing from my Cisco devices: ["0\201\351\002\001\000\004\02087", ["AF_INET", 51709, "10.1.1.1", "10.1.1.1"]] The first numbers enclosed in the first set of parenthesis contain the data in the trap. Does anyone know how I would go about decoding these? Thanks in advance jackster.mobi -- Posted via http://www.ruby-forum.com/.