[pysnmp-users] RE: decoding MAC values in snmptable.py
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2002-09-19 08:15:49
|
A list for users of pure-Python SNMP framework <pysnmp-users.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/pysnmp-users>, <mailto:pys...@li...?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchives/forum.php?forum=pysnmp-users> I think that the exact data representation format for arbitrary OID is normally provided by MIB. Since there is no MIB compiler bundled with pysnmp at the moment, there seems to be no universal way to handle that. Once you know the complete set of OIDs you are going to use in your particular application, a workaround would be to hardcode values representation rules based on OID, that is what John suggested. To figure out the representation format for particular data type -- consult appropriate MIB. -ilya >From: John David <john@mn...> >Subject: decoding MAC values in snmptable.py > > Here's how I did it: > > # > import binascii |