Hi, all
  Recently I have wrote a subagent and it just work well for me. I used  
net-snmp 5.7.3.
  But, I find that if the subagent occur some error while dealing with  
snmpset, I can only return SNMP_ERR_XXX which is predefined by  net-snmp. 
Looking up the source code of net-snmp, I find SNMP_ERR_XXX  is only from 0 to 
18. Other return value will be turned into "Unknown  Error".
  So I used error code bigger than 19 for my personal use.  For example:  ,---- 
 |   snmpet localhost .a.b.c.x.x.x.A  i 10  `----  Maybe I will return 20 to 
told the client that "You can not do A  before you finishing B", other than 
just return 'commitFailed' error  code(14).
  But, After capture the snmp packet, I find the length of snmp  error-status 
is only one byte? Does this mean I can only return up to  255 error codes, 
minusing the default 18 error code, there are only  237 remains? My question 
is: is there any method to return more than  237 error code for personal use?
  I find the return value of variable-bindings is not very useful, can I  use 
the return value of variable-bindings as my personal error code?
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to