Re: Set on hex string using python library
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[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