Operating System - HP-UX
1835243 Members
2115 Online
110078 Solutions
New Discussion

nddconf strange modifications

 
Victor Makukha
Advisor

nddconf strange modifications

Hi.

I have HP-UX v 11i running on rp7420. In order for the Java applications to work correctly we set an ephemeral port range. We do it using the settings in the /etc/rc.config.d/nddconf file. But strange things happen. After I had edited the file the contents were as the following:

TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_largest_anon_port
NDD_VALUE[0]=50000

TRANSPORT_NAME[1]=tcp
NDD_NAME[1]=tcp_smallest_anon_port
NDD_VALUE[1]=49152

TRANSPORT_NAME[2]=udp
NDD_NAME[2]=udp_largest_anon_port
NDD_VALUE[2]=50000

TRANSPORT_NAME[3]=udp
NDD_NAME[3]=udp_smallest_anon_port
NDD_VALUE[3]=49152

...but after I had reboot the server my emphemeral port range got shifted and I found that my nddconf file got modified by unknown process. This happens every time I reboot the machine. After the reboot the file looks as the following:

TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_largest_anon_port
NDD_VALUE[0]=49152

TRANSPORT_NAME[1]=tcp
NDD_NAME[1]=tcp_smallest_anon_port
NDD_VALUE[1]=50000

TRANSPORT_NAME[2]=udp
NDD_NAME[2]=udp_largest_anon_port
NDD_VALUE[2]=49152

TRANSPORT_NAME[3]=udp
NDD_NAME[3]=udp_smallest_anon_port
NDD_VALUE[3]=50000

Somehow _smallest and _largest ports are getting swapped.

Why this happens? Is there any way to avoid this? Of course, I set these ports manually then by ndd commands but this is not the way out, I need to make the system reboot correctly with the necessary port range read from this file.
Master
2 REPLIES 2
Chan 007
Honored Contributor

Re: nddconf strange modifications

Hi Voctor,

Hope this helps you, to solve your problem

ftp://ftp.cup.hp.com/dist/networking/briefs/annotated_ndd.txt

Chan
Victor Makukha
Advisor

Re: nddconf strange modifications

Thanks,

There is a lot of useful info, but I still could not find why they TCP/UDP largest and smallest could get swapped...

Regards.
Master