Weird behavior when setting trap destination with same username as the agent username

Dave Stav <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello List,

I have noticed an interesting phenomenon when configuring trap destinations and I wanted to ask if this is a bug in net-snmp or is it some behavior I simply do not understand.

I am running a net-snmp version 5.4.2 on an embedded linux system with kernel 2.6.26-2-686.

My /etc/snmp/pvgsnmpd.conf contains the following 2 lines only:
###########################
sysservices 1
rwuser admin  noauth
###########################

And before running the agent for the first time I wrote the following to my /var/lib/net-snmp/pvgsnmpd.conf :
###########################
createUser admin MD5 "administrator"
###########################

This allows me to connect to the agent using username admin and either password administrator or user admin with no password.


I add trap destinations by adding a line like the following to the /etc/snmp/pvgsnmpd.conf :
###########################
trapsess -u 'admin' -A '12345678' 192.168.41.28
###########################

Regardless of whether anyone is actually listening for snmp traps or not on 192.168.41.28, the phenomenon is like so:
If the trapsess username is 'admin', then when the trap is being sent out I can no longer connect to the agent using user:admin pass:administrator.
I can, though, still connect using user:admin and no password. I can also connect using user:admin password:12345678 (the new password for the trap destination).
Restarting the agent does not help, only if rewrite the /var/lib/net-snmp/pvgsnmpd.conf it reverses the situation.

I assume that when the trap is being sent out the saved password for user admin in the agent changes.

Is this a bug or am I missing something in my understanding of the behavior?

I appreciate your help.

Thanks,

Dave

-- 
 EE 77 7F 30 4A 64 2E C5  83 5F E7 49 A6 82 29 BA    ~. .~   Tk Open Systems
 =}-----------------------------------------------ooO--U--Ooo-------------{=
      - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
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.