Operating System - HP-UX
1836458 Members
2695 Online
110101 Solutions
New Discussion

enable port 2401 on HPUX11.11

 
Sheng Jun
Occasional Advisor

enable port 2401 on HPUX11.11

Hello all,
In order to install CVS on one of our servers, I need to enable port 2401 on it. The server OS is HPUX11.11. I did some test by adding below lines into inetd.conf and sevices under /etc.

add 'test stream tcp nowait root/bin/echo echo hello'
in /etc/inetd.conf

add 'test 2401/tcp'

an then, issue command 'telent localhost 2401'.
The result was connect failed. These problem can be repeated on HPUX servers with OS11.11, but I find all other servers with OS HPUX11.0 can passed the test.

Any suggestion and idea? is there any patch can help fixing the peoblem.

Thanks
14 REPLIES 14
Clemens van Everdingen
Honored Contributor

Re: enable port 2401 on HPUX11.11

Hi,

Did you add the port to /etc/services ?

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Sheng Jun
Occasional Advisor

Re: enable port 2401 on HPUX11.11

yes, I have added test 2401/tcp in the services file.

with the same proceude, I can telenet 2401 port to a hpux11.0 server, but cannot make it on ux11.11.

regards
Clemens van Everdingen
Honored Contributor

Re: enable port 2401 on HPUX11.11

Hi,

Did you restarted inetd with inetd -c

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Sheng Jun
Occasional Advisor

Re: enable port 2401 on HPUX11.11

I have restarted the service by isuuing inetd -c. but the problem is still remaining there. I don't see the similar issue on HPUX11.0.

regards
Clemens van Everdingen
Honored Contributor

Re: enable port 2401 on HPUX11.11

Hi,

I like to know a bit more:

- What is the exact error message you get when you do telnet localhost 2401

- When it is failing are you getting anything in /var/adm/syslog/syslog.log

- Is there a /var/adm/inetd.sec file on the 11.11 system


C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Sheng Jun
Occasional Advisor

Re: enable port 2401 on HPUX11.11

Hi Clements,
the error message was ' unable to connect to remote host, connection refused.

I didn't see any error in syslog.log file. and there is no file called etc/inetd.sec in HPux11.11

thanks
Clemens van Everdingen
Honored Contributor

Re: enable port 2401 on HPUX11.11

Hi,

Can you show me the content of your /etc/nsswitch.conf file ?

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
James Murtagh
Honored Contributor

Re: enable port 2401 on HPUX11.11

Hi,

Unless that is a typo, you need a space between "root" and "/bin/echo" in the /etc/inetd.conf entry.

Just tested this on my 11i system and it is fine.

regards,

James.
Sheng Jun
Occasional Advisor

Re: enable port 2401 on HPUX11.11

Hi Clements, there is no such file called /etc/nsswitch.conf. thanks
Michael Tully
Honored Contributor

Re: enable port 2401 on HPUX11.11

A typical /etc/nsswitch.conf file shows this information. It is mainly used for name resolution, but can also be for services, usually when you have NIS.

Here is an example:

hosts: files [NOTFOUND=continue UNAVAIL=return TRYAGAIN=return] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
services: files[NOTFOUND=return] nis
Anyone for a Mutiny ?
Sheng Jun
Occasional Advisor

Re: enable port 2401 on HPUX11.11

Hi Clements,

I create the nsswitch.conf with the config you sent to me. It solved the issue. Many thanks.

could you tell me more on this file.

best regards
Patrick Wallek
Honored Contributor

Re: enable port 2401 on HPUX11.11

You should be able to do a 'man nsswitch.conf' to get more info on the nsswitch.conf file.

Yogeeraj_1
Honored Contributor

Re: enable port 2401 on HPUX11.11

hi,

for nsswitch.conf
==============================

nsswitch.conf - name-service switch configuration file

DESCRIPTION
The nsswitch.conf file specifies how the nsdispatch(3) (name-service
switch dispatcher) routines in the C library should operate.

The configuration file controls how a process looks up various databases
containing information regarding hosts, users (passwords), groups, net-
groups, etc. Each database comes from a source (such as local files,
DNS, and NIS), and the order to look up the sources is specified in
nsswitch.conf.

Each entry in nsswitch.conf consists of a database name, and a space sep-
arated list of sources. Each source can have an optional trailing crite-
rion that determines whether the next listed source is used, or the
search terminates at the current source. Each criterion consists of one
or more status codes, and actions to take if that status code occurs.

==============================
Also, see http://campuscgi.princeton.edu/man?nsswitch.conf

Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Clemens van Everdingen
Honored Contributor

Re: enable port 2401 on HPUX11.11

Hi,

I see the guess for the nsswitch.conf file was right.
I saw an example was posted for you as well.

Please be so kind to assign the points to the people who helped you out.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !