Creating a ssh session with the user inputing ip address
Hi Guys I have just created a topology but what i would like is when i create a ssh session as we have multiple devices i would like the user to be able to input the ip address so that way the topology is selected according to ip address. So under ssh session type what would i put in ip address to achieve this?
You need to take input form user, based on that you need to connect required SSH session? For that you need to use TK code using scriptEval command scriptSet inputDesc $inputDesc scriptEval Use tk msg box here, and handle your code More information tk msg box
http://www2.tcl.tk/1062 Use iTest help for scriptSet and scriptEval commands
An alternative to using the TK approach as mentioned above (because this will require the user to be using the iTest GUI), you can use the XMPP session. Using the XMPP session you can IM the user and the user can type in responses.
If I am NOT wrong, you want to go with an interactive scenario. So, provide a default ssh IP in session profile and login. Then you can ssh to desired IPs as native terminal in linux box. Say, you have 10 IPs. Provide 1 IP in the session profile and once you will be in the terminal you can go another 9 IPs as desired.