View Single Post
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


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.log TRUE

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

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


End Sub
Reply With Quote