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
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
# 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.
#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
Soni
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
