root@ubuntu-base-120403:~# (netstat -ntlp; netstat -nulp; netstat -nlp)|sed 's/\([a-zA-Z][0-9a-zA-Z/\.-][0-9a-zA-Z/\._-]*\)/\[\[\1\]\]/g'|sed 's/$/\n/'

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp 0 0 0.0.0.0:3260 0.0.0.0:* LISTEN 1241/tgtd

tcp 0 0 0.0.0.0:58557 0.0.0.0:* LISTEN 1452/beam.smp

tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1283/mysqld

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1831/apache2

tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 1311/epmd

tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 1460/dnsmasq

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1993/sshd

tcp6 0 0 :::3260 :::* LISTEN 1241/tgtd

tcp6 0 0 :::5672 :::* LISTEN 1452/beam.smp

tcp6 0 0 :::22 :::* LISTEN 1993/sshd

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

udp 0 0 192.168.122.1:53 0.0.0.0:* 1460/dnsmasq

udp 0 0 0.0.0.0:67 0.0.0.0:* 1460/dnsmasq

udp 0 0 0.0.0.0:68 0.0.0.0:* 1962/dhclient3

udp 0 0 0.0.0.0:68 0.0.0.0:* 838/dhclient3

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp 0 0 0.0.0.0:3260 0.0.0.0:* LISTEN 1241/tgtd

tcp 0 0 0.0.0.0:58557 0.0.0.0:* LISTEN 1452/beam.smp

tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1283/mysqld

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1831/apache2

tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 1311/epmd

tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 1460/dnsmasq

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1993/sshd

tcp6 0 0 :::3260 :::* LISTEN 1241/tgtd

tcp6 0 0 :::5672 :::* LISTEN 1452/beam.smp

tcp6 0 0 :::22 :::* LISTEN 1993/sshd

udp 0 0 192.168.122.1:53 0.0.0.0:* 1460/dnsmasq

udp 0 0 0.0.0.0:67 0.0.0.0:* 1460/dnsmasq

udp 0 0 0.0.0.0:68 0.0.0.0:* 1962/dhclient3

udp 0 0 0.0.0.0:68 0.0.0.0:* 838/dhclient3

Active UNIX domain sockets (only servers)

Proto RefCnt Flags Type State I-Node PID/Program name Path

unix 2 [ ACC ] STREAM LISTENING 9645 866/iscsid @ISCSIADM_ABSTRACT_NAMESPACE

unix 2 [ ACC ] STREAM LISTENING 11523 1831/apache2 /var/run/apache2.1831.0.1.sock

unix 2 [ ACC ] STREAM LISTENING 13329 1832/apache2 /var/run/apache2/cgisock.1831

unix 2 [ ACC ] STREAM LISTENING 9780 1229/acpid /var/run/acpid.socket

unix 2 [ ACC ] STREAM LISTENING 145 1/init @/com/ubuntu/upstart

unix 2 [ ACC ] STREAM LISTENING 9787 1241/tgtd /var/run/tgtd.ipc_abstract_namespace.0

unix 2 [ ACC ] STREAM LISTENING 9814 1244/gpm /dev/gpmctl

unix 2 [ ACC ] SEQPACKET LISTENING 8533 381/udevd /run/udev/control

unix 2 [ ACC ] STREAM LISTENING 10376 1283/mysqld /var/run/mysqld/mysqld.sock

unix 2 [ ACC ] STREAM LISTENING 941 1323/libvirtd /var/run/libvirt/libvirt-sock

unix 2 [ ACC ] STREAM LISTENING 943 1323/libvirtd /var/run/libvirt/libvirt-sock-ro

unix 2 [ ACC ] STREAM LISTENING 461 932/dbus-daemon /var/run/dbus/system_bus_socket

root@ubuntu-base-120403:~#

Topic revision: r1 - 2013.11.08 - PaulReiber
 
Copyright © is by author. All material on this collaboration platform is the property of its contributing author.