===== 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-18419fc2-9b11-4672-a853-5c48fc6b0d34
[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      25182/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: 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.3:6080        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8000        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:8000        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:9696        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8003        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:8003        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8004        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:8004        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8774        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:8774        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:9191        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8775        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8776        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:8776        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:5000        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:5000        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8777        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:8777        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8042        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:8042        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:3306        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:9292        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:9292        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8080        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:8080        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:80          0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:10000       0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8181        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:8181        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:9494        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:9494        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8889        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:8889        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:8282        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:8282        0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 192.168.1.2:35357       0.0.0.0:*               LISTEN      18554/haproxy   
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35893       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35963       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35959       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35787       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 240.0.0.2:33966         192.168.1.5:9696        TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35871       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35823       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35718       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35782       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35847       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35844       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35966       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35768       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35818       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35792       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35922       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35917       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35944       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35940       TIME_WAIT   -               
[10.20.0.4] out: tcp        0      0 172.30.10.3:9696        172.30.10.8:35835       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     226480   18554/haproxy       /var/lib/haproxy/stats.18545.tmp
[10.20.0.4] out: unix  2      [ ]         DGRAM                    226482   18554/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.1:53          0.0.0.0:*               LISTEN      10239/dnsmasq   
[10.20.0.4] out: udp        0      0 0.0.0.0:60715           0.0.0.0:*                           32531/conntrackd
[10.20.0.4] out: udp        0      0 192.168.1.1:53          0.0.0.0:*                           10239/dnsmasq   
[10.20.0.4] out: udp        0      0 240.1.0.3:123           0.0.0.0:*                           32314/ntpd      
[10.20.0.4] out: udp        0      0 240.0.0.6:123           0.0.0.0:*                           32314/ntpd      
[10.20.0.4] out: udp        0      0 127.0.0.1:123           0.0.0.0:*                           32314/ntpd      
[10.20.0.4] out: udp        0      0 0.0.0.0:123             0.0.0.0:*                           32314/ntpd      
[10.20.0.4] out: udp        0      0 0.0.0.0:3780            0.0.0.0:*                           32531/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     180079   32531/conntrackd    /var/run/conntrackd.ctl
[10.20.0.4] out: unix  2      [ ]         DGRAM                    779522   10239/dnsmasq       
[10.20.0.4] out: 

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