- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: netstat and port question
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
06-08-2005 05:06 AM
06-08-2005 05:06 AM
Is there anyone who can respond to my 2 outstanding questions :
- in the netstat command without any arguments, you find in the type column stream or datagram. What does stream exactly mean ?
- When you need to add your own applications in the /etc/services port list, is there a quick way to search wheather there are already some particular processes running using a portnr ?
thks for the help
Carine
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 05:17 AM
06-08-2005 05:17 AM
Solutionman UDP
ports: http://www.iana.org/assignments/port-numbers
use lsof to find active processes: http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.74/
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 05:30 AM
06-08-2005 05:30 AM
Re: netstat and port question
I know its possible/probable you wanted a more technical explanation (which I don't have), but this is my impression of the difference.
Second question:
If you're asking whether or not a port is currently in use - netstat -an | grep [port_number]. Or, if it is already listed in /etc/services use - netstat -an | grep [service].
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 05:39 AM
06-08-2005 05:39 AM
Re: netstat and port question
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 06:29 PM
06-08-2005 06:29 PM
Re: netstat and port question
John - I was not looking for the used portnr, but the processes.
I already heard about lsof, but I was wondering if you could not find it in standard HP-UX.
thks to both of you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 07:22 PM
06-08-2005 07:22 PM
Re: netstat and port question
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 01:40 AM
06-09-2005 01:40 AM
Re: netstat and port question
e.g : lsof -i tcp:25 , will give u the PID of sendmail if a sendmail daemon is running.
lsof -i udp:53 will give u o/p as named and its PID if a dns server is running on the server