-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
writecommit failed #77
Comments
Depending on which SNMP error you are trying to convey to the client, you should only raise exceptions based on the Also note that it is generally cheaper to fail in the Here is a baseline implementation for your reference. |
LK"I Thanks for the quick replay. main function to start the agent: and the writeTest: (raising the ValueConstraintError from SmiError) but it still just fails and stops the snmp engine: Press any key to continue . . . |
Hi All,
I'm having a SET Sequence with SNMP using the writeCommit method:
def writeCommit(self, name, val, *args):
print " Setting var..."
obj = setValue(fullPath,val)
if (obj == 'err') :
raise 'some error'
I'm trying to fail the write sequence in case the set operation didn't passed OK.
but, when i'm raising an error the entire agent is stopping.
how do i do that? how do i inform the SNMP client the set operation failed without stopping the agent?
The text was updated successfully, but these errors were encountered: