Printer FriendlyEmail Article Link

Avalanche-Automation: How to change load during test using TclAPI ?

Environment/Versions
  • Avalanche
  • TclAPI
Answer
  • We could use the below API to change the load during the test run,

av::perform ChangeLoad system1 -unitAddress <ChassisIP>:<UnitNumber>:<Index> -loadChange <value>
   
        LoadChange value should be of the form +10, =10, -10
       
 Ex: av::perform ChangeLoad system1 -unitAddress 10.10.10.10:0:0 -loadChange +10 -stcIpAddress 10.10.10.10:1,1
  

Note: 

  •          -stcIpAddress part is not required for legacy appliance such as 3100B and C100-U.
  •          The diffuclt part is figuring out the “unitAddress”.
  •          See the Avalanche Automation Programmers' Reference for information on mapping a port number to <UnitNumber>.
  •          For the <Index> it should be starting from 1 for User Based Load, For global load, <Index> is 0.


     
  • Example of UnitNumber mapping in C100-S3 8x10G functional mode


PortGroup1
=========
for port1 = 0,1,2
for port2 = 3,4,5
 
PortGroup3
=========
for port3 = 0,1,2
for port4 = 3,4,5
 
PortGroup5
=========
for port5 = 0,1,2
for port6 = 3,4,5
 
PortGroup7
=========
for port7 = 0,1,2
for port8 = 3,4,5

 

Therefore, if you were using global load type, and generating client traffic with port 3 and port 4, then changing the load by +10 command would be:

av::perform ChangeLoad system1 -unitAddress 10.10.10.10:0:0 -loadChange +10 -stcIpAddress 10.10.10.10:1,3
av::perform ChangeLoad system1 -unitAddress 10.10.10.10:1:0 -loadChange +10 -stcIpAddress 10.10.10.10:1,3
av::perform ChangeLoad system1 -unitAddress 10.10.10.10:2:0 -loadChange +10 -stcIpAddress 10.10.10.10:1,3
av::perform ChangeLoad system1 -unitAddress 10.10.10.10:3:0 -loadChange +10 -stcIpAddress 10.10.10.10:1,4
av::perform ChangeLoad system1 -unitAddress 10.10.10.10:4:0 -loadChange +10 -stcIpAddress 10.10.10.10:1,4
av::perform ChangeLoad system1 -unitAddress 10.10.10.10:5:0 -loadChange +10 -stcIpAddress 10.10.10.10:1,4






    


Product : Automation,Avalanche