Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: April 2019
 
 

How to Obtain Network Bandwidth Utilization for Exclusive-IP Zones

The zonestat command used with the –r option and network resource type shows the per-zone utilization of each network device.

Use this procedure to view how much datalink bandwidth in the form of VNICs is used by each zone. For example, zoneB displayed under net0 indicates that this zone consumes resources of net0 in the form of VNICs. The specific VNICs can be displayed by also adding the –x option.

  1. Assume the root role.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Use the network resource type to the zonestat command with the –r option to display the utilization one time.
    # zonestat -r network 1 1
    Collecting data for first interval...
    Interval: 1, Duration: 0:00:01
    
    	NETWORK-DEVICE                  SPEED        STATE        TYPE
    	aggr1                        2000mbps           up        AGGR
                        ZONE TOBYTE  MAXBW %MAXBW PRBYTE %PRBYTE POBYTE %POBYTE
                      global  1196K      -      -   710K   0.28%   438K   0.18%
    
    	net0                      1000mbps           up        PHYS
                        ZONE TOBYTE  MAXBW %MAXBW PRBYTE %PRBYTE POBYTE %POBYTE
                     [total]  7672K      -      -  6112K   4.89%  1756K   1.40%
                      global  5344K  100m*  42.6%  2414K   1.93%  1616K   1.40%
                       zoneB   992K   100m  15.8%  1336K   0.76%   140K   0.13%
                       zoneA  1336K    50m  10.6%   950K   1.07%      0   0.00%
    
    	net1                      1000mbps           up        PHYS
                        ZONE TOBYTE  MAXBW %MAXBW PRBYTE %PRBYTE POBYTE %POBYTE
                      global   126M      -      -    63M   6.30%    63M   6.30%
    
    	etherstub1                        n/a          n/a   ETHERSTUB
                        ZONE TOBYTE  MAXBW %MAXBW PRBYTE %PRBYTE POBYTE %POBYTE
                     [total]  3920K      -      -      0       -      0       -
                      global  1960K  100M*  1.96%      0       -      0       -
                       zoneA  1960K    50M  3.92%      0       -      0       -