Specifications
Administration Guide
370 VMware, Inc.
second,!maximum!burst!size!of!<burstSize>!bytes,!and!an!optional!peak!bandwidth!
enforcement!period!<periodPeak>!in!milliseconds.!Each!parameter!can!optionally!use!
the!suffix!k!(1k!=!1024)!or!m!(1m!=!1024k).!
maxq <nPackets>
Dynamically!set!the!maximum!number!of!queued!packets!to!<nPackets>.!
reset
Dynamically!reset!shaper!statistics.!
Examples
Suppose!you!want!to!attach!a!traffic!shaper!to!limit!the!transmit!bandwidth!of!the!
virtual!machine!with!ID!104.!To!create!and!attach!a!new!shaper!instance,!issue!an!
xmitpush!command!as!described!in“Managing!Network!Bandwidth!from!the!Service!
Console”!on!page 368.!You!need!root!privileges!are!required!to!
attach!a!filter.!
echo "104 nfshaper 1m 2m 160k" > /proc/vmware/filters/xmitpush
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.!Use!the!procfs!node!for!this!filter!to!obtain!status!
information:!
cat /proc/vmware/filters/xmit/nfshaper.2.104
You!can!use!the!same!procfs!node!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!netw ork!filters!are!removed!and!
destroyed.!To!manually!remove!a!shaper!instance,!issue!an!xmitpop!command!as!
described!in!“Managing!Network!Bandwidth!from!the!Service!Console”!on!page 368.!
You!need!root!privileges!to!detach!a!filter.!
echo "104" > /proc/vmware/filters/xmitpop