===== COMMAND =====: for ns in $(ip netns list); do echo Namespace: ${ns}; ip netns exec ${ns} netstat -anp; done
===== RETURN CODE =====: 0
===== STDOUT =====:
[10.20.0.4] out: Namespace: qrouter-d5be3d28-b48d-4814-aa97-f4d8ec697679
[10.20.0.4] out: Active Internet connections (servers and established)
[10.20.0.4] out: Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
[10.20.0.4] out: tcp        0      0 0.0.0.0:8775            0.0.0.0:*               LISTEN      1532/python2.7  
[10.20.0.4] out: Active UNIX domain sockets (servers and established)
[10.20.0.4] out: Proto RefCnt Flags       Type       State         I-Node   PID/Program name    Path
[10.20.0.4] out: Namespace: qdhcp-57509e19-4ec6-4a9e-aa84-200786435080
[10.20.0.4] out: Active Internet connections (servers and established)
[10.20.0.4] out: Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
[10.20.0.4] out: tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      29388/python2.7 
[10.20.0.4] out: tcp        0      0 192.168.111.2:53        0.0.0.0:*               LISTEN      29379/dnsmasq   
[10.20.0.4] out: tcp        0      0 169.254.169.254:53      0.0.0.0:*               LISTEN      29379/dnsmasq   
[10.20.0.4] out: tcp6       0      0 fe80::f816:3eff:fee4:53 :::*                    LISTEN      29379/dnsmasq   
[10.20.0.4] out: udp        0      0 192.168.111.2:53        0.0.0.0:*                           29379/dnsmasq   
[10.20.0.4] out: udp        0      0 169.254.169.254:53      0.0.0.0:*                           29379/dnsmasq   
[10.20.0.4] out: udp        0      0 0.0.0.0:67              0.0.0.0:*                           29379/dnsmasq   
[10.20.0.4] out: udp6       0      0 fe80::f816:3eff:fee4:53 :::*                                29379/dnsmasq   
[10.20.0.4] out: Active UNIX domain sockets (servers and established)
[10.20.0.4] out: Proto RefCnt Flags       Type       State         I-Node   PID/Program name    Path
[10.20.0.4] out: unix  2      [ ]         DGRAM                    877724   29379/dnsmasq       
[10.20.0.4] out: Namespace: haproxy
[10.20.0.4] out: Active Internet connections (servers and established)
[10.20.0.4] out: Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
[10.20.0.4] out: tcp        0      0 172.30.10.8:6080        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:8000        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:8000        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:9696        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:8003        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:8003        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:8004        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:8004        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:8774        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:8774        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:9191        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:8775        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:8776        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:8776        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:5000        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:5000        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:8777        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:8777        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:8042        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:8042        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:3306        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:9292        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:9292        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:8080        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:8080        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:80          0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:10000       0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:8181        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:8181        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:9494        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:9494        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:8282        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:8282        0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 192.168.1.7:35357       0.0.0.0:*               LISTEN      4950/haproxy    
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34051       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34056       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34176       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34246       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 240.0.0.2:55400         192.168.1.3:9696        TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34248       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34178       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34123       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34139       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34234       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34117       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34194       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 240.0.0.2:54373         192.168.1.2:9696        TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34153       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34212       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34027       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34159       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34043       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34229       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.8:9696        172.30.10.4:34210       TIME_WAIT   -               
[10.20.0.4] out: Active UNIX domain sockets (servers and established)
[10.20.0.4] out: Proto RefCnt Flags       Type       State         I-Node   PID/Program name    Path
[10.20.0.4] out: unix  2      [ ACC ]     STREAM     LISTENING     146770   4950/haproxy        /var/lib/haproxy/stats.4944.tmp
[10.20.0.4] out: unix  2      [ ]         DGRAM                    146772   4950/haproxy        
[10.20.0.4] out: Namespace: vrouter
[10.20.0.4] out: Active Internet connections (servers and established)
[10.20.0.4] out: Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
[10.20.0.4] out: tcp        0      0 192.168.1.6:53          0.0.0.0:*               LISTEN      18669/dnsmasq   
[10.20.0.4] out: udp        0      0 0.0.0.0:48399           0.0.0.0:*                           22201/conntrackd
[10.20.0.4] out: udp        0      0 192.168.1.6:53          0.0.0.0:*                           18669/dnsmasq   
[10.20.0.4] out: udp        0      0 240.1.0.1:123           0.0.0.0:*                           9962/ntpd       
[10.20.0.4] out: udp        0      0 240.0.0.6:123           0.0.0.0:*                           9962/ntpd       
[10.20.0.4] out: udp        0      0 127.0.0.1:123           0.0.0.0:*                           9962/ntpd       
[10.20.0.4] out: udp        0      0 0.0.0.0:123             0.0.0.0:*                           9962/ntpd       
[10.20.0.4] out: udp        0      0 0.0.0.0:3780            0.0.0.0:*                           22201/conntrackd
[10.20.0.4] out: Active UNIX domain sockets (servers and established)
[10.20.0.4] out: Proto RefCnt Flags       Type       State         I-Node   PID/Program name    Path
[10.20.0.4] out: unix  2      [ ACC ]     STREAM     LISTENING     184419   22201/conntrackd    /var/run/conntrackd.ctl
[10.20.0.4] out: unix  2      [ ]         DGRAM                    781271   18669/dnsmasq       
[10.20.0.4] out: 

===== STDERR =====:
