Operating System - HP-UX
1833420 Members
3361 Online
110052 Solutions
New Discussion

Re: Setting port numbers in HP-UX 10.20

 
Lilliam Palermo
Occasional Contributor

Setting port numbers in HP-UX 10.20

Is it possible to set the largest port numbers in HP-UX 10.20 ?
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: Setting port numbers in HP-UX 10.20

What do you mean by "set" ??

live free or die
harry
Live Free or Die
Lilliam Palermo
Occasional Contributor

Re: Setting port numbers in HP-UX 10.20

I would like change the range of well know ports from 0 through 1023 to 0 through 2000. In HP-UX 11.0 the comand is ndd and the parameter is tcp_largest_anon_port but in HP-UX 10.20 doesn't have this parameter to nettune ..... tks
Zeev Schultz
Honored Contributor

Re: Setting port numbers in HP-UX 10.20

Its not correct.Ports mapped from 0 to 1023 are well known ports and (usually) have service (see /etc/service) assigned.
tcp_largest_anon_port however is about largest anonymous connection port.These are values in ndd -

$ ndd -get /dev/tcp tcp_smallest_nonpriv_port

1024

$ ndd -get /dev/tcp tcp_smallest_anon_port

49152

$ ndd -get /dev/tcp tcp_largest_anon_port

65535

From 1024 to 49152 ports called registred.
See here more : http://members.cox.net/~ndav1/stratasphere/selecting_ports.doc.

I wouldn't set largest_anon_port to 2000 since that would make ports from 2000 and up
"dynamic"...applications may not like it.

So computers don't think yet. At least not chess computers. - Seymour Cray
Sundar_7
Honored Contributor

Re: Setting port numbers in HP-UX 10.20


One more thing to add, in HP-UX, the server process should be running under a privileged user account (root) to be able to listen for the connections in the port range from 0 to 1024.

Thanks,
Learn What to do ,How to do and more importantly When to do ?
Lilliam Palermo
Occasional Contributor

Re: Setting port numbers in HP-UX 10.20

I need to startup oracle listerner at 1521 port. I insert the line:
xxxx 1521/tcp # listner oracle on /etc/services

but when I try to make ORACLE up, this port is being used by other aplication/service.

I found a document that says /etc/services file declares an "intention" to use a particular port number insted of "reserve" it.
Is there a way to avoid this problem ?
Jeff Schussele
Honored Contributor

Re: Setting port numbers in HP-UX 10.20

Hi Lilliam,

You don't need to & shouldn't put an entry in /etc/services for Oracle.
That's what it's listener - tnslsnr - does.
It watches for connections coming in on the ports specified in it's tnsnames.ora file.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!