Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-14-2009, 09:59 AM
ddx ddx is offline
Registered User
 
Join Date: Apr 2009
Posts: 25
client ip variable ?

Is there a variable for the clientip (client running securecrt) ?
I'm curently using :

crt.Screen.Send "copy running-config tftp://192.168.1.100/config.txt" & vbCr

But I want to get the ip (192.168.1.100) from the client which is running securecrt.
Reply With Quote
  #2  
Old 12-14-2009, 01:01 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hello ddx,

There is a property available to the 'Session Object' that can accomplish your objective.

If you change your "crt.Screen.Send" command to the following, what are the results?
Code:
crt.Screen.Send "copy running-config tftp://" & crt.session.LocalAddress & "/config.txt" & vbCr
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 12-15-2009, 04:50 AM
ddx ddx is offline
Registered User
 
Join Date: Apr 2009
Posts: 25
Brenda,

This works.
Thnx.

Stephan
Reply With Quote
  #4  
Old 12-15-2009, 09:30 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hi Stephan,

Excellent, thanks for posting your results here.
__________________
Thanks,
--Brenda

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

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 09:34 AM.