Hi,

I tried ":".join("%02x" % ord(a) for a in HardwareAddress) but I got the
error "ord() expected a character, but string of length 6 found".

Any idea ?

Thank you

2009/8/4 Vincent Bernat <[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

Reply via email to