Re: Set on hex string using python library
François Dumont <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/8/4 Dave Shield <[email protected]> > > I've logged this as a bug in the project tracker (#2832044) > > Dave > Thank you. I have another question : about the display of a MAC address (still using the python library). When I do this query : oid = netsnmp.Varbind('rbAuBaseStationId', '1') > HardwareAddress = netsnmp.snmpget(oid, DestHost = RadioID, Community = > "public", Version = 2) > for i in HardwareAddress: > print "HardwareAddress : ", i > I have this answer : HardwareAddress : ���� > Which is not readable at all. I can do this : oid = netsnmp.Varbind('rbAuBaseStationId', '1') > HardwareAddress = netsnmp.snmpget(oid, DestHost = RadioID, Community = > "public", Version = 2) > print HardwareAddress > But it's not really what I expect... ('\xba\xbe\xba\xbe\xfa\xce',) > If I could have the same result as a command line request (BA BE BA BE FA CE), it would be better. Do you know how to do so ? Thank you ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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