agent can¿t read the MIBs

Torsten Zoehl <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization http://freemail.web.de/
Message-ID <[email protected]>
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 message:

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=
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=
ed
# arguments: (1|yes|true|0|no|false)

showmiberrors 1

# mibwarninglevel: Should warnings about mibs be displayed when the mibs a=
re loaded
# arguments: 1|2

mibwarninglevel 1



and the snmpd.conf:

##########################################################################=
#
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
##########################################################################=
#
# 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=5Fstring

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=5Fstring

syscontact sysadmin



##########################################################################=
#
# 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=5Foid]

rwuser test noauth=20

# rouser: a SNMPv3 read-only user
# arguments: user [noauth|auth|priv] [restriction=5Foid]

rouser testro noaut=20


if anyone could help...

cheers!
torsten



Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.