This is a discussion on RE: Doubt related to SNMPGET within the SNMP Users forums, part of the Networking and Network Related category; --===============1857179773== Content-Type: multipart/alternative; boundary="0-880367757-1174112212=:11117" Content-Transfer-Encoding: 8bit --0-880367757-1174112212=:11117 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1857179773==
Content-Type: multipart/alternative; boundary="0-880367757-1174112212=:11117" Content-Transfer-Encoding: 8bit --0-880367757-1174112212=:11117 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Somenath For item 1: You can return GEN_ERROR or other specific error(one example: Memory failed error etc) For item 2: Please Refer RowStatus TC in SNMPv2-SMI. It talks about what agent need to return when the row already exists: For item 3, 4, 5: GEN_ERROR seems to be the correct for SNMP SET requests thx Subra somenath.pal@wipro.com wrote: I need to handle the following error scenarios 1) Database management system unable to create row in table 2) While creating a row in the table which already exist in Data base 3) Unknown error return by subsystem 4) File operation error 5) Inter process communication failed Regards, Somenath -----Original Message----- From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On Behalf Of Dave Shield Sent: Friday, March 16, 2007 3:24 PM To: Somenath Pal (WT01 - Broadband Networks) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Doubt related to SNMPGET On 16/03/07, somenath.pal@wipro.com wrote: > 1) Is there any error condition such that SNMP agent will not send any > response PDU to manager? Yes. If you specify an unknown community (with SNMPv1 or SNMPv2c), then the agent simply drops the request altogether. It does not send back any form of error response. > In case of error condition which is not known to SNMP agent (which is > return by the subsystem responsible for implementing MIB attribute) > what SNMP agent should respond to manager? Can you be a bit more specific about exactly what situation you envisage? There is an error 'genError' which might be suitable, but we'd need to know a bit more detail. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?p...rge&CID=DEVDEV _______________________________________________ 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/...net-snmp-users --------------------------------- Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. --0-880367757-1174112212=:11117 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit <div>Somenath</div> <div>For item 1:</div> <div> You can return GEN_ERROR or other specific error(one example: Memory failed error etc)</div> <div> </div> <div>For item 2: </div> <div> </div> <div>Please Refer RowStatus TC in SNMPv2-SMI.</div> <div>It talks about what agent need to return when the row already exists:</div> <div> </div> <div>For item 3, 4, 5: GEN_ERROR seems to be the correct for SNMP SET requests</div> <div> </div> <div>thx</div> <div>Subra</div> <div><BR><BR><B><I>somenath.pal@wipro.com</I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I need to handle the following error scenarios<BR><BR>1) Database management system unable to create row in table<BR>2) While creating a row in the table which already exist in Data base <BR>3) Unknown error return by subsystem <BR>4) File operation error <BR>5) Inter process communication failed <BR><BR><BR>Regards,<BR>Somenath <BR><BR><BR>-----Original Message-----<BR>From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On<BR>Behalf Of Dave Shield<BR>Sent: Friday, March 16, 2007 3:24 PM<BR>To: Somenath Pal (WT01 - Broadband Networks)<BR>Cc: net-snmp-users@lists.sourceforge.net<BR>Subject: Re: Doubt related to SNMPGET<BR><BR>On 16/03/07, somenath.pal@wipro.com <SOMENATH.PAL@WIPRO.COM>wrote:<BR>> 1) Is there any error condition such that SNMP agent will not send any<BR>> response PDU to manager?<BR><BR>Yes.<BR>If you specify an unknown community (with SNMPv1 or SNMPv2c),<BR>then the agent simply drops the request altogether. It does not<BR>send back any form of error response.<BR><BR><BR>> In case of error condition which is not known to SNMP agent (which is<BR>> return by the subsystem responsible for implementing MIB attribute)<BR>> what SNMP agent should respond to manager?<BR><BR>Can you be a bit more specific about exactly what situation you<BR>envisage? There is an error 'genError' which might be suitable,<BR>but we'd need to know a bit more detail.<BR><BR><BR><BR><BR>Dave<BR><BR>-------------------------------------------------------------------------<BR>Take Surveys. Earn Cash. Influence the Future of IT<BR>Join SourceForge.net's Techsay panel and you'll get the chance to share your<BR>opinions on IT & business topics through brief surveys-and earn cash<BR>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CI D=DEVDEV<BR>______________________________________ _________<BR>Net-snmp-users mailing list<BR>Net-snmp-users@lists.sourceforge.net<BR>Please see the following page to unsubscribe or change other options:<BR>https://lists.sourceforge.net/lists/listinfo/net-snmp-users<BR></BLOCKQUOTE><BR><p> <hr size=1>Don't pick lemons.<br> See all the <a href="http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE0OGRsc3F2BF9TAzk3MTA3MDc 2BHNlYwNtYWlsdGFncwRzbGsDbmV3Y2Fycw--">new 2007 cars</a> at <a href="http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE0OGRsc3F2BF9TAzk3MTA3MDc 2BHNlYwNtYWlsdGFncwRzbGsDbmV3Y2Fycw--">Yahoo! Autos.</a> --0-880367757-1174112212=:11117-- --===============1857179773== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?p...rge&CID=DEVDEV --===============1857179773== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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/...net-snmp-users --===============1857179773==-- |