snmptrapd.conf: Error: bad security level (noauthnopriv, authnopriv, authpriv)

PoWah Wong <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I want to setup the snmptrapd on 5.4.1 & FC6 linux.

I send a test trap with netsnmp 4.5.2.1 on FC6 linux as follows:
snmptrap -e 0x0102030405 -v 3 -u admin -l authPriv -a MD5 -A 12345678 -x DES -X 87654321 172.20.11.72 42 coldStart.0

The wireshark program running on 172.20.11.72 capture this trap.
However, no trap appear on the screen.

# cat /home/powah/snmp/snmptrapd.conf 
createUser admin MD5 12345678 DES 87654321
createUser adminwindows MD5 12345678 DES 87654321

authuser log admin

logOption s u

I tried logging messages to the standard output or error stream.
# snmptrapd -f -C -c /home/powah/snmp/snmptrapd.conf -Lo
# snmptrapd -f -C -c /home/powah/snmp/snmptrapd.conf -Le
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
NET-SNMP version 5.4.1



Restart snmptrapd with a new snmptrapd.conf file:

# cat /home/powah/snmp/snmptrapd.conf 
createUser admin MD5 12345678 DES 87654321
createUser adminwindows MD5 12345678 DES 87654321

authuser log,execute admin /home/powah/snmp/trapstouch test

logOption s u

# snmptrapd -f -C -c /home/powah/snmp/snmptrapd.conf -Le
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
/home/powah/snmp/snmptrapd.conf: line 4: Error: bad security level (noauthnopriv, authnopriv, authpriv)
/home/powah/snmp/snmptrapd.conf: line 4: Error: bad security level (noauthnopriv, authnopriv, authpriv)
NET-SNMP version 5.4.1





      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/

------------------------------------------------------------------------------
_______________________________________________
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.