Printer FriendlyEmail Article Link

Spirent TestCenter: How to switch between 10G to 1G port mode (Vice Versa) in an existing Automation script via TclAPI ?

Environment/Versions
  • Spirent TestCenter Automation Environment
Answer
  • To convert port mode from 10G mode to 1G mode from Tcl API, we need to use the below set of commands,

    set handleofEthCopper [stc::create EthernetCopper -under $myDx10gPort]

    stc::config $myDx10gPort -ActivePhy-targets $handleofEthCopper

  • To convert port mode from 1G mode to 10G mode from Tcl API, use the below set of commands,

    set handleofEth10gCopper [stc::create EthernetCopper -under $myDx1gPort]

    stc::config $myDx10gPort -ActivePhy-targets $handleofEth10gCopper

  • Attached sample script to convert the existing ports configuration from 1G port to 10G port or vice versa.
  • In the script set the value as “1” for “10GigCopper” variable for converting the ports from 1G to 10G or set the value as “1” for “1GigCopper” for converting the ports from 10G to 1G. (Only one variable should have value as 1).
Attachments
Attachment
Attachment Description
Sample script to convert the port mode from 1G to 10G or Vice Versa

Product : API