


The proper thing to do is get an SNMP library to decode it for you and provide a nice logical value representing what youve received. It is an SNMP PDU with lots of delicious information in it that youd have to extract and parse.

Each trap is decoded and the data is presented in a typical GUI window. Even if you were to reinterpret the binary data as a string, you wouldnt be able to make much sense of it. Trap Receiver allows the instantaneous viewing of alert notifications from any network device that supports SNMP. The data is stored as string hex, would the objectid be stored the same way as it contains '.' I know I can use existing libraries (freely available on the net), but I have just created myself an oppurtunity to learn. Trap Receiver captures, displays, and logs Simple Network Management Protocol (SNMP) Traps. GroupEP = new IPEndPoint(IPAddress.Any, port) Ĭonsole.WriteLine( " Waiting for messages.") Ĭonsole.WriteLine( " Processing new message.") Ĭ( " New message from ", datatype,output) Int commlength, miblength, datatype, datalength, datastart, Objecttype, Objectlength Ĭonsole.WriteLine( " Initializing SNMP Listener on Port:" + port + ".
