1832503 Members
4126 Online
110043 Solutions
New Discussion

SNMPD

 
Achilles_2
Regular Advisor

SNMPD

Hi,

Do anyone know that Is it possibile one service name has two different port number?

i.e.
snmp 161/udp snmpd # Simple Network Management Protocol Agent for My Program
snmp 1161/udp snmpd # Simple Network Management Protocol Agent
snmp-trap 162/udp trapd # Simple Network Management Protocol Traps

I want to write a srcipt to call snmpd with specific port number during the server is starting up.

So it seems:

snmpd -P 1161

Or any suggestion??

Thanks
3 REPLIES 3
RAC_1
Honored Contributor

Re: SNMPD

I do not think that will work. Only first entry will be taken. Second will get error saying that port in use or something similar.
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: SNMPD

Shalom,

Let me confirm, two processes can not use the same port that way.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Antonio Cardoso_1
Trusted Contributor

Re: SNMPD

Achilles,

starting a second daemon on a different port using
/usr/sbin/snmpd -P 1161
will do it.
However, those 2 processes (the one listening to 161 and this new process) will have concurrent access to MIB information with possible conflicts!

What is your goal ?