Tutorial 3 - Configure Devices - Using dynamic Config Files and/or Passwords

There are several ways to deal with different Config Files and/or Passwords. All methods are explained in the next paragrahs.

Download the used files here.


1) Using the DeviceGroup File

Step 1 - Generating the DeviceGroup File

First, a basic DeviceGroup File should be generated. Please refer to "Tutorial 2 - Configure Devices - First Time Users" how to do so.

This DeviceGroup File can now be edited in any text editor, or better in a tool which can handle csv files (Excel, OpenOffice...). After setting the config files and/or passwords for each host, please save the file again as csv.

Step 2 - Using the DeviceGroup File

In "Configure Devices" the following option is used to import the new DeviceGroup File:




The DeviceGroup can also be edited in wktools. This option is useful for small changes and can be found in the DeviceGroup Tab. Click on the cell you want to edit and type in the new value. The changes are saved to the DeviceGroup file on every Tab change, Start event or on ending the program.





2) Using Dynamic Config Files

Step 1 - Using dynamic configs

With this method the following section in "Configure Devices" Settings Tab is used for different configs. The use of dynamic User/Passwords is explained in the next section.




In "IP address File" set the file, where the hosts which you want to configure, are listed.
Click the "dynamic" checkbox to activate the controls at the right hand side.
In "dyn Config Folder" specify the folder where all special config files are saved. The file name for each config file must be the IP address, combined with the file name extension, defined under "File extension". It is also possible to set a default Config file for the case where no special config file is found.

Example:
All used files:


For Settings Tab please look above.
Check your settings at the DeviceGroup Tab and choose the hosts you want to configure:




Step 2 - Adding dynamic Usernames/Passwords

Dynamic User/Pwasswords are set in the next step. The Usernames/Passwords are specified in the beginning of each config file.
Example for 1.1.1.1.txt:



The Settings Tab would look like as follows. Please note that the "dynamic" Checkbox in Password Settings Area is checked.



The final DeviceGroup:





3) Quick and Dirty - Multiple User/Passwords

The Quick and Dirty solution for multiple Passwords is to define them in the Password field in the Settings Tab.
It is possible to define up to three different Usernames/Passwords. The used format is: password1;;password2;;password3.

Example:



When logging in to a device the tool first tries the first password. If this fails it uses the second one and so forth.