-1

I'm trying to locate problem at my site and really slow loading and response Command

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

is give me overall connections per IP address

But check the result... what is last one 3270 without IP?

Sreen https://i.stack.imgur.com/dNseT.png

Milos
  • 1
  • 1

1 Answers1

0

That figure is a total. It arises from your uniq -c command.

Your command produces a large number of blank lines, due to the way you are using cut, and uniq is counting the number of blank lines it finds.

It isn't the number of connections from a particular (unknown) ip address.

Garreth McDaid
  • 3,449
  • 1
  • 27
  • 42