Command Line Reference
QoS Configuration
Priority Map Configuration
9 min
show qos map {all|dot1p to tc|dscp to tc|tc to queue} show qos map {all|dot1p to tc|dscp to tc|tc to queue} \[command] show qos map {all|dot1p to tc|dscp to tc|tc to queue} \[purpose] display qos map configuration information \[view] system view \[parameter] true 137,524#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[use cases] sonic(config)# show qos map all { "dot1p to tc map" { "dot1x tc" { "0" "0", "1" "1", "2" "2", "3" "3", "4" "4", "5" "5", "6" "6", "7" "7" } }, "dscp to tc map" {}, "map pfc priority to queue" {}, "pfc priority to priority group map" {}, "tc to priority group map" {}, "tc to queue map" {} } show interface qos map bind show interface qos map bind \[command] show interface qos map bind \[purpose] show all qos map and interface binding configurations \[view] system view \[use cases] sonic# show interface qos map bind { "ethernet1" { "dot1p to tc map" "\[dot1p to tc map|1]" } } show queue counters show queue counters \[command] show queue counters \[ interface name ] show queue counters clear \[purpose] view export queue statistics \[view] system view \[use cases] sonic(config)# do show queue counters 1 port txq counter/pkts counter/bytes drop/pkts drop/bytes \ ethernet1 all0 0 0 0 0 ethernet1 all1 0 0 0 0 ethernet1 all2 0 0 0 0 ethernet1 all3 0 0 0 0 ethernet1 all4 0 0 0 0 ethernet1 all5 0 0 0 0 ethernet1 all6 0 0 0 0 ethernet1 all7 0 0 0 0 qos map {dot1p to tc|dscp to tc|tc to queue} qos map {dot1p to tc|dscp to tc|tc to queue} \[command] qos map {dot1p to tc|dscp to tc|tc to queue} profile name pri origin pri mapped \[purpose] add qos mapping table template \[parameter] true 158,503#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[view] system configuration view \[user scenario] if user need to prioritize packets received by a device based on the dot1p/dscp values carried in the packet for qos scheduling, user can configure the mapping of packet priorities to local priorities using the qos map {dot1p to tc|dscp to tc} \<profile name> \<in value> command the qos map tc to queue \<profile name> \<in value> command configures the mapping of local priorities to output queues, allowing you to implement different qos strategies based on different scheduling methods for the output queues \[notes] by default, the local priority is mapped to the queue is true 330,331#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[use cases] sonic(config)# qos map tc to queue queue 0 0 sonic(config)# qos map tc to queue queue 1 1 sonic(config)# qos map tc to queue queue 2 2 sonic(config)# qos map tc to queue queue 3 3 sonic(config)# qos map tc to queue queue 4 4 sonic(config)# qos map tc to queue queue 5 5 sonic(config)# qos map tc to queue queue 6 6 sonic(config)# qos map tc to queue queue 7 7 qos map all bind tc to queue qos map all bind tc to queue \[command] qos map all bind tc to queue profile name \[purpose] all interfaces are bound to qos map \[parameter] true 214,447#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type \[view] system configuration view \[use cases] sonic(config)# qos map all bind tc to queue test qos map bind {dscp to tc|dot1p to tc} qos map bind {dscp to tc|dot1p to tc} \[command] qos map bind {dscp to tc|dot1p to tc} profile name \[purpose] single interface with qos map binding \[parameter] true 201,460#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type \[view] interface view \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# qos map bind dscp to tc ceshi
