Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-04-2016, 12:11 AM
mehbooburrehman mehbooburrehman is offline
Registered User
 
Join Date: Jun 2016
Posts: 2
Secure CRT not logging to file via script

Hi,

Have a very basic problem when trying to log output of a router command to a log file from script. The Logfile gets created but is always empty.

The script is pasted below:

--------------------------------------------------------
# $language = "VBScript"
# $interface = "1.0"

Sub Main


crt.Screen.Synchronous = True

crt.Session.Connect "/TELNET a.b.c.d 23"
crt.Screen.WaitForString "sername:"
crt.Screen.Send "xxx" & vbCr
crt.Screen.WaitForString "assword:"
crt.Screen.Send "xyz" & vbCr


crt.session.logfilename="blahblah.log"
crt.session.log TRUE


crt.Screen.Send "show ip int br" & vbCr


crt.Screen.Synchronous = False
crt.session.log FALSE


-----------------------------------------------------


End Sub
Reply With Quote
 

Tags
logfile , logging , output , router , scripting


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 08:24 AM.