2
0
Fork 0
mirror of https://github.com/inspec/inspec synced 2024-12-23 19:43:14 +00:00
inspec/test/unit/mock/cmd/netstat-tulpen
narkaTee 4f005d8510 Fix port ressource ss line parsing ()
Fixes the 'ss -tulpen' command parsing when multiple processes use the
same fd.

Signed-off-by: Jan Ullrich <narkat@gmail.com>
2017-10-17 14:45:37 +02:00

9 lines
954 B
Text

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 21699 1/sshd
tcp6 0 48 2601:1:ad80:1445::54776 2620:0:861:52:208::6667 LISTEN 0 21702 2043/pidgin
tcp6 0 0 :::22 :::* LISTEN 0 21701 1/sshd
udp 0 0 0.0.0.0:111 0.0.0.0:* 0 8689 545/rpcbind
tcp6 0 0 192.168.1.123:8005 :::* LISTEN 0 21703 1234/java
udp6 0 0 fe80::42:acff:fe11::123 :::* 0 54550 3335/ntpd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 14427 579/nginx: worker p