Operating System - OpenVMS
1753814 Members
7613 Online
108805 Solutions
New Discussion юеВ

Re: tcpip set noservice, but port still active

 
SOLVED
Go to solution
Thomas A. Williams
Regular Advisor

tcpip set noservice, but port still active

I removed a tcpip service with "set noservice", but the port is still listening when I check with the netstat command. Is is possible to clear this out without restarting tcp/ip?
9 REPLIES 9
Volker Halle
Honored Contributor
Solution

Re: tcpip set noservice, but port still active

Thomas,

did you try TCPIP> DISABLE SERVICE xxx

Volker.
Thomas A. Williams
Regular Advisor

Re: tcpip set noservice, but port still active

No, but I just tried that, and it didn't find the service, since I had already did a "set noservice" on it.
Steven Schweda
Honored Contributor

Re: tcpip set noservice, but port still active

I believe that SET NOSERVICE is like deleting
a line from /etc/services. DISABLE SERVICE
is more like deleting a line from
/etc/inetd.conf, which sounds like what you
want.

It might be a good idea to do the appropriate
SET SERVICE to restore the lost item there.
Thomas A. Williams
Regular Advisor

Re: tcpip set noservice, but port still active

That did it! I needed to do a "disable service", then I could do a "set noservice". Thanks!
Steven Schweda
Honored Contributor

Re: tcpip set noservice, but port still active

> then I could do a "set noservice".

It's not clear to me why you'd want to.
DISABLE SERVICE stops the activity. SET
NOSERVICE causes a loss of potentially useful
information, and, as you've seen, does not
stop the activity.

> It might be a good idea to do the appropriate
> SET SERVICE to restore the lost item there.

And then quit while you're ahead.
Steven Schweda
Honored Contributor

Re: tcpip set noservice, but port still active

Unless it's some non-standard service which
you added yourself.
Thomas A. Williams
Regular Advisor

Re: tcpip set noservice, but port still active

it was a non-standard service. thanks for the help.
Jan van den Ende
Honored Contributor

Re: tcpip set noservice, but port still active

Thomas,

about saying "Thank you". please review

http://forums1.itrc.hp.com/service/forums/helptips.do?#33

PS from your profile:
>>>
I have assigned points to 36 of 122 responses to my questions.
<<<
Maybe time to catch up some?

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Willem Grooters
Honored Contributor

Re: tcpip set noservice, but port still active

I ran into a problem the other day, using the same sequence, though I do not remember the exact sequence. I ended up with a corrupted TCPIP database re-defining the service giving it another name. As a rersult, I had to delete all TCPIP*.DAT files and redo the TCPIP configuration.

The right order is:

* Disable the service: TCPIP DISABLE SERVICE
* Delete the service: TCPIP SET NOSERVICE (from the volatile database), and/ or
TCPIP SET CONFIG NOSERVICE (from the permanenet database)

Willem Grooters
OpenVMS Developer & System Manager