After clone a new user, I got authorizationError (access denied to that object)

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all, 
I am running the agent by using /usr/local/sbin/snmpd -f -Le
-Dread_config
I have "createUser antenna-agent MD5 "antenna_authkey" DES
antenna_privkey" in the snmpd.conf file.
1.	I run /usr/local/bin/snmpget -u antenna-agent -l authPriv -a MD5
-A antenna_authkey -x DES -X antenna_privkey 192.168.83.8
system.sysDescr.0
		I got response back successfully: SNMPv2-MIB::sysDescr.0
= STRING: QNX cgvmqnxbox621 6.2.1 2003/05/17-02:28:40edt x86pc
2.	Then I clone a new user using: 
		/usr/local/bin/snmpusm -l authPriv -u antenna-agent -a
MD5 -A antenna_authkey -x DES -X antenna_privkey 192.168.83.8 create
test-agent antenna-agent 
		I got: User successfully created.
3.	Then I run /usr/local/bin/snmpget -u test-agent -l authPriv -a
MD5 -A antenna_authkey -x DES -X antenna_privkey 192.168.83.8
system.sysDescr.0
		I got "Error in packet"
		Reason: authorizationError (access denied to that
object)

What did I do wrong?

The following is the read_config info from snmpd

read_config:  config dir: /usr/local/etc/snmp
read_config:  Directory not present: /usr/local/etc/snmp
read_config:  config dir: /usr/local/share/snmp
read_config: Reading configuration /usr/local/share/snmp/snmpd.conf
read_config: /usr/local/share/snmp/snmpd.conf:24 examining: syslocation
datron
read_config: /usr/local/share/snmp/snmpd.conf:34 examining: syscontact
chi
read_config: /usr/local/share/snmp/snmpd.conf:48 examining: rwuser
antenna-agent authpriv 
read_config: /usr/local/share/snmp/snmpd.conf:53 examining: rwcommunity
datron  
read_config: /usr/local/share/snmp/snmpd.conf:82 examining: createUser
antenna-agent MD5 "antenna_authkey" DES antenna_privkey
read_config: /usr/local/share/snmp/snmpd.local.conf: No such file or
directory
read_config:  config dir: /usr/local/lib/snmp
read_config: /usr/local/lib/snmp/snmpd.conf: No such file or directory
read_config: /usr/local/lib/snmp/snmpd.local.conf: No such file or
directory
read_config:  config dir: /root/.snmp
read_config:  Directory not present: /root/.snmp
read_config:  config path used for snmpd:/var/net-snmp (persistent
path:/var/net-snmp)
read_config:  config dir: /var/net-snmp
read_config: Reading configuration /var/net-snmp/snmpd.conf
read_config: /var/net-snmp/snmpd.conf:32 examining: usmUser 1 3
0x80001f8880c20ae03b7cbe0a4b 0x616e74656e6e612d6167656e7400
0x616e74656e6e612d6167656e7400 NULL .1.3.6.1.6.3.10.1.1.2
0x26ff36e9ad25ada550666c75e965b98a .1.3.6.1.6.3.10.1.2.2
0x22be0d5b3030dda6cac66716d7a884e9 ""
read_config: /var/net-snmp/snmpd.conf:33 examining: engineBoots 1
read_config: /var/net-snmp/snmpd.conf:34 examining: oldEngineID
0x80001f8880c20ae03b7cbe0a4b
read_config: Found a parser.  Calling it: oldEngineID /
0x80001f8880c20ae03b7cbe0a4b
read_config: /var/net-snmp/snmpd.local.conf: No such file or directory
read_config:  config path used for
snmp:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root
/.snmp (persistent path:/var/net-snmp)
read_config:  config dir: /usr/local/etc/snmp
read_config:  Directory not present: /usr/local/etc/snmp
read_config:  config dir: /usr/local/share/snmp
read_config: /usr/local/share/snmp/snmp.conf: No such file or directory
read_config: /usr/local/share/snmp/snmp.local.conf: No such file or
directory
read_config:  config dir: /usr/local/lib/snmp
read_config: /usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: /usr/local/lib/snmp/snmp.local.conf: No such file or
directory
read_config:  config dir: /root/.snmp
read_config:  Directory not present: /root/.snmp
read_config:  config path used for snmp:/var/net-snmp (persistent
path:/var/net-snmp)
read_config:  config dir: /var/net-snmp
read_config: /var/net-snmp/snmp.conf: No such file or directory
read_config: /var/net-snmp/snmp.local.conf: No such file or directory
read_config: reading normal configuration tokens
read_config:  config path used for
snmpd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/roo
t/.snmp (persistent path:/var/net-snmp)
read_config:  config dir: /usr/local/etc/snmp
read_config:  Directory not present: /usr/local/etc/snmp
read_config:  config dir: /usr/local/share/snmp
read_config: Reading configuration /usr/local/share/snmp/snmpd.conf
read_config: /usr/local/share/snmp/snmpd.conf:24 examining: syslocation
datron
read_config: Found a parser.  Calling it: syslocation / datron
read_config: /usr/local/share/snmp/snmpd.conf:34 examining: syscontact
chi
read_config: Found a parser.  Calling it: syscontact / chi
read_config: /usr/local/share/snmp/snmpd.conf:48 examining: rwuser
antenna-agent authpriv 
read_config: Found a parser.  Calling it: rwuser / antenna-agent
authpriv 
read_config: /usr/local/share/snmp/snmpd.conf:53 examining: rwcommunity
datron  
read_config: Found a parser.  Calling it: rwcommunity / datron  
read_config: /usr/local/share/snmp/snmpd.conf:82 examining: createUser
antenna-agent MD5 "antenna_authkey" DES antenna_privkey
read_config: Found a parser.  Calling it: createUser / antenna-agent MD5
"antenna_authkey" DES antenna_privkey
read_config: /usr/local/share/snmp/snmpd.local.conf: No such file or
directory
read_config:  config dir: /usr/local/lib/snmp
read_config: /usr/local/lib/snmp/snmpd.conf: No such file or directory
read_config: /usr/local/lib/snmp/snmpd.local.conf: No such file or
directory
read_config:  config dir: /root/.snmp
read_config:  Directory not present: /root/.snmp
read_config:  config path used for snmpd:/var/net-snmp (persistent
path:/var/net-snmp)
read_config:  config dir: /var/net-snmp
read_config: Reading configuration /var/net-snmp/snmpd.conf
read_config: /var/net-snmp/snmpd.conf:32 examining: usmUser 1 3
0x80001f8880c20ae03b7cbe0a4b 0x616e74656e6e612d6167656e7400
0x616e74656e6e612d6167656e7400 NULL .1.3.6.1.6.3.10.1.1.2
0x26ff36e9ad25ada550666c75e965b98a .1.3.6.1.6.3.10.1.2.2
0x22be0d5b3030dda6cac66716d7a884e9 ""
read_config: Found a parser.  Calling it: usmUser / 1 3
0x80001f8880c20ae03b7cbe0a4b 0x616e74656e6e612d6167656e7400
0x616e74656e6e612d6167656e7400 NULL .1.3.6.1.6.3.10.1.1.2
0x26ff36e9ad25ada550666c75e965b98a .1.3.6.1.6.3.10.1.2.2
0x22be0d5b3030dda6cac66716d7a884e9 ""
read_config: /var/net-snmp/snmpd.conf:33 examining: engineBoots 1
read_config: Found a parser.  Calling it: engineBoots / 1
read_config: /var/net-snmp/snmpd.conf:34 examining: oldEngineID
0x80001f8880c20ae03b7cbe0a4b
read_config: /var/net-snmp/snmpd.local.conf: No such file or directory
read_config:  config path used for
snmp:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root
/.snmp (persistent path:/var/net-snmp)
read_config:  config dir: /usr/local/etc/snmp
read_config:  Directory not present: /usr/local/etc/snmp
read_config:  config dir: /usr/local/share/snmp
read_config: /usr/local/share/snmp/snmp.conf: No such file or directory
read_config: /usr/local/share/snmp/snmp.local.conf: No such file or
directory
read_config:  config dir: /usr/local/lib/snmp
read_config: /usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: /usr/local/lib/snmp/snmp.local.conf: No such file or
directory
read_config:  config dir: /root/.snmp
read_config:  Directory not present: /root/.snmp
read_config:  config path used for snmp:/var/net-snmp (persistent
path:/var/net-snmp)
read_config:  config dir: /var/net-snmp
read_config: /var/net-snmp/snmp.conf: No such file or directory
read_config: /var/net-snmp/snmp.local.conf: No such file or directory
read_config: storing: #
# net-snmp (or ucd-snmp) persistent data file.
#
########################################################################
####
# STOP STOP STOP STOP STOP STOP STOP STOP STOP 
#
#          **** DO NOT EDIT THIS FILE ****
#
# STOP STOP STOP STOP STOP STOP STOP STOP STOP 
########################################################################
####
#
# DO NOT STORE CONFIGURATION ENTRIES HERE.
# Please save normal configuration tokens for snmpd in
SNMPCONFPATH/snmpd.conf.
# Only "createUser" tokens should be placed here by snmpd
administrators.
# (Did I mention: do not edit this file?)
#

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.