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_01C5BCDD.E6705826 Content-Type: text/plain; charset="US-ASCII&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
------_=_NextPart_001_01C5BCDD.E6705826 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 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_01C5BCDD.E6705826 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-compose; font-family:SimSun; color:windowtext; font-weight:normal; font-style:normal; text-decoration:none none;} /* Page Definitions */ @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> </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=3D2 face=3D宋体><span = lang=3DEN-US style=3D'font-size:10.0pt;font-family:SimSun'><o:p> </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'>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 &nbs p; &nb= sp; (0) /* XXX 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 = &n bsp; &= 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; = (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 &nb sp; &n= bsp; (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 &nb sp; &n= bsp; (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 = &n bsp; &= 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 &nb sp; = (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 &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 = (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 &nbs p; = (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 = (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 = (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 (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   ; = (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 = (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 (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 = (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 = (18)<o:p></o:p></span></font></p> </div> </body> </html> ------_=_NextPart_001_01C5BCDD.E6705826-- ------------------------------------------------------- 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 |