Re: Set on hex string using python library

François Dumont <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I tried '\xba\xbe\x00\x00\xfa\xce' but it didn't work. I tried everything :
with uppercase/lowercase characters, with '\xba\xbe\x00\x00\xfa\xce', with
'\xba:\xbe:\x00:\x00:\xfa:\xce', with 'ba be 00 00 fa ce' with '\xba \xbe
\x00 \x00 \xfa \xce', nothing works.

Thank you

2009/7/31 Vincent Bernat <[email protected]>

> OoO Pendant  le temps de midi  du vendredi 31 juillet  2009, vers 12:49,
> François Dumont <[email protected]> disait :
>
> >     import netsnmp
>
> >     oid = netsnmp.Varbind('rbAuConfiguredBaseStationId', '1', 'ba be 00
> 00 fa
> >     ce')
> >     rbAuConfiguredBaseStationId = netsnmp.snmpset(oid, DestHost =
> "10.0.0.1",
> >     Community = "private", Version = 2)
> >     print "rbAuConfiguredBaseStationId : ", rbAuConfiguredBaseStationId
>
> Try '\xba\xbe\x00\x00\xfa\xce'.
> --
> Make sure comments and code agree.
>            - The Elements of Programming Style (Kernighan & Plauger)
>

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.