1829845 Members
1976 Online
109993 Solutions
New Discussion

Port Question.

 
joe_91
Super Advisor

Port Question.

Hi Team:

I am not able to telnet to a port. The port number is 9393 and is used for tivoli. I do not have that listed in the /etc/services, but that is not an issue..It was working fine until yesterday. Any thoughts...

Thanks
Joe.
7 REPLIES 7
Jeff Schussele
Honored Contributor

Re: Port Question.

Hi joe,

Do a
netstat -an | grep 9393
Check to see if you have a LISTEN line for 9393 - if not you need to start/restart the process the does listen on 9393

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Andi Rigauer
Regular Advisor

Re: Port Question.

Hi ,

If you have a Linux Box you can also use nmap to scan the ports of your box and look if its allready occupied.

good luck

andi
god, root where's the difference
MANOJ SRIVASTAVA
Honored Contributor

Re: Port Question.

Hi Joe


What acan be done is that you downlaod the lsof utility from :

ftp://vic.cc.purdue.edu/pub/tools/unix/lsof

then do a lsof | grep 9393 and then kill the process which owns this.

Lsof is a good utility to resolve such issues.
And this site has compiled binary versions too.


Manoj Srivastava
Darrell Allen
Honored Contributor

Re: Port Question.

Hi Joe,

Could a firewall change have been made to block port 9393?

First test 9393 on the same box where it is listening (ie telnet localhost 9393).

Is there an entry in /var/adm/inetd.sec blocking access?

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
joe_91
Super Advisor

Re: Port Question.

Hi All:

Thanks for your time. I have already done all the steps mentioned above.

netstat -a shows 9393 in the listen mode.

lsof shows the same but also throws one extra process called "keyserv" holding the port(wonder what it is)
there is no inetd.sec file at all.
Please advise.

Thanks
Joe.
Jeff Schussele
Honored Contributor

Re: Port Question.

Hi (again) joe,

What's in the /etc/inetd.conf file for Tivoli?
Is it wait or nowait - i.e. single or multithreaded?
Typically UDP processes are wait & TCP are nowait.
9393 is not an officially assigned port - so I don't know whether it's UDP or TCP
If wait then I'd say that Tivoli is "hung" & you'll need to stop it via command line or kill it & then restart it.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
U.SivaKumar_2
Honored Contributor

Re: Port Question.

Hi,
Are you using NIS+ in the server ?. if not try
killing the keyserv daemon gracefully i.e kill pid .
Then
#inetd -c
Now try to telnet to that port.

regards,
U.SivaKumar
Innovations are made when conventions are broken