How to specify network interface via command line

Started by Pioxan

Pioxan

How to specify network interface via command line   07 April 2018, 01:21

Hi. I would like to perform automated tests using Connection Emulator.

As tests may happen under different circumstances I need to modify test parameters via editing XML profile and run application from CLI.
All values in XML seems to be pretty straightforward, except cardindex which seems to be index in combobox of available network interfaces.

Is there a way to specify network interface by name, or maybe some other way to figure out this number without starting an application?
Thanks
SoftPerfect Support forum - Andrew avatar image

Re: How to specify network interface via command line   09 April 2018, 12:45

That is a good idea. W have just modified the XML file parser so that an interface name can be specified.

Now you can do something like this:
<general>
  ...
  <cardindex>Local Area Connection</cardindex>
</general>
If a number is specified, it is treated as the interface index in the drop-down list. If a name is specified, the software will select an interface with that name. The name is case-insensitive.

You can download the update here.
It works very well, thank you.

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 ********  ********   **    **  **     **   *******  
 **        **     **  **   **    **   **   **     ** 
 **        **     **  **  **      ** **    **     ** 
 ******    ********   *****        ***      ******** 
 **        **         **  **      ** **           ** 
 **        **         **   **    **   **   **     ** 
 ********  **         **    **  **     **   *******  

Message: