I fixed the python module "client.py" to accept the concatentated label
and index, because from the source code you can tell this was allowable.
It was a regular expression error that only allowed one digit instead of
multiple digits.
I'll try and submit a patch.
Jack G Atkinson Jr wrote:
Got it figured out! Woohoo!
The problem was concatenating the label with the index!
The label and the index need to be passed separately to the Varbind()
function!
Example:
Varbind(tag = 'adGenEasyBridgeRowStatus', iid='20', val = '5', type =
'INTEGER')
or just:
Varbind('adGenEasyBridgeR
> 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'
Okay,
I'm not looping, I'm calling the script over and over again from the
python shell.
2nd, I can create up to thousands of rows (Is integer 16 bit or 32
bit?) without activating them if I want (theoretically) until I overlap
the next index or run out of memory. I know for sure that I've
> From: Jack G Atkinson Jr [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 22, 2008 12:47 PM
> Okay, the python works to degree, but after a while it quits.
> Here's a sample of running the same test script (source code
> after transcipt) over and over. It worked 4 times, then no
> longer
Okay, the python works to degree, but after a while it quits. Here's a
sample of running the same test script (source code after transcipt)
over and over. It worked 4 times, then no longer functions. I can
still run it just fine from the cygwin prompt using normal netsnmp commands.
In [1]:
I started to make a transcipt, but I found a python error. Problem
fixed, it appears to be working:-)
Mike Ayers wrote:
From: Jack G Atkinson Jr [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 02, 2008 10:03 PM
Sorry, I forgot to put in the row number in my email. It it's the
> From: Jack G Atkinson Jr [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 02, 2008 10:03 PM
> Sorry, I forgot to put in the row number in my email. It it's there.
>
> Also, It has no trouble finding the adGenEasyBridgeIndexNext
> object ID, but it can't find the adGenEasyBridgeRowStatus
Mike Ayers wrote:
>> From: Jack G Atkinson Jr [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, January 02, 2008 3:36 PM
>>
>
>
>> I tried that. I got this:
>> error: set: unknown object ID (ADTRAN-GENERIC-BRIDGE-MIB)
>>
>> This is the what I told it to set:
>> ADTRAN-GENERIC-BRIDGE-MIB::ad
> From: Jack G Atkinson Jr [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 02, 2008 3:36 PM
> I tried that. I got this:
> error: set: unknown object ID (ADTRAN-GENERIC-BRIDGE-MIB)
>
> This is the what I told it to set:
> ADTRAN-GENERIC-BRIDGE-MIB::adGenEasyBridgeRowStatus
First,
Mike Ayers wrote:
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of Jack G Atkinson Jr
>> Sent: Wednesday, January 02, 2008 3:08 PM
>>
>
>
>> I can get the next "adGenEasyBridgeIndexNext.0" just fine, but I can't
>> use any other object ID. I verifed that these all
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Jack G Atkinson Jr
> Sent: Wednesday, January 02, 2008 3:08 PM
> I can get the next "adGenEasyBridgeIndexNext.0" just fine, but I can't
> use any other object ID. I verifed that these all work from
> the normal
> command li
Hello again,
I can now successfully get and set from the command line under cygwin.
However, I'm still having trouble in the python module. Here's an example:
I can get the next "adGenEasyBridgeIndexNext.0" just fine, but I can't
use any other object ID. I verifed that these all work from the
13 matches
Mail list logo