Operating System - HP-UX
1827376 Members
4389 Online
109963 Solutions
New Discussion

ndd -get displays different values than in the conf file

 
SOLVED
Go to solution
EU-Admins-UNIX
Regular Advisor

ndd -get displays different values than in the conf file

Hi

 

We are upgrading Oracle on HP-UX 11.31.

 

A pre-requisite was to amend some ndd settings.  Below is extract from the nddconf file:

 

#
TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_largest_anon_port
NDD_VALUE[0]=65500
#
TRANSPORT_NAME[1]=tcp
NDD_NAME[1]=tcp_smallest_anon_port
NDD_VALUE[1]=9000
#
TRANSPORT_NAME[0]=udp
NDD_NAME[0]=udp_largest_anon_port
NDD_VALUE[0]=65500
#
TRANSPORT_NAME[1]=udp
NDD_NAME[1]=udp_smallest_anon_port
NDD_VALUE[1]=9000
#

 

The server has since rebooted.

 

Upon interrogating ndd -get, the values below are reported.

 

root@ahem at /etc/rc.config.d =>ndd -get /dev/tcp tcp_largest_anon_port
65535
root@ahem at /etc/rc.config.d =>ndd -get /dev/tcp tcp_smallest_anon_port
49152
root@ahem at /etc/rc.config.d =>ndd -get /dev/udp udp_largest_anon_port
65500
root@ahem at /etc/rc.config.d =>ndd -get /dev/udp udp_smallest_anon_port
9000

 

I assumed these values in the conf file were persistent against reboots.  Is the ndd -get query retrieving the values from somewhere else?

 

Regards

 

Tariq

 

 

P.S.This thread has been moved from HP-UX >General to HP-UX > networking- HP Forums Moderator

2 REPLIES 2
Laurent Menase
Honored Contributor
Solution

Re: ndd -get displays different values than in the conf file

TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_largest_anon_port
NDD_VALUE[0]=65500
#
TRANSPORT_NAME[1]=tcp
NDD_NAME[1]=tcp_smallest_anon_port
NDD_VALUE[1]=9000
#
TRANSPORT_NAME[2]=udp
NDD_NAME[2]=udp_largest_anon_port
NDD_VALUE[2]=65500
#
TRANSPORT_NAME[3]=udp
NDD_NAME[3]=udp_smallest_anon_port
NDD_VALUE[3]=9000
#

 

should work a better....

index should be different for any entry else the last one replace the previous one

NDD_NAME[0]=tcp_largest_anon_port

NDD_NAME[0]=udp_largest_anon_port

cause then that NDD_NAME[0]=udp_largest_anon_port at the end.

EU-Admins-UNIX
Regular Advisor

Re: ndd -get displays different values than in the conf file

Thanks Laurent

 

Good advice, it worked.

 

#
TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_largest_anon_port
NDD_VALUE[0]=65500
#
TRANSPORT_NAME[1]=tcp
NDD_NAME[1]=tcp_smallest_anon_port
NDD_VALUE[1]=9000
#
TRANSPORT_NAME[2]=udp
NDD_NAME[2]=udp_largest_anon_port
NDD_VALUE[2]=65500
#
TRANSPORT_NAME[3]=udp
NDD_NAME[3]=udp_smallest_anon_port
NDD_VALUE[3]=9000
#


root@ahem at /etc/rc.config.d =>ndd -get /dev/tcp tcp_largest_anon_port
65500
root@ahem at /etc/rc.config.d =>ndd -get /dev/tcp tcp_smallest_anon_port
9000
root@ahem at /etc/rc.config.d =>ndd -get /dev/udp udp_largest_anon_port
65500
root@ahem at /etc/rc.config.d =>ndd -get /dev/udp udp_smallest_anon_port
9000