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 04-17-2006, 10:54 AM
erltorres erltorres is offline
Registered User
 
Join Date: Sep 2005
Posts: 4
conect to a cisco from command line

Hi,
I'm trying to connect to a cisco router (and launch a script) from an aplication in Visual basic. I launch de securecrt with this lines:


strFic = frmParini.txtscrt.Text & " /Telnet " & txtipl2.Text & " /script SCRIPTS\PA_DE_VOZ\pa_de_voz_1.vbs /ARG " & txtips.Text & " /ARG " & txtipr.Text & " /ARG " & txtcod.Text

Shell strFic & " ", vbNormalFocus


But the problem is that securecrt tells my that "The specified address is not available from the local computer" and " Unexpected argument 'SCRIPTS\PA_DE_VOZ\pa_de_voz_1.vbs' on command line".
If i use securecrt quick conecction dialog box, it works well and i can make telnet to the router.

Thank you.
Reply With Quote
  #2  
Old 04-18-2006, 01:13 PM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
The error message seems to indicate that the arguments to SecureCRT are a not in the correct order. The order should be:
SecureCRT.exe [standard options] [protocol-specific options]
You can find more information about which options are standard and which are protocol specific by opening SecureCRT Help and searching the Index tab for command-line options.

If you move & " /Telnet " & txtipl2.Text to the end of the command, does the command work for you?
strFic = frmParini.txtscrt.Text & " /script SCRIPTS\PA_DE_VOZ\pa_de_voz_1.vbs /ARG " & txtips.Text & " /ARG " & txtipr.Text & " /ARG " & txtcod.Text & " /Telnet " & txtipl2.Text
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote
  #3  
Old 04-19-2006, 11:27 AM
erltorres erltorres is offline
Registered User
 
Join Date: Sep 2005
Posts: 4
Hi,
Thank you very much, it works perfectly.
You are the best.

Bye.
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 02:14 PM.