Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-08-2020, 12:38 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 1,099
Post Example: Connect to Hosts in the Clipboard (one per line)

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
Attached Files
File Type: txt ConnectToHostsInClipboard-One-per-Line-AdHocTabs.py.txt (1.8 KB, 2776 views)
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Closed Thread

Tags
clipboard , example script , securecrt

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:15 PM.