Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Fri Dec 02, 2022 12:35 pm


News News of System administration

Site map of System administration » Forum : System administration

System administration, processes administration, jobs, cron, resources, limits, shells, ssh, telnet.

 [ Total topics 34 Go to page 1, 2, 3, 4

Message
 Post subject: How to check if ssh/http daemon listens on TCP port in FreeBSD using sockstat & lsof & netstat util
PostPosted: Mon Oct 17, 2011 9:27 am 
How to check if ssh/http daemon listens on TCP port in FreeBSD using sockstat & lsof & netstat utilities

As compared to Linux, FreeBSD "netstat" doesn't show the process ID, but instead, the "sockstat" utility does.

Checking SSH and Apache TCP ports in Linux and FreeBSD using lsof utility:
# lsof -Pni :22 -i :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 17543 www 3u IPv6 0xc35d3cb0 0t0 TCP *:80 (LISTEN)
sshd ...

Read more : How to check if ssh/http daemon listens on TCP port in FreeBSD using sockstat & lsof & netstat util | Views : 3272 | Replies : 0

Top
 Post subject: How to check if ssh/http daemon listens on TCP port in Linux using lsof & netstat
PostPosted: Mon Oct 17, 2011 9:17 am 
To show listening sockets in Unix, the "netstat" utility can be used with different arguments, depending on the specific OS.

Man netstat:
Quote:
--numeric , -n
Show numerical addresses instead of trying to determine symbolic host, port or user names.
-e, --extend
Display additional information. Use this option twice for maximum detail.

-p, --program
Show the PID and name of the program to which each socket belongs.

-l, --listening
Show only listening sockets. ...

Read more : How to check if ssh/http daemon listens on TCP port in Linux using lsof & netstat | Views : 13037 | Replies : 0

Top
 Post subject: FreeBSD - fuser checking processes that are using a filesystem
PostPosted: Thu Mar 18, 2010 6:58 am 
fuser -- list IDs of all processes that have one or more files open

man fuser:
Quote:
DESCRIPTION
The fuser utility shall write to stdout the process IDs of processes that
have one or more named files open. For block and character special
devices, all processes using files on that device are listed. A file is
considered open by a process if it was explicitly opened, is the working
directory, root directory, jail root directory, ...

Read more : FreeBSD - fuser checking processes that are using a filesystem | Views : 3543 | Replies : 2

Top
 Post subject: Windows XP Microphone volume drops unexpectedly / auto adjusts to low value
PostPosted: Thu Feb 18, 2010 4:24 pm 
Windows XP Microphone volume drops unexpectedly / auto adjusts to low value

On windows XP I have just met a very strange behavior: The microphone volume drops unexpectedly to a very low value making online conversations impossible. My guess was that Skype was to blame here and, after searching the web, I found an interesting post which explained how to "clean" skype of this inadequate behavior.

Open Windows Explorer (sounds very bad ...

Read more : Windows XP Microphone volume drops unexpectedly / auto adjusts to low value | Views : 3258 | Replies : 5

Top
 [ Total topics 34 Go to page 1, 2, 3, 4


Last 10 active topics


Security, NAT, Policies, Screen, Flow, TCP

No new posts ROUTING INSTANCE is not working on firewall srx210
View the latest post
No new posts NAT's CONFIGURATION IS NOT WORKING srx210
View the latest post

Routing and dynamic routing protocols

No new posts Junos "show bgp summary" shows different outputs for neighbors
View the latest post
No new posts BGP question
View the latest post

Memory, Storage, Backup and Filesystems

No new posts Restoring data from a Seagate 2BAY NAS with lost configuration
View the latest post

VPS Hosting & Security

No new posts Dedicated server on the VPS price.
View the latest post

BSD Operating Systems

No new posts BGP question
View the latest post

TCP/IP Networking

No new posts IP Subnetting Raneg Assigning...?
View the latest post
No new posts TCP receive window size doesnt change
View the latest post

Migrating the world to IPv6

No new posts Junos IPv6 static route with local-link next-hop
View the latest post

Login

Username:   Password:   Log me on automatically each visit  

Statistics

Statistics

Total posts 617 | Total topics 987 | Total members 1192



cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO