Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Old 12-29-2011, 04:31 AM
eng-mazen eng-mazen is offline
Registered User
Join Date: Dec 2011
Posts: 1
Need to execute some simple commands

Hi Everyone

I need to create script that to be added to session option in logon script in order to be run automatically after the session login to Juniper routers after Automated logon : this script simply run some commands after just connect the saved session like "set cli logical-router r1"

"i don't have any scripting language experience"
Reply With Quote
Old 12-29-2011, 10:54 AM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,117
Hello eng-mazen,

You can expand on Logon Actions (Expect/Send sequences) in the Connection / Logon Actions category to also send the command. This functionality is not strictly reserved for logon credentials.

You would simply use the Add... button to add a new line, then supply the expected prompt following authentication and the command you wish to send. See attached example.

If you do wish to use an actual Logon script instead of Logon Actions, do you connect to the routers using Telnet or SSH2?

If you desire to use an actual logon script, to assist, I would also need to know:
  • What version of SecureCRT are you using (Help / About SecureCRT...)?
  • What operating system is SecureCRT running on (Windows, Mac, Linux)?
Attached Images
File Type: gif eng-mazen_example.gif (19.9 KB, 191 views)

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote

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 03:12 AM.