- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: killing sockets in red hat linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2004 05:28 AM
07-26-2004 05:28 AM
killing sockets in red hat linux
I would like to know how can I kill/remove a socket in linux.
In HP-UX I can use ndd to do this, but linux doesn't have ndd.
Thanx,
Oved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2004 05:44 AM
07-26-2004 05:44 AM
Re: killing sockets in red hat linux
Do you want to close an open port ?
For me ndd helps tuning some network parameters. This can be an equivalent to Linux sysctl, which offers to tune kernel parameter, and, in your case, network ones.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2004 05:54 AM
07-26-2004 05:54 AM
Re: killing sockets in red hat linux
I mean to close an open socket...
ndd can do it in HP-UX
(There are applications with a "bug" that causes sockets in "CLOSE_WAIT" state to remain in the system, and it causes problems with that applications. )
Thanx,
Oved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2004 06:58 AM
07-26-2004 06:58 AM
Re: killing sockets in red hat linux
ex: (from root)
#lsof -i | grep "CLOSE_WAIT"
# mozilla-b 5914 himself 3u IPv4 49447 TCP 10.22.55.11:ssh->whatever.dom:32798 (CLOSE_WAIT)
then you could use some form of KILL on pid 5914
Hope this help you out.
Jean-Pierre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2004 07:10 AM
07-26-2004 07:10 AM
Re: killing sockets in red hat linux
I am looking for a solution just like ndd in HP-UX.
Thanx,
Oved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2004 07:29 AM
07-26-2004 07:29 AM
Re: killing sockets in red hat linux
1) Find the source code for ndd, port it and compile it in Linux
2) try the binaries and see if they work.
3) Write a program in c that does what you want.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2004 07:50 AM
07-26-2004 07:50 AM
Re: killing sockets in red hat linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2004 02:46 PM
07-26-2004 02:46 PM
Re: killing sockets in red hat linux
CLOSE_WAIT without a process would indeed be a neat trick, and would imply a bug in the transport/kernel. however, unless I read too fast, I think there wasn't mention of the process going away, just lingering and leaving connections in CLOSE_WAIT (bug 1) and then if I extrapolate, leaving things unable to restart (bug 2 - not setting SO_REUSEADDR - but that one is a WAG)