Printer FriendlyEmail Article Link

How can I set a port link state down (same as break link in the GUI) or up (same as restore link in the GUI) using TCL script?

Answer

 

This can be done using the L2TestBreakLinkCommand and L2TestRestoreLinkCommand. Please follow the steps
 
1.     Make sure you get the port  handle list(s) using the stc::get command
stc::get project1 -children-port
 
2.     Break a port link (use the handle list returned by above command or already saved as a variable)
stc::perform L2TestBreakLinkCommand -Port "$Port(1)"
 
3.     Restore the port link   
            stc::perform L2TestRestoreLinkCommand -Port "$Port(1)"

Product : Spirent TestCenter,L2-3,Automation,Spirent TestCenter