I have found the numeric OID of this object :
1.3.6.1.4.1.12394.1.2.7.2.1.3.0
So I tried this :
oid = netsnmp.Varbind('1.3.6.1.4.1.12394.1.2.7.2.1.3', '0',
> '\xba\xbe\x00\x00\xfa\xce')
> rbAuConfiguredBaseStationId = netsnmp.snmpset(oid, DestHost = "10.0.0.1",
> Community = "private", Version = 2)
> print "rbAuConfiguredBaseStationId : ", rbAuConfiguredBaseStationId
>
And it still doesn't work. The result of the set is 0, the hex string
doesn't change. What can I do ?
2009/8/4 Dave Shield <[email protected]>
> 2009/8/4 François Dumont <[email protected]>:
> > I tried '\xba\xbe\x00\x00\xfa\xce' but it didn't work.
>
> I can confirm that this syntax does indeed send the required value.
> So the problem must lie elsewhere.
>
> One thing I spotted:
>
> >> > oid = netsnmp.Varbind('rbAuConfiguredBaseStationId', '1',.....
>
> The python script is attempting to set the OID
> rbAuConfiguredBaseStationId.1
>
> while your original "snmpset" command
>
> > snmpset -v 2c -c private 10.0.0.1 rbAuConfiguredBaseStationId x 'ba be
> 00 00 fa ce'
>
>
> referenced this object with no instance subidentifier.
> Now that doesn't sound right, so I'm suspicious of the agent
> implementation that you are talking to, but try tweaking the
> OID object in the python code to match the numeric OID of the
> StationId object.
>
> Dave
>
------------------------------------------------------------------------------
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