Re: Set on hex string using python library
Vincent Bernat <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | One Piece |
| Message-ID | <[email protected]> |
OoO Lors de la soirée naissante du mardi 04 août 2009, vers 18:47, François Dumont <[email protected]> disait : > 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',) ":".join("%02x" % ord(a) for a in HardwareAddress) -- /* James M doesn't say fuck enough. */ 2.4.3 linux/net/core/netfilter.c ------------------------------------------------------------------------------ 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