question

JeffJ avatar image
JeffJ asked JeffJ posted

How to change the IP Address for Emulated Devices in STC

I have a customer that wants to be able to change the IP Addresses for Emulated Devices (STC) in a test case.  We're looking for the TCL commands to do this so we can build a Quickcall for either the STC GUI session type or the STC CLI session type.

 

Anyone know the TCL commands we need?

iTesttraffic generation
10 |950

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

1 Answer

·
lakshminarayana avatar image
lakshminarayana answered lakshminarayana posted

Hi Jeff,

 

Below are the set of commands that can acheive your requirements,

 

#Returns the handles for emulated devices
eval stc::get project1 -children-emulateddevice

 

#Returns the handles for ipv4 configuration for first emulated device
eval stc::get emulateddevice1 -children-ipv4if

 

#Returns the handles for ipv4 configuration for second emulated device
eval stc::get emulateddevice2 -children-ipv4if

 

#Returns the current IP address of the first device
eval stc::get ipv4if1 -address

 

#Change the ip address for the device1
eval stc::config ipv4if1 -address <new_ip>

 

#Apply the changes
eval stc::apply

 

Hope it helps!

 

Thanks!

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.