Track and SLA
SLA View
Section titled “SLA View”Table 1 SLA View
| Command | Purpose |
|---|---|
| show sla summary | Display SLA configuration. |
show sla summary
Section titled “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
Section titled “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-id icmp_echo dst_ip
Section titled “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.1sonic(config-sla-icmp_echo)#sla sla-id user_define [String]
Section titled “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_definesonic(config-sla-user_define)#set src_port {ethernet interface_name |link-aggregation interface_name|vlan vlan-id}
Section titled “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/0sonic(config-sla-icmp_echo)#set interval interval
Section titled “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 1set timeout timeout
Section titled “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 1set dst_ip dst_ip
Section titled “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.1Track View
Section titled “Track View”Table 3 Track View
| Command | Purpose |
|---|---|
| show track summary | Display track configuration. |
show track summary
Section titled “show track summary”[Command]
show track summary
[Purpose]
Display track configuration.
[View]
Privileged User View
[Use Cases]
sonic# show track summaryTrack_id bind_sla-id state---------- ------------- -------Track Config
Section titled “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_id sla sla_id
Section titled “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