Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Notices

Showing results 1 to 24 of 24
Search took 0.00 seconds.
Search: Posts Made By: samoki
Forum: Scripting 01-06-2010, 06:55 PM
Replies: 3
Views: 3,904
Posted By samoki
Thanks.The codes you give me,I have tested. ...

Thanks.The codes you give me,I have tested.
When I write a short script to test these sentences,it can work correctly.
But when I move these codes to my program,the sentenceMsgBox "LogFileName from...
Forum: Scripting 01-06-2010, 02:31 AM
Replies: 3
Views: 3,904
Posted By samoki
How can I get log file name?

I write some codes,somewhere,I want to get session log file name,but crt does not return me the right answer.
Dim tmpGetLogFileName,tmpGetLogStatus,tmpLogState
tmpGetLogStatus = crt.Session.Logging...
Forum: Scripting 08-20-2009, 01:35 AM
Replies: 11
Views: 12,497
Posted By samoki
Hi bgagnon & TroyC, I have read the script...

Hi bgagnon & TroyC,
I have read the script document on your website,I will have more testing for it.
Thanks a lot!
Forum: Scripting 08-19-2009, 03:42 AM
Replies: 11
Views: 12,497
Posted By samoki
Hi bgagnon, In fact,it can not work well. I...

Hi bgagnon,
In fact,it can not work well.
I use these codes:

Do Untile crt.screen.waitforstring("router#",5)
crt.screen.send Chr(32)
Loop

but,when system appear '-- More --',it will...
Forum: Scripting 08-13-2009, 06:41 PM
Replies: 11
Views: 12,497
Posted By samoki
I use sentence: ...

I use sentence:
"crt.screen.WaitForString(RouterID &"#",2)"
in a "Do Until...Loop" to judge.If not appear,script will use
crt.screen.send chr(32)
or
crt.screen.send " "

to make output going...
Forum: Scripting 08-13-2009, 04:22 AM
Replies: 11
Views: 12,497
Posted By samoki
How can I send space key for next page

Hi!I have a question:
Some router commands will give a very long output.Telnet session will output a page and when I press space key,it will go on to next page.I want to do this automatically,I use...
Forum: Scripting 08-12-2009, 05:54 PM
Replies: 2
Views: 3,872
Posted By samoki
Thanks.I'll try it.

Thanks.I'll try it.
Forum: Scripting 08-12-2009, 03:41 AM
Replies: 2
Views: 3,872
Posted By samoki
How to record session to defferent log files when script is running?

I want to record session to different log files,one record session,some special output need to record to another log file.Can I change log file when script is running?How can I carry out it?
Forum: General 01-06-2007, 09:04 AM
Replies: 9
Views: 13,953
Posted By samoki
Hi,tnygren Thank you for your support mail.I'll...

Hi,tnygren
Thank you for your support mail.I'll try it on Monday or a little later.
In question 2 I describe how equipment output.
When script in SecureCRT give device command by...
Forum: General 01-04-2007, 07:40 PM
Replies: 9
Views: 13,953
Posted By samoki
Some explain

I hope it can explain clearly:
Simple example:SCRT can read files.OK,I can write some code to get and record the working path in a file,when SCRT is starting,it will read the record file in...
Forum: General 01-03-2007, 08:58 PM
Replies: 9
Views: 13,953
Posted By samoki
I found it,but can't resolve

I found the reason:the value of variable 'Title' is "Program is written by me",the value has spaces like "c:\program files\",and when program use the variable 'Title',error occued.Because I can't...
Forum: General 12-31-2006, 03:09 AM
Replies: 9
Views: 13,953
Posted By samoki
New Question

Than you,the first question is resolved and the second I will test it in holiday or later than it.
When I call SecureCRT successfully in WSH script,SecureCRT run the second vbs script.In it,an error...
Forum: General 12-30-2006, 08:57 PM
Replies: 9
Views: 13,953
Posted By samoki
How to call SecureCRT in a WSH script with parameter

I want to call SecureCRT in a external program use WSH with SecureCRT parameters.Full command:

Set WSH = WScript.CreateObject("WScript.Shell")
WSH.Run "C:\Program Files\SecureCRT\SecureCRT.exe...
Forum: Scripting 11-17-2006, 12:54 AM
Replies: 9
Views: 5,649
Posted By samoki
I'm sorry,I mean when I test my program,I revamp...

I'm sorry,I mean when I test my program,I revamp the program continually,but it still can't run correctly.
It's so strange.
I just tested my program again,and used "msgbox" to label what output...
Forum: Scripting 11-14-2006, 08:13 PM
Replies: 9
Views: 5,649
Posted By samoki
Now I post output by manually type: ...

Now I post output by manually type:

(config)#
10:27:55:700 11/15/2006 ...
Forum: Secure Shell 11-01-2006, 06:15 PM
Replies: 1
Views: 4,128
Posted By samoki
How can I use wscript root property

In WSH,I can use WscriptFullName property to get script file's path,but how can I use it in script for scurecrt or how can I get my script's path in securecrt.

Another,how can I use script...
Forum: Scripting 10-31-2006, 12:04 AM
Replies: 9
Views: 5,649
Posted By samoki
First I answer your last two questions: 1.I...

First I answer your last two questions:

1.I run crt.screen.synchronous = True at the beginning of the script.

2.I run the script in a window with single tab mode.

I have used two way to test...
Forum: Scripting 10-29-2006, 06:40 PM
Replies: 9
Views: 5,649
Posted By samoki
I cann't give you full program,because the...

I cann't give you full program,because the program occured error is a alone sub program.The part of program I given can explain all.There is any useful sentences in other parts of the program.I think...
Forum: Scripting 10-27-2006, 03:32 AM
Replies: 9
Views: 5,649
Posted By samoki
[Help]Script send command error and get unexpected output

I write a script,part underside:
Dim result,flag
flag = 0
crt.Screen.Send VbCr
While flag = 0
result = crt.Screen.WaitForStrings ("(config)#","#","[Y/N]","$",10)
Select...
Forum: Scripting 08-20-2006, 08:39 PM
Replies: 2
Views: 5,478
Posted By samoki
[Help]How can use WSH in SecureCRT?

When I use sentence "WScript.ScriptFullName",error occur"Variable is not defined:WScript".It's standard sentence in VB script.How can I define it "WScript"? Help me,thanks.
Forum: Scripting 08-18-2006, 09:15 AM
Replies: 2
Views: 4,302
Posted By samoki
I explain in detail: This script's basic ideas...

I explain in detail:
This script's basic ideas is read information from an excel file,the excel file include devices' name,ip and other information.The first script(main script) need read part of...
Forum: Scripting 08-18-2006, 12:34 AM
Replies: 2
Views: 4,302
Posted By samoki
[Help]How can two script operate one file?

I program to backup devices' configuration.
I want to use a single script to load SecureCRT,and do something below:
1.connetct devices
2.backup
3.quit SecureCRT
All of this steps(include load...
Forum: Scripting 07-31-2006, 04:34 AM
Replies: 2
Views: 4,505
Posted By samoki
I fix my program,it can work well. And crt.Quit...

I fix my program,it can work well.
And crt.Quit can work now.
Thanks.
Forum: Scripting 07-06-2006, 04:06 AM
Replies: 2
Views: 4,505
Posted By samoki
[Help]Quit SecureCRT automatically by script

I wrote a script to backup router's configuration automatically.It work well,but I want to close session and quit SecureCRT automatically in the end.Can I do this with VBScript?I use "crt.Quit"...
Showing results 1 to 24 of 24

 
Forum Jump

All times are GMT -6. The time now is 10:18 PM.