Operating System - HP-UX
1752590 Members
3104 Online
108788 Solutions
New Discussion юеВ

Re: Port Openend in hp-Ux

 
SOLVED
Go to solution
Tvs
Regular Advisor

Port Openend in hp-Ux

Hi all,

i just want to check the status of one port.

when iam giving
# netstat -an |grep 4100
tcp 0 0 172.21.0.160.2507 172.21.0.154.4100 ESTABLISHED
tcp 0 0 172.21.0.160.2658 172.21.0.154.4100 ESTABLISHED

it is giving the port 4100 is opened and accepting the connection. but iam unable to find the specific entry in /etc/inetd.conf and in /etc/services.

and i want to check the status of port 1031 is opened or not..( all these port is using one application)

pls help me..

Thanks in advance
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: Port Openend in hp-Ux

The port was probably opened/established by the application itself. When that occurrs, no entries are necessary in /etc/services or /etc/inetd.conf.

The inetd.conf file only applies to ports/services that inetd opens.

A better tool to use for ports is lsof.
GGA
Trusted Contributor

Re: Port Openend in hp-Ux

CAS_2
Valued Contributor

Re: Port Openend in hp-Ux

lsof is very useful for this:

lsof -i TCP:4100
Mel Burslan
Honored Contributor

Re: Port Openend in hp-Ux

and if you do not have lsof installed on your system, it can freely be obtained from this, following URL:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.76/
________________________________
UNIX because I majored in cryptology...
Sandman!
Honored Contributor
Solution

Re: Port Openend in hp-Ux

You need to be on the server machine that is accepting connections on port 4100. From the netstat output it's apparent that you are on the client machine and so can't find out the service which is accepting connections on port 4100. Login to the server-side (172.21.0.154) use lsof and check /etc/inetd.conf and /etc/services files too:

# lsof -i:4100

As for port 1031 opened or not? It doesn't matter which machine you're on; lsof will give you the info., i.e.

# lsof -i:1031