RE: Still some more problems using python module

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC07CDC3A9@mailserver.metatv-ds.metatv.com>
> From: Jack G Atkinson Jr [mailto:[email protected]] 
> Sent: Tuesday, January 22, 2008 3:48 PM

> I have done a little more investigating, and it seems to 
> consistently fail when I go from a one digit index to two 
> digits.  I did this repeatedly by deleting all the rows after 
> a failure.  I'm trying to look at the string creation part 
> and the hand off to the netsnmp command at the lower level, 
> and see if something is going wrong.  For the life of me, I 
> can't see why that extra digit is making a difference.

	I don't have my python refs handy, but I do recall the automatic number conversions giving me some grief.  I note that you are taking the returned get value, which appears, from the code you sent, to return a string, and are passing it back to set, declared as an integer.  You may want to add 0 to it before doing it, just to ensure that it can be accepted as an integer.


	HTH,

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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.