New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
;pyasn1.type.error.ValueConstraintError: 3747938579 #357
Comments
same question,who can help resolve this ? |
@Jasonjiang27 Were you able to find any answer to the issue ? @etingof could you please look into this ? |
Not sure this helps, but I got the same kind of error message when I was trying to connect to an agent using SVMPv3, and specified a passphrase that was too short (< 8 chars). Maybe one of the parameters that you use has an incorrect format? |
It looks like your integer value is too large. The error message indicates the allowed value range is -2147483648 to 2147483647:
The value being passing in (3747938579) exceeds these limits. This looks to be a value being retrieved by the SNMP query. I haven't deeply analyzed your code to determine exactly where it's occurring, but the value is being constrained to a 32 bit integer.
I'm not sure where or why these data type constraints are being introduced, but hopefully this can will help you get to a resolution. I ran into a similar issue using pynsmp and had a ValueConstraintError on a string that exceeded 32 characters. To solve my problem, I just restricted my string to the first 32 characters. This didn't negatively impact what I was trying to accomplish, so it worked for me. |
Fix some issues in pysnmp etingof/pysnmp#190 etingof/pysnmp#357 etingof/pysnmp#384
Hi,
I was trying to get storage data from the machines in my network using PySNMP using the following script.
This script was executing normally for a few machines but for some I got the following error:
What causes this and what are the work-arounds to this "ValueConstraintError"?
The text was updated successfully, but these errors were encountered: