Customer Service Center
Home
Knowledge Base
Contact Support
License Activation
|
Contact Support
|
License Activation
|
Spirent KB Article
Doc ID: FAQ17318
Printer Friendly
Email Article Link
Spirent iTest: What are the Spirent TestCenter native API commands to reset the module?
Environment/Versions
Spirent iTest.
Spirent TestCenter.
Answer
Below are the STC native API commands to reset the module by using port group handles:
set chassisHandle [stc::get system1 -children-PhysicalChassisManager]
set phyHnd [stc::get $chassisHandle -children-physicalchassis]
set phyTestHnd [stc::get $phyHnd -children-PhysicalTestModule]
set pgHnd [stc::get $phyTestHnd -children-PhysicalPortGroup]
stc::perform RebootEquipmentCommand -equipmentlist $pgHnd
If we have multiple physical test modules, then we need to use the lindex command to get the particular test module which we want.
Below are the example tcl commands:
% set phyTestHnd [stc::get $phyHnd -children-PhysicalTestModule]
physicaltestmodule1 physicaltestmodule2 physicaltestmodule3 physicaltestmodule4 physicaltestmodule5
% set modulehnd1 [lindex $phyTestHnd 0]
physicaltestmodule1
% set pgHnd [stc::get $modulehnd1 -children-PhysicalPortGroup]
Version
2.0
Publish Date
2023-11-16
Categories
Product : API,Velocity Portfolio,Velocity iTest
Related Articles