Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-24-2018, 01:00 PM
King908 King908 is offline
Registered User
 
Join Date: Jun 2018
Posts: 6
Import / Login Script Multiple IP

I have an import file from previous imports that worked great,
It was: Session_name,hostname,protocol,folder,emulation. This worked great.

Now I have something similar, but the session_name is the same but I have 3 server IP's. Primary,Backup, and a VIP (Active)
How can I make a script that uses the 3 IP's for the same Session_name ?

Primary = IP Address
Secondary = IP Address
VIP = IP Address
Reply With Quote
  #2  
Old 09-24-2018, 01:59 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,359
Hi King908,

Why does the session name have to be the same?

You cannot have the same session name unless you store each session in a separate folder. The sessions you see in Session Manager translate into actual session INI files on the filesystem and unless you store them in separate folders, three files cannot have the same name.

Since you seem to have a unique session name in mind, why don't you instead use that for Session Name? (Or at least append that word to the session name?):

Session_name,hostname,protocol,folder,emulation
SessName_Primary,Primary_IP_address,ssh2,SameFolder,xterm
SessName_Secondary,Secondary_IP_address,ssh2,SameFolder,xterm
SessName_VIP,VIP_IP_address,ssh2,SameFolder,xterm

Or store each in its own folder:
Session_name,hostname,protocol,folder,emulation
SameSessionName,Primary_IP_address,ssh2,PrimaryFolder,xterm
SameSessionName,Secondary_IP_address,ssh2,SecondaryFolder,xterm
SameSessionName,VIP_IP_address,ssh2,VIPFolder,xterm

It's only when you do not have a session_name field that the script uses the IP address for the Session Name and so I could see that causing a conflict, but if you have a session name that can be used, by all means do so.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 03:30 PM.