File: ff-netstat

package info (click to toggle)
systraq 20201231-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,172 kB
  • sloc: sh: 821; makefile: 130
file content (12 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

echo netstat --wide --all --numeric --tcp --udp

# make sure all output goes to stdout: netstat sends stuff
# like "warning, got bogus tcp line." to stderr.  we don't want
# to cause an extra email to get sent when called from cron.

# we want both IPs and resolved names.  for now, settle for --numeric.
netstat --wide --all --numeric --tcp --udp 2>&1

echo