Wes I think I know what the problem is . It is so happening that after every restart engineID is getting changed . First time it works because oldEngineID stored in /var/net-snmp/snmpd.conf and engineId stored in same file with user profile is same. Problem start when we restart the agent, oldengineID is again calcualted based on current time and is different from previous one and it replaced older oldEngineID value in /var/net-snmp/snmpd.conf. Now engineID associated with user is different then oldengineId and agent responds with oldEngineID value when engineID discovery is done from any of snmpget etc etc commands. I could fix this problem by removing code that fills current value in engineID but I think more robust solution would be one which do not change oldEngineID if one is already present.
Your comments please on my input. Amber -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wes Hardaker Sent: Wednesday, June 08, 2005 12:24 PM To: Amber Gupta Cc: [email protected] Subject: Re: SNMPUSM user are not recognized after agent restart >>>>> On Sun, 5 Jun 2005 18:47:03 -0400, "Amber Gupta" >>>>> <[EMAIL PROTECTED]> said: Amber> I am not able to understand why user is not getting recognized. I Amber> am expecting snmpd to reread already stored users correctly so Amber> that after agent restart I need not re-create them. Can anyone Amber> please tell me what is wrong with configuration. Do engineID Amber> playing any role in it. Very odd. First, thanks a bunch for fully explaining exactly what you're doing and what the results were. That helps me understand the problem quite a bit. Now for the bad news: I'm not sure what's wrong. It looks like it should be working based on what you sent. I would try this: Do the exact same procedure as above, but lets dump the USM table as known to the running agent. The easiest way to do this is use an entirely different version of the protocol (v2c) just to be independent. You can do this by adding: rocommunity SOMETHING to the /etc/snmp/snmpd.conf file. Then go through the above steps and at each run of the agent run: snmpwalk -v 2c -c SOMETHING HOST usmUserTable And check for discrepancies. -- Wes Hardaker Sparta, Inc. ------------------------------------------------------- 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 ------------------------------------------------------- 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
