The following sections provide configuration examples for an IP SLAs multioperation scheduler.
Example: Enable the IP SLAs random scheduler
The following example shows how to schedule IP SLAs operations 1 to 3 as a group (identified as group 2). In this example,
the operations are scheduled to begin at uniformly distributed random intervals over a schedule period of 50 seconds. The
first operation is scheduled to start immediately. The interval is chosen from the specified range upon every invocation of
the probe. The random scheduler option is enabled and the uniformly distributed random frequencies at which the group of operations
will restart is chosen within the range of 80-100 seconds.
Device> enable
Device# configure terminal
Device(config)# ip sla group schedule 2 1-3 schedule-period 50 frequency range 80-100 start-time now
Example: Schedule multiple IP SLAs operations
The following example shows how to scheduls IP SLAs operations 1 to 10 in the operation group 1 with a schedule period of
20 seconds. By default, the frequency is equivalent to the schedule period.
Device> enable
Device# configure terminal
Device(config)# ip sla group schedule 1 1-10 schedule-period 20
Example: Verify the IP SLAs multioperation schedulers
The following example shows the details of the scheduled multiple IP SLAs operation using the show
ip
sla
group
schedule command. The last line in the example indicates that the IP SLAs operations are multiple scheduled (TRUE).
Device# show ip sla group schedule
Multi-Scheduling Configuration:
Group Entry Number: 1
Probes to be scheduled: 1-10
Schedule period :20
Group operation frequency: 20
Multi-scheduled: TRUE
Example: Schedule multiple IP SLAs operations
The following example schedules IP SLAs operations 1 through 20 in the operation group 1 with a schedule period of 60 seconds
and a life value of 1200 seconds. By default, the frequency is equivalent to the schedule period. In this example, the start
interval is 3 seconds (schedule period divided by number of operations).
Device> enable
Device# configure terminal
Device(config)# ip sla group schedule 1 1-20 schedule-period 60 life 1200
Example: Verify the IP SLAs multioperation schedulers
The following example shows the details of the scheduled multiple IP SLAs operation using the show
ip
sla
group
schedule command.
Device# show ip sla group schedule
Group Entry Number: 1
Probes to be scheduled: 1-20
Total number of probes: 20
Schedule period: 60
Group operation frequency: Equals schedule period
Status of entry (SNMP RowStatus): Active
Next Scheduled Start Time: Start Time already passed
Life (seconds): 1200
Entry Ageout (seconds): never
The following example shows the details of the scheduled multiple IP SLAs operation using the show
ip
sla
configuration command. The last line in the example indicates that the IP SLAs operations are multiple scheduled (TRUE).
Device# show ip sla configuration 1
Entry number: 1
Owner:
Tag:
Type of operation to perform: udpEcho
Target address: 10.2.31.121
Source address: 0.0.0.0
Target port: 9001
Source port: 0
Request size (ARR data portion): 16
Operation timeout (milliseconds): 5000
Type Of Service parameters: 0x0
Verify data: No
Data pattern:
Vrf Name:
Control Packets: enabled
Operation frequency (seconds): 60
Next Scheduled Start Time: Start Time already passed
Life (seconds): 1200
Entry Ageout (seconds): never
Recurring (Starting Everyday): FALSE
Status of entry (SNMP RowStatus): Active
Threshold (milliseconds): 5000
Number of statistic hours kept: 2
Number of statistic distribution buckets kept: 1
Statistic distribution interval (milliseconds): 20
Enhanced History:
Number of history Lives kept: 0
Number of history Buckets kept: 15
History Filter Type: N
Group Scheduled : TRUE
The following example shows the latest operation start time of the scheduled multiple IP SLAs operation, when the operations
are scheduled at equal intervals, using the show ip sla statistics command:
Device# show ip sla statistics | include Latest operation start time
Latest operation start time: *03:06:21.760 UTC Tue Oct 21 2003
Latest operation start time: *03:06:24.754 UTC Tue Oct 21 2003
Latest operation start time: *03:06:27.751 UTC Tue Oct 21 2003
Latest operation start time: *03:06:30.752 UTC Tue Oct 21 2003
Latest operation start time: *03:06:33.754 UTC Tue Oct 21 2003
Latest operation start time: *03:06:36.755 UTC Tue Oct 21 2003
Latest operation start time: *03:06:39.752 UTC Tue Oct 21 2003
Latest operation start time: *03:06:42.753 UTC Tue Oct 21 2003
Latest operation start time: *03:06:45.755 UTC Tue Oct 21 2003
Latest operation start time: *03:06:48.752 UTC Tue Oct 21 2003
Latest operation start time: *03:06:51.753 UTC Tue Oct 21 2003
Latest operation start time: *03:06:54.755 UTC Tue Oct 21 2003
Latest operation start time: *03:06:57.752 UTC Tue Oct 21 2003
Latest operation start time: *03:07:00.753 UTC Tue Oct 21 2003
Latest operation start time: *03:07:03.754 UTC Tue Oct 21 2003
Latest operation start time: *03:07:06.752 UTC Tue Oct 21 2003
Latest operation start time: *03:07:09.752 UTC Tue Oct 21 2003
Latest operation start time: *03:07:12.753 UTC Tue Oct 21 2003
Latest operation start time: *03:07:15.755 UTC Tue Oct 21 2003
Latest operation start time: *03:07:18.752 UTC Tue Oct 21 2003