Set on hex string using python library

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

I'm trying to set an object called rbAuConfiguredBaseStationId which is a
MAC address. So I tried this in a command shell :

mesh@sumac-clusterhead-1:~$ snmpset -v 2c -c private 10.0.0.1
> rbAuConfiguredBaseStationId x 'ba be 00 00 fa ce'
>

which returned this :

RAINBOW-MIB::rbAuConfiguredBaseStationId = Hex-STRING: BA BE 00 00 FA CE
>

So it works in command shell. But after I tried to set it in a python
script, and I don't managed to do so :

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
>

I specify that before this set, the value was not 'ba be 00 00 fa ce'. This
is exactly the same, but in python language, using the net-snmp python
library, and it doesn't work.

Can someone help me ?

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
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.