when I give the version as -- trapsess -v 2c localhost:9001 then the snmptrapd receive all the traps, but with -v 3 it doesn't receive anything....not even the Cold Start trap from agent. How can I make apps/snmptrapd receive traps with the following statement in snmpd.conf file of agent? trapsess -v 3 localhost:9001 Do I have to set anything else somewhere OR Do I have to provide 'version number' command line parameter while running snmptrapd??
Thanks Soni narinder soni wrote: > > Hi all, > I am using UCD-SNMP-0.4.2.5 Everything used to work with SNMPv2 - > snmpget, snmpset and traps also. Now I want to configure the same > agent > for SNMPv3 protocol. I just changed the snmpd.conf file in the > following > way(replacing the previous entries for SNMPv2): > > ###################################### > > ## for get/set requests > createUser public MD5 my_password DES > > com2sec public 192.168.1.210 public > group public v2c public > group public usm public > view all included .1 > access public "" any noauth exact all none nonea > > > ## for traps > #trapcommunity public > > # trapsink: A SNMPv1 trap receiver > # arguments: host [community] [portnum] > #trapsink localhost:9001 > #trapsink 192.168.1.210:9001 > > # trap2sink: A SNMPv2c trap receiver > # arguments: host [community] [portnum] > #trap2sink localhost:9001 > #trap2sink 192.168.1.210:9001 > trapsess 192.168.1.210:9001 public > #trapsess 192.168.1.210:162 public > > ###################################### > > With the above changes in snmpd.conf The snmpset and snmpget works. > But > the traps are not working properly. After running > ./snmptrapd -P -p 9001 -F "%02.2h:%02.2j TRAP%w.%q from %A\n > Trap-Type: > %W\n" > I only get two traps: 1st "Cold Start" when agent is started and 2nd > when agent is stopped. I am not able to receive other traps. > > I was using send_v2trap() in my mib.c with SNMPv2 when everything used > to work. Do I have to change this for SNMPv3(Documentation doesn't say > so)? OR anything else anywhere? OR if anyone can point out what I am > doing wrong. > > Any comments please. > Regards > Soni > > > ---------------------------------------------------------------------- > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ 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
