06-21-2004 07:04 AM - edited 03-09-2019 07:48 AM
I have a specific requirement whereby I want to clear a group of TCP connections using one command. At this moment I can clear a TCP connection mentioning the local address and port and remote address and port. But I would like to clear all the TCP connections from a particular IP or to a particular IP using one command.
Is this possible.
06-25-2004 10:15 AM
I guess 'clear tcp' command is the only way to clear a TCP connection and this command does not permit you to specify an IP without specifying a port. Guess, what you are trying is not possible.
10-05-2016 06:57 AM
You can clear the entire table with the command clear tcp tcb *
06-27-2004 09:01 AM
No, you can only do it one at a time with the
clear tcp tcb #. These session numbers can be gotten from show tcp brief. If you do a clear tcp local
06-27-2004 09:43 PM
I cannot give clear tcp local with the IP Address and expect it to clear all the TCP connection pertaining to that IP Address.
I have to give
clear tcp local LOCAL-IP LOCAL-PORT REMOTE-IP REMOTE-PORT
Otherwise the command is not accepted. This is where my problem is. I would love to clear all TCP connections specifying only the LOCAL-IP parameter.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide