#!/bin/sh


echo "Global zone ipfstat -io and ipnat -l"
ipfstat -io
ipnat -l

for zname in `zoneadm list | grep -v global`; do
    hname=`vmadm list | grep $zname | awk '{print $5}'`
    echo "Zone: $zname  Name: $hname"
    echo "Global-zone-controlled ipfstat -io and ipnat -l"
    ipfstat -io -G $zname
    ipnat -l -G $zname
    echo "In-zone-controlled ipfstat -io and ipnat -l"
    ipfstat -io -z $zname
    ipnat -l -z $zname
done

echo ""
