The timer spt-switch command sets the interval for checking whether the rate for transmitting multicast data exceeds the threshold before the switchover from the RPT to the SPT.
The undo timer spt-switch command restores the default value of the interval.
By default, the interval for checking whether the rate for transmitting multicast data exceeds the threshold before the switchover from the RPT to the SPT is 15 seconds.
Parameter | Description | Value |
---|---|---|
interval |
Specifies the interval for checking whether the rate for transmitting multicast data exceeds the threshold before the switchover from RPT to SPT. |
The value is an integer that ranges from 15 to 65535, in seconds. |
Usage Scenario
You can run the timer spt-switch command to set the interval for checking whether the rate for transmitting multicast data exceeds the threshold.
Prerequisites
IP multicast routing has been enabled using the multicast routing-enable command.
Precautions
This command is valid for only PIM-SM.
Before running this command, you must set the threshold for SPT switchover by using the spt-switch-threshold (IPv4) command; otherwise, the timer spt-switch command takes no effect.
# In the PIM view of public network instance, set the interval for checking the rate for transmitting the multicast data before the switchover from RPT to SPT to 30 seconds.
<HUAWEI> system-view [HUAWEI] multicast routing-enable [HUAWEI] pim [HUAWEI-pim] spt-switch-threshold 100 [HUAWEI-pim] timer spt-switch 30