Solaris 10 - starting snmpdx at boot time on a port other than 161

Hi All,

Can we start the snmpdx on another port at boot time on solaris 10 instead of the default 161 port? What is the configuration file to set this?

We can make it run in a different port after the system boots up by using
snmpdx -p port_number

This requirement is because i have an application that uses port 161 as default and i also want snmpdx to run. I can start snmpdx by executing
/usr/lib/snmp/snmpdx
and it runs on port 16161
but as far as i remember i never configured this anywhere. :confused:

you need to add it to the startup. check /lib/svc/method/svc-snmpdx

${SNMP_BIN}  -y -c ${SNMP_CONFDIR}

needs to be changed to something like:

${SNMP_BIN}  -p 1161 -y -c ${SNMP_CONFDIR}

after change:

-bash-3.00# svcadm restart snmpdx
-bash-3.00# svcs -a | grep snmpd && netstat -an | grep 1161
online         22:06:49 svc:/application/management/snmpdx:default
      *.1161                              Idle

however, i would recommend you use sma instead of snmpdx. technically snmpdx (sea) is obsolete. usually what i do for snmp monitoring is install the latest version of net-snmp. in this case, it looks to be 5.5. after you install, point the sma startup (svc-sma) to the new version of net-snmp and you will actually get better output via snmp.