Configuring statistics collection for subinterfaces
To enable VOQ statistics collection on a subinterface, use the voq-statistics command. When voq-statistics is set to true, qos_mgr attempts to allocate VOQ statistics collection resources to that subinterface from the global pool.
If voq-statistics is explicitly set to false, qos_mgr deallocates any assigned resources for that subinterface and returns the resources to the global pool.
Configure VOQ statistics collection for a subinterface
--{ candidate shared default }--[ ]--
# info with-context qos interfaces interface ethernet-1/2.1 voq-statistics
qos {
interfaces {
interface ethernet-1/2.1 {
voq-statistics true
}
}
}
Display VOQ statistics allocation status for an interface
To confirm whether VOQ statistics collection resources are allocated to an interface, use the voq-statistics-allocation-status state command. If the allocation of VOQ statistics to the interface is successful, the status is shown as complete. If the allocation is not successful (as a result of resource exhaustion), the status is shown as none.
--{ candidate shared default }--[ ]--
# info with-context from state qos interfaces interface ethernet-1/2 voq-statistics-allocation-status
qos {
interfaces {
interface ethernet-1/2 {
voq-statistics-allocation-status complete
}
}
}
Display VOQ statistics per subinterface
To display VOQ statistics per subinterface, use the same command as for interface VOQ statistics: info from state qos interfaces interface output queues queue queue-statistics aggregate-statistics virtual-output-queue.
--{ candidate shared default }--[ ]--
# info from state qos interfaces interface ethernet-1/1.1 output queues queue unicast-0 queue-statistics aggregate-statistics virtual-output-queue 1
queue unicast-0 {
queue-statistics {
aggregate-statistics {
virtual-output-queue 1 {
queue-depth {
high-threshold-bytes 0
}
low-drop-probability {
transmitted-packets 188337
transmitted-octets 263671800
dropped-packets 218160358
dropped-octets 305424501200
}
medium-drop-probability {
transmitted-packets 0
transmitted-octets 0
dropped-packets 0
dropped-octets 0
}
high-drop-probability {
transmitted-packets 0
transmitted-octets 0
dropped-packets 0
dropped-octets 0
}
}
}
}
}