Public bug reported:

netstat -np --tcp --udp
gives (for example)

Proto Recv-Q Send-Q Local Address           Foreign Address         State       
PID/Program name   
tcp        0      0 192.168.2.170:44830     208.76.68.128:80        
ESTABLISHED6558/firefox-bin    
tcp        0      0 192.168.2.170:33729     66.102.9.99:80          
ESTABLISHED6558/firefox-bin 

The "State" and "PID/Program name" is not separated.

So

netstat -np --tcp --udp | awk '{print $6}'
gives

ESTABLISHED6558/firefox-bin
ESTABLISHED6558/firefox-bin

I must use
netstat -np --tcp --udp | sed 's/\(ESTABLISHED\|TIME_WAIT\|LISTENING\)/\1 /'
to get correct output

** Affects: Ubuntu
     Importance: Undecided
         Status: New

-- 
netstat output malformed
https://bugs.launchpad.net/bugs/127575
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to