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