net-snmp doesn't send an error notification to an snmp
client (in particular snmpset command) when it receives an AgentX error response with
errindex set to 0.
Executing a snmpset on a MIB attribute my subagent, developed with eReasoning Agent Builder, send an agent X error response with a error index set to 0 on a failure of a preSetValue method that is invoked before any effective set on a attribute.
This failure is not notified to the snmpset command that reports that all is OK.


I've posted a patch in the sourceforge patch session to solve this problem.

Following is the snmp-net log of a failed request:

2004-07-01 14:50:17
Received 55 bytes from 127.0.0.1
2004-07-01 14:50:17 0000: 30 35 02 01 01 04 08 63 6F 6D 75 6E 69 74 61 A3 05.....comunita�
2004-07-01 14:50:17 0016: 26 02 04 51 2A A7 9A 02 01 00 02 01 00 30 18 30 &..Q*�.......0.0
2004-07-01 14:50:17 0032: 16 06 11 2B 06 01 04 01 F3 0A 02 02 03 02 01 02 ...+....�.......
2004-07-01 14:50:17 0048: 01 01 02 01 02 01 02 .......
2004-07-01 14:50:17
2004-07-01 14:50:17 agentx/master: agentx master handler starting, mode = 0x00
2004-07-01 14:50:17 agentx/master: request for variable (TIL-SIP-PM-MIB::tilSipOtherCDAdminStatus.1)
2004-07-01 14:50:17 agentx: sending pdu (req=0x5,trans=0x4,sess=0xd)
2004-07-01 14:50:17 agentx_build: packet built okay
2004-07-01 14:50:17
Sending 80 bytes to 127.0.0.1
2004-07-01 14:50:17 0000: 01 08 10 00 00 00 00 0D 00 00 00 04 00 00 00 05 ................
2004-07-01 14:50:17 0016: 00 00 00 3C 00 02 00 00 0C 04 00 00 00 00 00 01 ...<............
2004-07-01 14:50:17 0032: 00 00 39 8A 00 00 00 02 00 00 00 02 00 00 00 03 ..9.............
2004-07-01 14:50:17 0048: 00 00 00 02 00 00 00 01 00 00 00 02 00 00 00 01 ................
2004-07-01 14:50:17 0064: 00 00 00 01 00 00 00 02 00 00 00 01 00 00 00 02 ................
2004-07-01 14:50:17
2004-07-01 14:50:17
Received 28 bytes from 127.0.0.1
2004-07-01 14:50:17 0000: 01 12 10 00 00 00 00 0D 00 00 00 04 00 00 00 05 ................
2004-07-01 14:50:17 0016: 00 00 00 08 00 00 00 00 00 05 00 00 ............
2004-07-01 14:50:17
2004-07-01 14:50:17 agentx/master: got response errstat=5, (req=0x5,trans=0x4,sess=0xd)
2004-07-01 14:50:17 agentx/master: agentx_got_response() error branch
2004-07-01 14:50:17 agentx/master: errindex=0
2004-07-01 14:50:17 agentx/master: end error branch
2004-07-01 14:50:17 agentx/master: agentx master handler starting, mode = 0x01
2004-07-01 14:50:17 agentx/master: agentx master handler starting, mode = 0x02
2004-07-01 14:50:17 agentx/master: request for variable (TIL-SIP-PM-MIB::tilSipOtherCDAdminStatus.1)
2004-07-01 14:50:17 agentx: sending pdu (req=0x6,trans=0x4,sess=0xd)
2004-07-01 14:50:17 agentx_build: packet built okay
2004-07-01 14:50:17
Sending 20 bytes to 127.0.0.1
2004-07-01 14:50:17 0000: 01 09 10 00 00 00 00 0D 00 00 00 04 00 00 00 06 ................
2004-07-01 14:50:17 0016: 00 00 00 00 ....
2004-07-01 14:50:17
2004-07-01 14:50:17
Received 28 bytes from 127.0.0.1
2004-07-01 14:50:17 0000: 01 12 10 00 00 00 00 0D 00 00 00 04 00 00 00 06 ................
2004-07-01 14:50:17 0016: 00 00 00 08 00 00 00 00 00 00 00 00 ............
2004-07-01 14:50:17
2004-07-01 14:50:17 agentx/master: got response errstat=0, (req=0x6,trans=0x4,sess=0xd)
2004-07-01 14:50:17 agentx/master: handle_agentx_response() finishing...
2004-07-01 14:50:17 agentx/master: agentx master handler starting, mode = 0x03
2004-07-01 14:50:17 agentx/master: request for variable (TIL-SIP-PM-MIB::tilSipOtherCDAdminStatus.1)
2004-07-01 14:50:17 agentx: sending pdu (req=0x7,trans=0x4,sess=0xd)
2004-07-01 14:50:17 agentx_build: packet built okay
2004-07-01 14:50:17
Sending 20 bytes to 127.0.0.1
2004-07-01 14:50:17 0000: 01 0B 10 00 00 00 00 0D 00 00 00 04 00 00 00 07 ................
2004-07-01 14:50:17 0016: 00 00 00 00 ....
2004-07-01 14:50:17
2004-07-01 14:50:17
Sending 55 bytes to 127.0.0.1
2004-07-01 14:50:17 0000: 30 35 02 01 01 04 08 63 6F 6D 75 6E 69 74 61 A2 05.....comunita�
2004-07-01 14:50:17 0016: 26 02 04 51 2A A7 9A 02 01 00 02 01 00 30 18 30 &..Q*�.......0.0
2004-07-01 14:50:17 0032: 16 06 11 2B 06 01 04 01 F3 0A 02 02 03 02 01 02 ...+....�.......
2004-07-01 14:50:17 0048: 01 01 02 01 02 01 02 .......
2004-07-01 14:50:17
2004-07-01 14:50:17
Received 28 bytes from 127.0.0.1
2004-07-01 14:50:17 0000: 01 12 10 00 00 00 00 0D 00 00 00 04 00 00 00 07 ................
2004-07-01 14:50:17 0016: 00 00 00 08 00 00 00 00 00 00 00 00 ............
2004-07-01 14:50:17





Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A.

====================================================================
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please send an e_mail to [EMAIL PROTECTED] Thank you
====================================================================



------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ 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

Reply via email to