- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Port already use
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
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
04-28-2002 05:33 PM
04-28-2002 05:33 PM
Port already use
I just want to know if somehow a tcp port is used by any problem, what command can I use to check it out? netstat? Also any command to terminate the session if I found by suggested command?
Bgds,
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2002 05:57 PM
04-28-2002 05:57 PM
Re: Port already use
netstat | grep
You could also try
grep
If you want to stop the process using the port, you can try a 'kill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2002 05:58 PM
04-28-2002 05:58 PM
Re: Port already use
netstat | grep
You could also try
grep
If you want to stop the process using the port, you can try a 'kill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2002 06:03 PM
04-28-2002 06:03 PM
Re: Port already use
get the free tool "lsof" and then use
lsof -i tcp:1234
or
lsof -i udp:1234
where "1234" would be the port number you are interested in...
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2002 06:32 PM
04-28-2002 06:32 PM
Re: Port already use
Many thx for your advice, btw, Wodisch, where can I get the free tools lsof? Many thx.
Bgds,
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2002 07:52 PM
04-28-2002 07:52 PM
Re: Port already use
You can get lsof from:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.61/
Terminating TCP sockets is not encouraged because it may cause unstability. But, if you really wish to do so, use the instructions at this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x9a3eec08252fd611abd50090277a778c,00.html
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2002 04:47 AM
04-30-2002 04:47 AM
Re: Port already use
A better place to get lsof is: ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/ There are binaries there that will work on both 11.00 and 11.11, 32 and 64 bit.
The binary at the HP-UX Porting and Archive Center is a couple of releases behind and won't work on all architectures.