Track and SLA
18 min
\<font color="#1d50a2">sla\</font> \<font color="#1d50a2">sla view\</font> \<font color="#1d05a2">table 1 sla view\</font> command purpose show sla summary display sla configuration \<font color="#1d50a2">show sla summary\</font> \[command] show sla summary \[purpose] display sla configuration \[view] privileged user view \[use cases] sonic# show sla summary \===================================icmp echo==================================== sla id type dst ip min time avg time max time packt loss \ \==================================user define=================================== sla id type user args customer file path \ \<font color="#1d50a2">sla config\</font> \<font color="#1d05a2">table 2 sla config\</font> command purpose sla sla id icmp echo dst ip create an icmp echo mode sla instance sla sla id user define \[ string ] create a user defined sla instance set src port { ethernet interface name | link aggregation interface name | vlan vlan id } set the source interface for the detection set interval interval set the detection interval set timeout timeout set the timeout of the detection set dst ip dst ip set the destination ip for the detection \<font color="#1d50a2">sla \</font> \[command] sla sla id icmp echo dst ip \[purpose] create an icmp echo mode sla instance \[parameters] parameter description sla id sla id, range from \[1,4294967295] dst ip specify the destination ip for detection, ipv4 or ipv6, in the format of a b c d or a b \[view] global configuration view \[notes] run command no sla sla id to delete sla instance \[use cases] sonic(config)# sla 2 icmp echo 10 0 0 1 sonic(config sla icmp echo)# \<font color="#1d50a2">sla \</font> \[command] sla sla id user define \[ string ] \[purpose] create a user defined sla instance \[parameters] parameter description sla id sla id, range from \[1,4294967295] string specify the path of monitoring file, the default path is /var/run/sla user define/sla user define default \[view] global configuration view \[notes] run command no sla sla id to delete sla instance \[use cases] sonic(config)# sla 2 user define sonic(config sla user define)# \<font color="#1d50a2">set src port {ethernet \</font> \[command] set src port {ethernet interface name |link aggregation interface name | vlan vlan id } \[purpose] set the source interface for the detection \[parameters] parameter description interface name interface name(eg 0/1) vlan id vlan id, the range is \[1,4094] \[view] icmp echo mode sla configuration view \[notes] run command no set src port {ethernet interface name |link aggregation interface name | vlan vlan id } to delete the source interface \[use cases] sonic(config sla icmp echo)# set src port ethernet 0/0 sonic(config sla icmp echo)# \<font color="#1d50a2">set interval \</font> \[command] set interval interval \[purpose] set the detection interval \[parameters] parameter description interval specify the detection interval in seconds, the range is \[1,300] \[view] icmp echo mode sla configuration view \[notes] run command no set interval to delete the detection configuration \[use cases] sonic(config sla icmp echo)# set interval 1 \<font color="#1d50a2">set timeout \</font> \[command] set timeout timeout \[purpose] set the timeout of the detection \[parameters] parameter description timeout specify the timeout in seconds, in the range \[1,300] \[view] icmp echo mode sla configuration view \[notes] run command no set timeout timeout to delete the timeout configuration \[use cases] sonic(config sla icmp echo)# set timeout 1 \<font color="#1d50a2">set dst ip \</font> \[command] set dst ip dst ip \[purpose] set the destination ip for the detection \[parameters] parameter description dst ip specify the destination ip for detection, ipv4 or ipv6, in the format a b c d or a b \[view] user defined sla configuration view \[notes] run command no set dst ip to delete the destination ip for the detection \[use cases] sonic(config sla user define)# set dst ip 10 0 0 1 \<font color="#1d50a2">track\</font> \<font color="#1d50a2">track view\</font> \<font color="#1d05a2">table 3 track view\</font> command purpose show track summary display track configuration \<font color="#1d50a2">show track summary\</font> \[command] show track summary \[purpose] display track configuration \[view] privileged user view \[use cases] sonic# show track summary track id bind sla id state \ \<font color="#1d50a2">track config\</font> \<font color="#1d05a2">table 4 track config\</font> command purpose track track id sla sla id create a track instance and bind the sla instance \<font color="#1d50a2">track \</font> \[command] track track id sla sla id \[purpose] create a track instance and bind the sla instance \[parameters] parameter description track id track id, range from \[1,4294967295] sla id sla id, range from \[1,4294967295] \[view] global configuration view \[notes] run command no track track id to delete the track instance \[use cases] sonic(config)# track 1 sla 1
