Customer Service Center
Home
Knowledge Base
Forums
Contact Support
License Activation
|
Contact Support
|
License Activation
|
Spirent KB Article
Doc ID: FAQ10648
Printer Friendly
Email 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)"
Version
3.0
Publish Date
2011-08-05
Categories
Product : Spirent TestCenter,L2-3,Automation,Spirent TestCenter
Related Articles