col_1: (10.131.60.48.55880) The IP address of the local computer and the port number being used for this particular connection appear in the Local Address column.
col_2: (10.136.14.125.23) The IP address of remote computer and the port number being used for this particular connection. col_3: (17520) please explain col_4: (0 49680) please explain col_5: (52 ESTABLISHED) what is "52" here?
Code:
bash-2.05$ netstat -an|grep 10.136.14.125
col_1 col_2 col_3 col_4 col_5
10.131.60.48.55880 10.136.14.125.23 17520 0 49680 0 ESTABLISHED
10.131.60.48.56638 10.136.14.125.23 17520 0 49680 3 ESTABLISHED
10.131.60.48.56749 10.136.14.125.23 17520 0 49680 0 ESTABLISHED
10.131.60.48.56891 10.136.14.125.23 17520 0 49680 0 ESTABLISHED
10.131.60.48.57239 10.136.14.125.23 17520 0 49680 0 ESTABLISHED
10.131.60.48.57836 10.136.14.125.23 17520 0 49680 3 ESTABLISHED
10.131.60.48.58155 10.136.14.125.23 17520 0 49680 52 ESTABLISHED
10.131.60.48.58314 10.136.14.125.23 17520 0 49680 3 ESTABLISHED
best regards,
purple
Last edited by thepurple; 01-12-2009 at 03:25 AM..
Hi,
Does anyone know why I get a different output when using "netstat -a" or "netstat -an" ??
# netstat -a | grep ts15r135
tcp 0 0 nbsol152.62736 ts15r135.23211 ESTABLISHED
# netstat -an | grep 172.23.160.78
tcp 0 0 135.246.39.152.51954 ... (4 Replies)
hi all,
when I run-
wcars1j5#netstat -an | grep 8090
127.0.0.1.8090 *.* 0 0 49152 0 LISTEN
wcars1j5#
1. does this mean that no one is connected to this port?
Regards,
akash (1 Reply)
I can't tell what the output of the netstat command means. Is there anywhere that has this information? I tried the man pages, but they weren't helpful. (3 Replies)
I have a TCPIP server application (a Vendor package) which by default allows 10 connections. It provides a parameter to allow us to increase the maximum allowable connections in case it is needed. Intermittently this application is failing with maximum number of connections reached even when there... (1 Reply)
Hi,
I'm trying to figure out how much traffic has been generated and received from netstat -s output (using Linux). I can see the output shows packet counts and Octet values, how would I correctly calculate how much traffic in and how much out?
My output below:
Ip:
88847576 total... (1 Reply)
Hi,
I have old SCO O/S. System keeps crashing. I made lot of changes to kernel but so for nothing helped. I wrote a script which takes netstat -an output every one minute. I saw some thing right before the system crashed. Not sure if this means anything..
uname -a
SCO_SV djx2 3.2... (2 Replies)
Hi Team,
Below is the output of netstat -an | grep 1533
tcp 0 0 17.18.18.12:583 10.3.2.0:1533 ESTABLISHED
tcp 0 0 17.18.18.12:370 10.3.2.0:1533 ESTABLISHED
Below is the o/p of netstat -a | grep server_name
tcp 0 ... (4 Replies)
Hi All,
I am trying to collect the listen ports info from netstat command in centos 7
From that info i am trying to collect all the foreign address IP for those ports.
I am using below script to do the same.
netstat -an |grep -w "LISTEN" |grep -v "127.0.0.1" |awk '{print $4}' >... (3 Replies)
Discussion started by: sravani25
3 Replies
LEARN ABOUT FREEBSD
tcpdrop
TCPDROP(8) BSD System Manager's Manual TCPDROP(8)NAME
tcpdrop -- drop TCP connections
SYNOPSIS
tcpdrop local-address local-port foreign-address foreign-port
tcpdrop [-l] -a
DESCRIPTION
The tcpdrop command may be used to drop TCP connections from the command line.
If -a is specified then tcpdrop will attempt to drop all active connections. The -l flag may be given to list the tcpdrop invocation to drop
all active connections one at a time.
If -a is not specified then only the connection between the given local address local-address, port local-port, and the foreign address
foreign-address, port foreign-port, will be dropped.
Addresses and ports may be specified by name or numeric value. Both IPv4 and IPv6 address formats are supported.
The addresses and ports may be separated by periods or colons instead of spaces.
EXIT STATUS
The tcpdrop utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
If a connection to httpd(8) is causing congestion on a network link, one can drop the TCP session in charge:
# sockstat -c | grep httpd
www httpd 16525 3 tcp4
192.168.5.41:80 192.168.5.1:26747
The following command will drop the connection:
# tcpdrop 192.168.5.41 80 192.168.5.1 26747
The following command will drop all connections but those to or from port 22, the port used by sshd(8):
# tcpdrop -l -a | grep -vw 22 | sh
SEE ALSO netstat(1), sockstat(1)AUTHORS
Markus Friedl <markus@openbsd.org>
Juli Mallett <jmallett@FreeBSD.org>
BSD January 30, 2013 BSD