跳转到内容
Ask AI

Track and SLA

此内容尚不支持你的语言。

Table 1 SLA View

CommandPurpose
show sla summaryDisplay SLA configuration.

[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
-------- ------ ----------- --------------------

Table 2 SLA Config

CommandPurpose
sla sla-id icmp_echo dst_ipCreate 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 intervalSet the detection interval.
set timeout timeoutSet the timeout of the detection.
set dst_ip dst_ipSet the destination IP for the detection.

[Command] sla sla-id icmp_echo dst_ip

[Purpose] Create an ICMP Echo mode SLA instance.

[Parameters]

ParameterDescription
sla-idSLA ID, range from [1,4294967295].
dst_ipSpecify 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)#

[Command] sla sla-id **user_define ** [String]

[Purpose] Create a user-defined SLA instance.

[Parameters]

ParameterDescription
sla-idSLA ID, range from [1,4294967295].
StringSpecify 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)#

[Command] set src_port {ethernet interface_name |link-aggregation interface_name|vlan vlan-id}

[Purpose] Set the source interface for the detection.

[Parameters]

ParameterDescription
interface_nameInterface name(eg.0/1)
vlan-idVLAN 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)#

[Command] set interval interval

[Purpose] Set the detection interval.

[Parameters]

ParameterDescription
intervalSpecify 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

[Command] set timeout timeout

[Purpose] Set the timeout of the detection.

[Parameters]

ParameterDescription
timeoutSpecify 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

[Command] set dst_ip dst_ip

[Purpose] Set the destination IP for the detection.

[Parameters]

ParameterDescription
dst_ipSpecify 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

Table 3 Track View

CommandPurpose
show track summaryDisplay track configuration.

[Command] show track summary

[Purpose] Display track configuration.

[View] Privileged User View

[Use Cases]

sonic# show track summary
Track_id bind_sla-id state
---------- ------------- -------

Table 4 Track Config

CommandPurpose
track track_id sla sla_idCreate a track instance and bind the SLA instance.

[Command] track track_id sla sla_id

[Purpose] Create a track instance and bind the SLA instance.

[Parameters]

ParameterDescription
track_idTrack ID, range from [1,4294967295]
sla_idSLA 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