Installation guide
C H A P T E R 1 2 VMware ESX Server Resource Management
431
This attaches a traffic shaper with average bandwidth of 1Mbps, peak bandwidth of
2Mbps and maximum burst size of 160Kb.
To find the number of the attached nfshaper instance, query the network filtering
status, which contains a list of all filters attached to virtual machines:
cat /proc/vmware/filters/status
Suppose the reported status information indicates that the filter attached to virtual
machine 104 is nfshaper.2.104. The procfs node for this filter can be used to
obtain status information:
cat /proc/vmware/filters/xmit/nfshaper.2.104
The same procfs node can also be used to issue commands supported by the
nfshaper class. For example, you can dynamically adjust the bandwidth limits by
issuing a config command:
echo "config 128k 256k 20k" > /proc/vmware/filters/xmit/
nfshaper.2.104
When a virtual machine is terminated, all attached network filters are automatically
removed and destroyed. To manually remove a shaper instance you can issue an
xmitpop command as described in Managing Network Bandwidth from the Service
Console on page 429. Note that root privileges are required to detach a filter.
echo "104" > /proc/vmware/filters/xmitpop