Hi,
My setup for snmp
traps/informs goes as below.
snmp agent
setup(snmpd running on
192.168.31.114)
-------------------------------------------------------------------------------
my
/usr/local/share/snmp/snmpd.conf file contains
following configuration.
#----------------------------------snmpd.conf
begins----------------------------------------------
agentSecName
raghu
defaultMonitors yes
linkUpDownNotifications yes
defaultMonitors yes
linkUpDownNotifications yes
authtrapenable
1
authcommunity read
brcm default
trapsess -v 2c -c
brcm 192.168.31.199:162
trapsess -v 3 -Ci -u
raghu -l authNopriv -a MD5 -A testraghu -t 10 -r 3
192.168.31.199:162
#----------------------------------snmpd.conf
ends----------------------------------------------
with this configuration I am enabling snmpd
on 192.168.31.114.
snmptrapd has following setup
(snmptrapd on
192.168.31.199)
-------------------------------------------------------------------------------------------------
My /var/net-snmp/snmptrapd.conf file
has following configuration.
#----------------------------------snmptrapd.conf
begins----------------------------------------------
createUser raghu MD5 testraghu DES
testraghu
#which gets encrypted once I enable
snmptrapd
#----------------------------------snmptrapd.conf
ends----------------------------------------------
My /usr/local/share/snmp/snmptrapd.conf
file has following configuration.
#----------------------------------snmptrapd.conf
begins----------------------------------------------
authcommunity
read,write brcm default
#
if I dont use authcommunity I will get following
error
#
[EMAIL PROTECTED] raghu]# /usr/local/sbin/snmptrapd
# No log handling enabled - turning on stderr logging
# Warning: no access control information configured.
# This receiver will *NOT* accept any incoming notifications.
# No log handling enabled - turning on stderr logging
# Warning: no access control information configured.
# This receiver will *NOT* accept any incoming notifications.
traphandle default
192.168.31.114
#----------------------------------snmptrapd.conf
ends----------------------------------------------
Once I enable
snmptrapd on 192.168.31.199 as given
below
/usr/local/sbin/snmptrapd -f -Le -c
/usr/local/share/snmp/snmptrapd.conf
snmptrapd runs
in fore ground. At the other side I tried killing and
restarting snmpd since it is coldStrat I
should get traps/informs saying its cold start. Which I unable to
get.
Actually I am able
to get traps/informs for v2 when I test with MG-SOFT Mib Browser or AdventNet
SNMP Utilities. But I am not getting it with
snmptrapd.
Can anyone just tell me whats wrong with my
configuration or testing of the feature. Any thing less
or extra I need to do?
Thanx &
Regards,
Raghavendra.
S
