|
Handling a SNMP Opaque var type in vb.net -- delmonster --
All... I am currently developing an application in VB.Net that talks to a SNMP M(anagement) I(information) B(lock) in a remote imbedded PC that is acting as a data logger. It works by sending a series of Object Identifiers across the network to set and retreive values. I can handle everything except for one value that is an "OPAQUE" variable type in the MIB. This Opaque type is a generic holder much like a VB "object" type. When I use a MIB Browsing software (I use iReasoning) to see the value in the MIB it is being stored as a hex value, and the actual value is an int value (only a 1 or 2 is being saved) When I get it back into my VB code (I use nSoftware's snmp manager snap-in for handling snmp communicatioons) it is an unrecognizable character, supposedly a string, but does not convert into anything recognizable. I need to figure out how to retreive an Opaque type and make it actually come in even as a hex value, or something concrete and workable through VB code, so that i can convert it into the int value it actually is, rather than getting a character that I cannot work with or convert at all.... Any suggestion are greatly appreciated... |