Command Line Reference
High Availability Configuratio...
Track and SLA
18 min
sla sla sla view sla view table 1 sla view table 1 sla view command purpose show sla summary display sla configuration show sla summary show sla summary \[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 \ sla config sla config table 2 sla config table 2 sla config 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 sla sla sla id icmp echo dst ip \[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)# sla sla sla id user define \[ string ] \[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)# set src port {ethernet set src port {ethernet interface name |link aggregation interface name |vlan vlan id } \[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)# set interval set interval interval \[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 set timeout set timeout timeout \[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 set dst ip set dst ip dst ip \[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 track track track view track view table 3 track view table 3 track view command purpose show track summary display track configuration show track summary show track summary \[command] show track summary \[purpose] display track configuration \[view] privileged user view \[use cases] sonic# show track summary track id bind sla id state \ track config track config table 4 track config table 4 track config command purpose track track id sla sla id create a track instance and bind the sla instance track track track id sla sla id \[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
