This is a discussion on agent can¿t read the MIBs within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --=-------------11273798481226524220 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--=-------------11273798481226524220 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable hi, i installed the agent and tried to run it with the snmp.conf and the snmpd= ..conf. i created both with snmpconf tool. but when i try to get an easy oid like sysLocation i got an funny error me= ssage: root@Dargun etc]# snmpget localhost .1.3.6.1.2.1.1.6.0 MODULE-IDENTITY MACRO (lines 55..79 parsed and ignored). OBJECT-IDENTITY MACRO (lines 81..103 parsed and ignored). OBJECT-TYPE MACRO (lines 212..298 parsed and ignored). NOTIFICATION-TYPE MACRO (lines 302..334 parsed and ignored). TEXTUAL-CONVENTION MACRO (lines 8..48 parsed and ignored). OBJECT-TYPE MACRO (lines 25..39 parsed and ignored). snmpget: Unknown user name the MIBs are in the folder: /usr/local/share/snmp/mibs where they suppose = to be the snmp.conf is: defaultport 161 # defversion: The default snmp version number to use. # override: with -v on the command line. # arguments: 1|2c|3 defversion 3 # defsecurityname: The default snmpv3 security name to use when using snmp= =3D v3 # override: with -u on the command line. # arguments: securityname defsecurityname test # defcontext: The default snmpv3 context name to use # override: with -n on the command line. # arguments: contextname defcontext test # defsecuritylevel: The default snmpv3 security level to use # override: with -l on the command line. # arguments: noAuthNoPriv|authNoPriv|authPriv defsecuritylevel noAuthNoPriv # defauthtype: The default snmpv3 authentication type name to use # override: with -a on the command line. # arguments: authtype defauthtype MD5 # defauthpassphrase: The default snmpv3 authentication pass phrase to use # Note: It must be at least 8 characters long. # override: with -A on the command line. # arguments: passphrase defauthpassphrase "life is a bitch" # defprivtype: The default snmpv3 privacy (encryption) type name to use # override: with -x on the command line. # arguments: privtype defprivtype DES # defprivpassphrase: The default snmpv3 privacy pass phrase to use # Note: It must be at least 8 characters long. # override: with -X on the command line. # arguments: passphrase defprivpassphrase "life is a bitch" mibdirs /usr/local/share/snmp/mibs # mibs: Specifies a list of mibs to be searched for and loaded. # Adding a '+' sign to the front of the argument appends the new # mib name to the list of mibs already being searched for. # arguments: [+]mibname[:mibname...] mibs SNMPv2-MIB mibs IANAifType-MIB mibs SNMP-USER-BASED-SM-MIB # showmiberrors: Should errors in mibs be displayed when the mibs are load= =3D ed # arguments: (1|yes|true|0|no|false) showmiberrors 1 # mibwarninglevel: Should warnings about mibs be displayed when the mibs a= =3D re loaded # arguments: 1|2 mibwarninglevel 1 and the snmpd.conf: ################################################## ########################= =3D # # # snmpd.conf # # - created by the snmpconf configuration program # ################################################## ########################= =3D # # SECTION: System Information Setup # # This section defines some of the information reported in # the "system" mib group in the mibII tree. # syslocation: The [typically physical] location of the system. # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysLocation.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: location=3D5Fstring syslocation "micon HRO" # syscontact: The contact information for the administrator # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysContact.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: contact=3D5Fstring syscontact sysadmin ################################################## ########################= =3D # # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent. # rwuser: a SNMPv3 read-write user # arguments: user [noauth|auth|priv] [restriction=3D5Foid] rwuser test noauth=3D20 # rouser: a SNMPv3 read-only user # arguments: user [noauth|auth|priv] [restriction=3D5Foid] rouser testro noaut=3D20 if anyone could help... cheers! torsten Mit der Gruppen-SMS von WEB.DE FreeMail k=F6nnen Sie eine SMS an alle=20 Freunde gleichzeitig schicken: http://freemail.web.de/features/=3Fmc=3D021179=20 =20 =20 --=-------------11273798481226524220 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 7bit <html><body bgcolor='#ffffff' style='font-size:9pt; font-family:Verdana; font-family: Verdana' >hi,<BR>i installed the agent and tried to run it with the snmp.conf and the snmpd.conf. i created both with snmpconf tool.<BR>but when i try to get an easy oid like sysLocation i got an funny error message:<BR><BR>root@Dargun etc]# snmpget localhost .1.3.6.1.2.1.1.6.0<BR>MODULE-IDENTITY MACRO (lines 55..79 parsed and ignored).<BR>OBJECT-IDENTITY MACRO (lines 81..103 parsed and ignored).<BR>OBJECT-TYPE MACRO (lines 212..298 parsed and ignored).<BR>NOTIFICATION-TYPE MACRO (lines 302..334 parsed and ignored).<BR>TEXTUAL-CONVENTION MACRO (lines 8..48 parsed and ignored).<BR>OBJECT-TYPE MACRO (lines 25..39 parsed and ignored).<BR>snmpget: Unknown user name<BR><BR>the MIBs are in the folder: /usr/local/share/snmp/mibs where they suppose to be<BR><BR>the snmp.conf is:<BR><BR><BR>defaultport 161<BR><BR># defversion: The default snmp version number to use.<BR># override: with -v on the com! mand line.<BR># arguments: 1|2c|3<BR><BR>defversion 3<BR><BR># defsecurityname: The default snmpv3 security name to use when using snmp=<BR>v3<BR># override: with -u on the command line.<BR># arguments: securityname<BR><BR>defsecurityname test<BR><BR># defcontext: The default snmpv3 context name to use<BR># override: with -n on the command line.<BR># arguments: contextname<BR><BR>defcontext test<BR><BR># defsecuritylevel: The default snmpv3 security level to use<BR># override: with -l on the command line.<BR># arguments: noAuthNoPriv|authNoPriv|authPriv<BR><BR>defsecurit ylevel noAuthNoPriv<BR><BR># defauthtype: The default snmpv3 authentication type name to use<BR># override: with -a on the command line.<BR># arguments: authtype<BR><BR>defauthtype MD5<BR><BR># defauthpassphrase: The default snmpv3 authentication pass phrase to use<BR># Note: It must be at least 8 characters long.<BR># override: with -A on the command line.<BR># arguments: passphrase<BR><BR>defauthpassphrase! "life is a bitch"<BR><BR># defprivtype: The default snmpv3 privacy (e ncryption) type name to use<BR># override: with -x on the command line.<BR># arguments: privtype<BR><BR>defprivtype DES<BR><BR># defprivpassphrase: The default snmpv3 privacy pass phrase to use<BR># Note: It must be at least 8 characters long.<BR># override: with -X on the command line.<BR># arguments: passphrase<BR><BR>defprivpassphrase "life is a bitch"<BR><BR><BR>mibdirs /usr/local/share/snmp/mibs<BR><BR># mibs: Specifies a list of mibs to be searched for and loaded.<BR># Adding a '+' sign to the front of the argument appends the new<BR># mib name to the list of mibs already being searched for.<BR># arguments: [+]mibname[:mibname...]<BR><BR>mibs SNMPv2-MIB<BR>mibs IANAifType-MIB<BR>mibs SNMP-USER-BASED-SM-MIB<BR><BR># showmiberrors: Should errors in mibs be displayed when the mibs are load=<BR>ed<BR># arguments: (1|yes|true|0|no|false)<BR><BR>showmiberrors 1<BR><BR># mibwarninglevel: Should warnings about mibs be displayed when the mibs a=<BR>re loaded<BR># arguments: 1|2! <BR><BR>mibwarninglevel 1<BR><BR><BR><BR>and the snmpd.conf:<BR><BR>############################### ###########################################=<BR>#< BR>#<BR># snmpd.conf<BR>#<BR># - created by the snmpconf configuration program<BR>#<BR>################################## ########################################=<BR>#<BR> # SECTION: System Information Setup<BR>#<BR># This section defines some of the information reported in<BR># the "system" mib group in the mibII tree.<BR><BR># syslocation: The [typically physical] location of the system.<BR># Note that setting this value here means that when trying to<BR># perform an snmp SET operation to the sysLocation.0 variable will make<BR># the agent return the "notWritable" error code. IE, including<BR># this token in the snmpd.conf file will disable write access to<BR># the variable.<BR># arguments: location=5Fstring<BR><BR>syslocation "micon HRO"<BR><BR># syscontact: The contact information for the administrator<BR># Note that setting! this value here means that when trying to<BR># perform an snmp SET op eration to the sysContact.0 variable will make<BR># the agent return the "notWritable" error code. IE, including<BR># this token in the snmpd.conf file will disable write access to<BR># the variable.<BR># arguments: contact=5Fstring<BR><BR>syscontact sysadmin<BR><BR><BR><BR>########################## ################################################=< BR>#<BR># SECTION: Access Control Setup<BR>#<BR># This section defines who is allowed to talk to your running<BR># snmp agent.<BR><BR># rwuser: a SNMPv3 read-write user<BR># arguments: user [noauth|auth|priv] [restriction=5Foid]<BR><BR>rwuser test noauth=20<BR><BR># rouser: a SNMPv3 read-only user<BR># arguments: user [noauth|auth|priv] [restriction=5Foid]<BR><BR>rouser testro noaut=20<BR><BR><BR>if anyone could help...<BR><BR>cheers!<BR>torsten<BR><br><br><tabl e cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#000000"><img src="https://img.web.de/p.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td style=! "font-family:verdana; font-size:12px; line-height:17px;">Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle <br>Freunde gleichzeitig schicken: <A HREF="http://freemail.web.de/features/?mc=021179"><B>http://freemail.web.de/features/?mc=021179</B></A> <br> <br>&nbs p; </td></tr></table></body></html> --=-------------11273798481226524220-- ------------------------------------------------------- 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 |