the accurate description of the snmp error

This is a discussion on the accurate description of the snmp error within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. ------_=_NextPart_001_01C5BCDF.05B952CC Content-Type: text/plain; charset="US-ASCII&...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-19-2005
Ying Wang
 
Posts: n/a
Default the accurate description of the snmp error

This is a multi-part message in MIME format.

------_=_NextPart_001_01C5BCDF.05B952CC
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Where can I find the accurate description of the snmp error?=20

=20

Which error is right when a invalid user to access mib, such as a SNMPv1
read-only user does a configuration, or a unknown user read something?

=20

Thanks very much for your help!

=20

=20

=20

Errors definitions are extracted in the file snmp.h for your reference:

/* in SNMPv1, SNMPsec, SNMPv2p, SNMPv2c, SNMPv2u, SNMPv2*, and SNMPv3
PDUs */

#define SNMP_ERR_NOERROR (0) /* XXX Used only for
PDUs? */

#define SNMP_ERR_TOOBIG (1)

#define SNMP_ERR_NOSUCHNAME (2)

#define SNMP_ERR_BADVALUE (3)

#define SNMP_ERR_READONLY (4)

#define SNMP_ERR_GENERR (5)

/* in SNMPv2p, SNMPv2c, SNMPv2u, SNMPv2*, and SNMPv3 PDUs */

#define SNMP_ERR_NOACCESS (6)

#define SNMP_ERR_WRONGTYPE (7)

#define SNMP_ERR_WRONGLENGTH (8)

#define SNMP_ERR_WRONGENCODING (9)

#define SNMP_ERR_WRONGVALUE (10)

#define SNMP_ERR_NOCREATION (11)

#define SNMP_ERR_INCONSISTENTVALUE (12)

#define SNMP_ERR_RESOURCEUNAVAILABLE (13)

#define SNMP_ERR_COMMITFAILED (14)

#define SNMP_ERR_UNDOFAILED (15)

#define SNMP_ERR_AUTHORIZATIONERROR (16)

#define SNMP_ERR_NOTWRITABLE (17)

/* in SNMPv2c, SNMPv2u, SNMPv2*, and SNMPv3 PDUs */

#define SNMP_ERR_INCONSISTENTNAME (18)


------_=_NextPart_001_01C5BCDF.05B952CC
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" =
xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:SimSun;
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DZH-CN link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>

<div class=3DSection1 style=3D'layout-grid:15.6pt'>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>Where can I find the =
accurate
description of the snmp error? <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'><o:p>&nbsp;</o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>Which error is right when =
a invalid
user to access mib, such as a SNMPv1 read-only user does a =
configuration, or a
unknown user read something?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:9.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>Thanks very much for your =
help!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:9.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:9.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:9.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>Errors definitions are =
extracted in
the file snmp.h for your reference:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>/* in SNMPv1, SNMPsec, =
SNMPv2p,
SNMPv2c, SNMPv2u, SNMPv2*, and SNMPv3 PDUs =
*/<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_NOERROR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
(0)&nbsp;&nbsp;&nbsp;&nbsp; /* XXX&nbsp; Used only for PDUs? =
*/<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define SNMP_ERR_TOOBIG
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;
(1)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define =
SNMP_ERR_NOSUCHNAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;
(2)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_BADVALUE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;
(3)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_READONLY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;
(4)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define SNMP_ERR_GENERR
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;
(5)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>/* in SNMPv2p, SNMPv2c, =
SNMPv2u,
SNMPv2*, and SNMPv3 PDUs */<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_NOACCESS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp; =
(6)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_WRONGTYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp; =
(7)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_WRONGLENGTH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
(8)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_WRONGENCODING&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; =
(9)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_WRONGVALUE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
(10)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_NOCREATION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
(11)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_INCONSISTENTVALUE&nbsp;&nbsp; (12)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define =
SNMP_ERR_RESOURCEUNAVAILABLE
(13)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_COMMITFAILED&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp; =
(14)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_UNDOFAILED&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
(15)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_AUTHORIZATIONERROR&nbsp; (16)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_NOTWRITABLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
(17)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>/* in SNMPv2c, SNMPv2u, =
SNMPv2*, and
SNMPv3 PDUs */<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>#define
SNMP_ERR_INCONSISTENTNAME&nbsp;&nbsp;&nbsp; =
(18)<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C5BCDF.05B952CC--


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:21 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0