Hi Wes
I am facing this strange problem of usm user not getting recognized
after agent boot.Here are the steps that I am following .

SNMP_PERSISTENT_FILE set to /var/net-snmp/snmpd.conf
SNMPCONFPATH set to /etc/snmp,/var/net-snmp

/var/net-snmp/snmpd.conf contains following line
        createUser superuser MD5 new_passphrase

/etc/snmp/snmpd.conf vcam entry access to whole mib tree with write
access superuser

1- First I run the following command to start the agent 
./snmpd  -f -Le -c /var/net-snmp/snmpd.conf,/etc/snmp/snmpd.conf

Content of is /var/net-snmp/snmpd.conf after agent start
usmUser 1 3 0x80001f88802d6aa54b0247a342 0x73757065727573657200
0x73757065727573657200 NULL .1.3.6.1.6.3.10.1.1.2
0xe37d277a63d1df1369e95bb5661c1662 .1.3.6.1.6.3.10.1.2.1 "" ""
setserialno 1826529941
engineBoots 1
oldEngineID 0x80001f88802d6aa54b0247a342

2- I query the agent using following command and it is succesfully
returns sysUpTime
snmpget -v 3  -u superuser -l authNoPriv -a MD5 -A new_passphrase
47.11.221.219 sysUpTime.0

3- I stop the agent using kill <agent process ID> from another window.
Content of the /var/net-snmp/snmpd.conf after shutdown and before re
starting

usmUser 1 3 0x80001f88802d6aa54b0247a342 0x73757065727573657200
0x73757065727573657200 NULL .1.3.6.1.6.3.10.1.1.2
0xe37d277a63d1df1369e95bb5661c1662 .1.3.6.1.6.3.10.1.2.1 "" ""
setserialno 1826529941
engineBoots 1
oldEngineID 0x80001f88802d6aa54b0247a342

4- I restart the agent using same command i.e
   I have printf commands in usm_read_user function to see if user is
read and it name is superuser. It dumps the output showing boht
securityname and usr name as superuser

Content of /var/net-snmp/snmpd.conf file after restart
usmUser 1 3 0x80001f88802d6aa54b0247a342 0x73757065727573657200
0x73757065727573657200 NULL .1.3.6.1.6.3.10.1.1.2
0xe37d277a63d1df1369e95bb5661c1662 .1.3.6.1.6.3.10.1.2.1 0x 0x00
setserialno 1826529942
engineBoots 1
oldEngineID 0x80001f88804db55c0c3148a342

5- Now I do the same snmpget query again and following are the result

>>snmpget -v 3  -u superuser -l authNoPriv -a MD5 -A new_passphrase
47.11.221.219 sysUpTime.0
snmpget: Unknown user name


I am not able to understand why user is not getting recognized. I am
expecting snmpd to reread already stored users correctly so that after
agent restart I need not re-create them. Can anyone please tell me what
is wrong with configuration. Do engineID playing any role in it.

Thanks in advance.



 




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to