question

udaya avatar image
udaya asked ericnute edited

How to set circuitid parameters from script ?

I want to set values like start, count, step etc.. @p (port name) with circuitid and remote session id for pppoe and dhcp configuration. Please help with an example of the API in setting these values.
Spirent TestCenter (STC)api
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mallikarjunarao avatar image mallikarjunarao commented ·
could you provide an example?
0 Likes 0 ·

1 Answer

·
Yaseen avatar image
Yaseen answered
In order to specify the circuitID and remote session Id we may need to enable Relay Agent for PPPoe and set the relayagent type as DSL_FORUM. Below is the code snippet for reference, set pppoeclientblockconfig1 [stc::get $emulateddevicehandle -children-pppoeclientblockconfig] stc::config $pppoeclientblockconfig1 -EnableRelayAgent TRUE" \ -RelayAgentType "DSL_FORUM" \ -CircuitId {circuit @p@x(1,10,1,0,1)} Where @x : indicate custom Iterator @p : Port Name 1 : Start 10: Count 1 : Step 0 : Zero Pad 1 : Repeat and for DHCP, set DHCPconfig [stc::get $emulateddevicehandle -children-Dhcpv4BlockConfig] stc::config $DHCPconfig -EnableCircuitId "TRUE" \ -CircuitId {circuitId_@p@x(1,10,1,0,1)} \ -EnableRemoteId "TRUE" \ -RemoteId {remoteId_@p-@b-@s} Hope this information helps!
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.