Hello, 

   

I am very
new to both solaris and snmp world.  

   

I have a
solaris box on which net-snmp 5.4 is installed. I have setup a masteragent
listening on port 705 from a localagent.  

In snmpd.conf,
I have set the trapsink to another box(Box trapmaster where I have set up a
trap receiver). 

   

Now
whenever net-snmp starts up and goes down, I do see traps on my trapmaster box.
So it proves that the link/network is fine. 

   

My code is
sending traps at Masteragent on port 162. But doing netstat on port 162 gave me
nothing. How do I make masteragent listen to traps send by localagent?? 

   

   

Part of
snmpd.conf 

########################################################################### 

# SECTION:
Trap Destinations 

# 

#   Here we define who the agent will send traps
to. 

   

# trapsink:
A SNMPv1 trap receiver 

#   arguments: host [community] [portnum] 

   

trapsink  trapmaster 

   

#
trap2sink: A SNMPv2c trap receiver 

#   arguments: host [community] [portnum] 

   

trap2sink  trapmaster 

   

#
trapcommunity: Default trap sink community to use 

#   arguments: community-string 

   

trapcommunity  public 

   

   

# enable
master agentx support 

master  agentx 

#AgentXSocket
705 

AgentXTimeout
3 

   

#proxy
" -v 1 -c public " localhost:9000 .1.3  

#proxy
" -v 1 -c public " localhost:9000 .1.3.6.1.2.1.47 

   

-------------------------------------------------- 

-------------------------------------------------- 

   

S78net-snmpd
script 

   

   

#!/sbin/sh 

# 

#
/etc/rc3.d/S78net-snmp 

# 

# pkill has
moved over the years so we need to find it # X=`which pkill`
CONFIGFILE=/usr/local/share/snmp/snmpd.conf 

AGENTX_HOST=masteragent 

AGENTX_PORT=705 

LOGFILE=/usr/local/snmpd.log 

LOGLEVEL=5 

   

case
"$1" in 

'start') 

    /usr/local/sbin/snmpd -C -c $CONFIGFILE -x
tcp:$AGENTX_HOST:$AGENTX_PORT -LF $LOGLEVEL $LOGFILE 

        ;; 

'stop') 

    $X -TERM -x -u 0 snmpd 

        ;; 

*) 

    echo "Usage: $0 { start | stop }" 

        exit 1 

        ;; 

esac 

exit 0 

  ---------------------------------

 

Thanks


      
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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

Reply via email to