Re: Set on hex string using python library
François Dumont <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I tried an snmpset without the -f option, which is not defined in the available option. snmpset -Le -d -c private -v 2c 10.0.0.1 1.3.6.1.4.1.12394.1.2.7.2.1.3.0 x > 'ba be 00 00 fa ce' (sorry, wrote '\xba\xbe\x00\x00\xfa\xce' in last > message, but it's with spaces instead of \x) > Here is the result : Sending 56 bytes to UDP: [10.0.0.1]:161 > 0000: 30 36 02 01 01 04 07 70 72 69 76 61 74 65 A3 28 > 06.....private.( > 0016: 02 04 38 4B CF C3 02 01 00 02 01 00 30 1A 30 18 > ..8K........0.0. > 0032: 06 0E 2B 06 01 04 01 E0 6A 01 02 07 02 01 03 00 > ..+.....j....... > 0048: 04 06 BA BE 00 00 FA CE ........ > > > Received 56 bytes from UDP: [10.0.0.1]:161 > 0000: 30 36 02 01 01 04 07 70 72 69 76 61 74 65 A2 28 > 06.....private.( > 0016: 02 04 38 4B CF C3 02 01 00 02 01 00 30 1A 30 18 > ..8K........0.0. > 0032: 06 0E 2B 06 01 04 01 E0 6A 01 02 07 02 01 03 00 > ..+.....j....... > 0048: 04 06 BA BE 00 00 FA CE ........ > > RAINBOW-MIB::rbAuConfiguredBaseStationId.0 = Hex-STRING: BA BE 00 00 FA CE > 2009/8/4 Dave Shield <[email protected]> > 2009/8/4 François Dumont <[email protected]>: > > Yes, it works with an snmpset (in command line) on that OID > > > >> snmpset -c private -v 2c 10.0.0.1 1.3.6.1.4.1.12394.1.2.7.2.1.3.0 x > >> '\xba\xbe\x00\x00\xfa\xce' > > > Try restarting the agent using the options > > -f -Le -d > > (plus anything else that you normally use), and run the two commands > again. What do the two packet dumps look like? > > 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