From owner-freebsd-questions@FreeBSD.ORG Fri Sep 30 20:05:58 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10D3E16A41F for ; Fri, 30 Sep 2005 20:05:58 +0000 (GMT) (envelope-from willmaier@ml1.net) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id A15F643D48 for ; Fri, 30 Sep 2005 20:05:57 +0000 (GMT) (envelope-from willmaier@ml1.net) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 058E1CD11A1 for ; Fri, 30 Sep 2005 16:05:55 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Fri, 30 Sep 2005 16:05:55 -0400 X-Sasl-enc: iR2idWYiDo0YPdOEI5p9jCecbFDAmCl36sPWKXJw4/g1 1128110752 Received: from merkur (host-66-202-74-42.choiceone.net [66.202.74.42]) by frontend2.messagingengine.com (Postfix) with ESMTP id 758EB57030B for ; Fri, 30 Sep 2005 16:05:51 -0400 (EDT) Received: by merkur (nbSMTP-1.00) for uid 1000 willmaier@ml1.net; Fri, 30 Sep 2005 15:05:58 -0500 (CDT) Date: Fri, 30 Sep 2005 15:05:55 -0500 From: Will Maier To: freebsd-questions@freebsd.org Message-ID: <20050930200555.GK7691@localdomain> Mail-Followup-To: freebsd-questions@freebsd.org References: <47f8d9310509300915k8f9da96hb91b195dffa2b4bc@mail.gmail.com> <47f8d9310509300935l6cf2aeddj40541237507c2db6@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47f8d9310509300935l6cf2aeddj40541237507c2db6@mail.gmail.com> User-Agent: Mutt/1.5.6+20040907i Subject: Re: FBSD 5.4 - netstat -p tcp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2005 20:05:58 -0000 > > On 9/30/05, Brian Henning wrote: > > > Using FBSD 5.4 and trying to see if there are open ports on my > > > machine. when i use netstat -p tcp, it yields no results, but i know > > > for a fact that i am running an sshd server on the machine because i > > > am logged in remotely with putty. > On 9/30/05, Andrew P. wrote: > > Try the -a switch: > > # netstat -ap tcp On Fri, Sep 30, 2005 at 11:35:08AM -0500, Brian Henning wrote: > i have tried that with no luck :( (Please don't top post -- I've reordered the quoted sections above) lsof often works for me where sockstat (sockstat -4) or netstat haven't: # lsof -ni -- o--------------------------{ Will Maier }--------------------------o | jabber:..wcmaier@jabber.ccc.de | email:..........wcmaier@ml1.net | | \.........wcmaier@cae.wisc.edu | \..........wcmaier@cae.wisc.edu | *------------------[ BSD Unix: Live Free or Die ]------------------*