- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "lsof -i" and "netstat -an"
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
01-08-2003 11:31 PM
01-08-2003 11:31 PM
"lsof -i" and "netstat -an"
Correct me if I'm wrong that
"lsof -i tcp:49153" is the same as
"netstat -an | grep 49153" ?
If so, why there was no output when I did
"lsof -i tcp:49153"
but when I did "netstat -an | grep 49153" I got the following:
tcp 0 0 *.49153 *.* LISTEN
Appreciate any advice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 12:01 AM
01-09-2003 12:01 AM
Re: "lsof -i" and "netstat -an"
You are right. On my system :
# netstat -an | grep 49152
tcp 0 0 IP.49159 IP.49152 ESTABLISHED
tcp 0 0 *.49152 *.* LISTEN
tcp 0 0 IP.49152 IP.49159 ESTABLISHED
# lsof -i tcp:49152
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rpc.statd 591 root 3u inet 72,0xb 0t0 TCP *:49152 (LISTEN)
rpc.statd 591 root 7u inet 72,0xb 0t0 TCP host:49159->host:49152 (ESTABLISHED)
Have you a good lsof version ?
Regards,
Jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 12:20 AM
01-09-2003 12:20 AM
Re: "lsof -i" and "netstat -an"
http://www.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.11/
32 bit version from here:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.64/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 01:12 AM
01-09-2003 01:12 AM
Re: "lsof -i" and "netstat -an"
I removed the current version of lsof and downloaded and installed the lsof-4.64 but the result still the same.
Anyway, how do I know what application is using the port and how do stop it from listening ? My auditor is chasing me.
Thanks in advance,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 01:22 AM
01-09-2003 01:22 AM
Re: "lsof -i" and "netstat -an"
Jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 01:27 AM
01-09-2003 01:27 AM
Re: "lsof -i" and "netstat -an"
Sorry to say the prompt just come back without any result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 01:30 AM
01-09-2003 01:30 AM
Re: "lsof -i" and "netstat -an"
Regards,
Jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 07:44 AM
01-09-2003 07:44 AM
Re: "lsof -i" and "netstat -an"
ASAS Server?
http://www.arpage.ch/arpage/asas3/s-unxinst.html
BIND-9?
http://mail-index.netbsd.org/tech-security/2002/02/22/0002.html
Radiator?
http://www.open.com.au/archives/radiator/2001-07/msg00010.html
NAT?
http://www.mail-archive.com/isp-linux@isp-linux.com/msg00553.html
/etc/ipnat?
http://www.jp.daemonnews.org/200109/daemonnews200109.pdf
giotic?
http://www-cad.eecs.berkeley.edu/~fresco/giotto/download/distribution/INSTALL
Mservers?
http://www.cwi.nl/~windhouw/public/afstuderen/programma/tcpip.body.html
Secure Connectionless WAP Browser Proxy Server?
http://www.4k-associates.com/4K-Associates/IEEE-L7-WAP-BIG.html
snmps?
http://www.mail-archive.com/intermapper-talk@list.dartware.com/msg00162.html
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2003 11:03 AM
01-10-2003 11:03 AM
Re: "lsof -i" and "netstat -an"
i would make sure that you compile lsof on the system on which you wish to use it to make sure that the binary you use matches the kernel you are running (btw, you did boot off /stand/vmunix yes?)
also, try lsof against some other port numbers and see if it "works" there.