VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Example: Connect to Hosts in the Clipboard (one per line) (https://forums.vandyke.com/showthread.php?t=14031)

jdev 01-08-2020 12:38 PM

Example: Connect to Hosts in the Clipboard (one per line)
 
1 Attachment(s)
This example script code shows how to instruct SecureCRT to establish ad hoc connections to hosts listed one by one in the clipboard.

For example, if the following is in the clipboard...
host1.example.com
host2.example.com
host3.example.com
host4.example.com
host5.example.com
host6.example.com
...Or even, with authentication credentials:
ssh://user1:p4$$w0rd@192.168.1.1
ssh://user2:p4$$w0rd@192.168.1.2
ssh://user3:p4$$w0rd@192.168.1.3
ssh://user4:p4$$w0rd@192.168.1.4
ssh://user5:p4$$w0rd@192.168.1.5
ssh://user6:p4$$w0rd@192.168.1.6
... then running this script will cause SecureCRT to connect to each host on a specific line in separate tabs in the SecureCRT window.

--Jake


All times are GMT -6. The time now is 09:35 PM.