Operating System - Tru64 Unix
1757032 Members
2752 Online
108858 Solutions
New Discussion юеВ

Re: Can someone help me in creating a port in TRU64

 
Rajesh Maddela
New Member

Can someone help me in creating a port in TRU64

I have an application(on a remote server) which listens to a port on my TRU64 machine. I am trying to create a port. I added an entry in /etc/inetd.conf and /etc/services and executed inetd -h or kill -HUP but still I am not able to do a telnet localhost on that port #.

I used the same process in HP and Solaris 9 which is working fine. Am I missing something in the process?
9 REPLIES 9
Steven Schweda
Honored Contributor

Re: Can someone help me in creating a port in TRU64

> [...] TRU64 [...]

sizer -v

> [...] I am trying to create a port. [...]

You don't really "create a port". You can
run your program, which might listen on some
port, or you can register your program with
inetd, so that inetd will listen on some
port, and run your program when appropriate.

> I added an entry [...]

My psychic powers are too weak to show me the
changes which you made to these files.

> [...] I am not able to do a telnet [...]

"I am not able" is not a useful problem
description. It does not say what you did.
It does not say what happened when you did
it.

As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions and interpretations.

> Am I missing something in the process?

Apparently.
Rajesh Maddela
New Member

Re: Can someone help me in creating a port in TRU64

You are right, I want to run a program which listens to a port. The entry is as follows:
/etc/inetd.conf:
alert stream tcp nowait root /usr/bin/tcpd
/etc/services:
alert 4949/tcp #alert Script
and then: inetd -h.
after this I try telnet localhost 4949, it says:
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

My my_script.ksh is a one line script which tails a log file. The out put expected above is few lines from my log file.

Thanks.
Steven Schweda
Honored Contributor

Re: Can someone help me in creating a port in TRU64

> [...] Connection refused

That normally means that no one is listening
at that port.

> [...]

I can't see what that is, either. Does it
exist? Is it executable?

Any clues in the system log file(s)?
Rajesh Maddela
New Member

Re: Can someone help me in creating a port in TRU64

It exists and also executable, the entry is as follows:

#!/usr/bin/ksh

/usr/bin/tail -f /opt/home/TestMsg.log

The file TestMsg.log contains few Oracle error messages I collected from the internet. Infact this entire process has no connection with Oracle process/database. When I connect to this port from a remote server, I need to get the log messages.
Pieter 't Hart
Honored Contributor

Re: Can someone help me in creating a port in TRU64

>> > [...] Connection refused
>>
>> That normally means that no one is listening
>> at that port.

can you verify with "netstat -a | grep 4949" that a listener is started? on that port

check "ls /usr/bin/tcpd" ift his file exists?
(I don't have any on my system)

use "inetd -hL" to log status messages, like the startup and shutdown of services, to syslogd.
Pieter 't Hart
Honored Contributor

Re: Can someone help me in creating a port in TRU64

tcpd seems to refer to TCP Wrappers.
is this package installed?

http://h30097.www3.hp.com/docs/iass/OSIS_67/admin/ch09.html

During installation, the TCP service entries in the /etc/inetd.conf file that match the service entries specified in the /usr/internet/security/config.tcp file are modified to include the TCP Wrapper (tcpd) daemon.

Rajesh Maddela
New Member

Re: Can someone help me in creating a port in TRU64

Yes the package is installed and the path exists. After going through the link you provided, I found some changes might help me. Any idea if the following changes might work?
Making an entry in the files
/usr/internet/security/config.tcp for tcpd and
/usr/internet/security/hosts.allow like tcpd:ALL:ALLOW

The same process(adding enries to /etc/services and /etc/inetd.conf works fine with Solaris and HP-UX).
Pieter 't Hart
Honored Contributor

Re: Can someone help me in creating a port in TRU64

I've not worked with this software.

Yes I think you need to make changes to some of these files.
The procedure seems to be to make changes in /usr/internet/security files, and then run a script to activate those changes in /etc files.

http://h30097.www3.hp.com/docs/iass/OSIS_67/admin/ch09.html#sec-conrol-net-ser-tcp

The whole "Internet Express Version 6.7 for Tru64 UNIX" package seems also to contain a firewall.
Check if this is activated, you may need to change that config too.
Steven Schweda
Honored Contributor

Re: Can someone help me in creating a port in TRU64