- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HTTP port listener?
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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-12-2002 01:04 PM
06-12-2002 01:04 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 01:19 PM
06-12-2002 01:19 PM
SolutionProbably your best bet is to use 'lsof':
# lsof -i tcp:80
# # lsof -p
You can get a version here:
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
If you need to compile a 64-bit version, I suggest this site:
ftp://coast.cs.purdue.edu/pub/tools/unix/sysutils/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 01:31 PM
06-12-2002 01:31 PM
Re: HTTP port listener?
You could do the following
I=1
while (( I < 100 ))
do
netstat -an | grep -i listen | grep -e "port#" -e "port#" # include all relevant port #s
sleep 5 # or whatever wait value you need
(( I = I +1 ))
done
This will give you a hundred iterations & look only for the LISTEN on the port #s you designate. If the ports are in a range, you could use the range in the 2nd grep...
OR.....write the following script
I=1
while (( I < 10000 ))
do netstat -an | grep -i listen | grep -e "port#" -e "port#" > /path/to/listen.log
sleep 1
(( I = I + 1 ))
done
Then run the script in the background & do
tail -f /path/to/listen.log
to watch it real-time.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 03:35 PM
06-12-2002 03:35 PM
Re: HTTP port listener?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2002 03:39 PM
06-12-2002 03:39 PM
Re: HTTP port listener?
Don't monitor without it :-)
lsof is available on many platforms and is blessed by HP.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 08:23 AM
06-13-2002 08:23 AM
Re: HTTP port listener?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 08:27 AM
06-13-2002 08:27 AM
Re: HTTP port listener?
you can download lsof from the link provided by James,
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 08:30 AM
06-13-2002 08:30 AM
Re: HTTP port listener?
If you follow the link(s) I provided in my original reply, above, you can download a pre-compiled version of 'lsof':
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
...or for a more up-to-date version:
ftp://coast.cs.purdue.edu/pub/tools/unix/sysutils/
The ports from the hpux porting center install in /opt/ via 'swinstall'.
If you need a 64-bit version, use the purdue site. A makefile allows you to compile your own version and put it in the directory of your choice (albeit not by 'swinstall').
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 08:35 AM
06-13-2002 08:35 AM