question

jkotsa avatar image
jkotsa asked amichaels answered

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?
iTestsshtopology
3 comments
10 |950

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

Yaseen avatar image Yaseen ♦ commented ·
Could you please elaborate your query by giving an example topology file and point us what exactly is required
0 Likes 0 ·
jkotsa avatar image jkotsa commented ·
Thanks very much guys for your feedback. I will try both methods and see which one suits best :)
0 Likes 0 ·
ericnute avatar image ericnute commented ·
Remember to select the answer that worked for you.
0 Likes 0 ·
mallikarjunarao avatar image
mallikarjunarao answered ericnute edited
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
10 |950

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

amichaels avatar image
amichaels answered
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.
10 |950

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

udaya avatar image
udaya answered
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.
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.