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 09-20-2012, 05:48 AM
Jens Arne Jens Arne is offline
Registered User
 
Join Date: Nov 2011
Posts: 2
Chang Serial Speed "on The Fly"

Hey.
Is it possible to change the speed of the serial port during the session using Script?
I want to transfer a file to a Cisco switch using Xmodem. Before I do that, I change the speed of the switch. When I lose it, and then have to click on the menu: Session, Session Options, Connection, Serial and here change the baud rate to 115200. When the script is finished, both are reset to 9600. On the switch I run this command config terminal, Line con 0, Rxspeed 115200. What is the easiest way to change the speed of SecureCRT.
The switch has no IP and the only chance I have to access the switch is via console and Serial
I have SecureCRT ver 6.7.

Jens
Reply With Quote
  #2  
Old 09-20-2012, 08:46 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi Jens,

Thanks for the question. Have you considered using SessionConfiguration object?

For example:
Code:
crt.Session.Config.SetOption "Baud Rate", "115200"
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 09-21-2012, 01:45 PM
Jens Arne Jens Arne is offline
Registered User
 
Join Date: Nov 2011
Posts: 2
Thumbs up configuration objec

Hey Todd. Thanks for the advice. It worked exactly as planned! Thanks for your help. I did not know there was a configuration object
Reply With Quote
  #4  
Old 09-22-2012, 10:12 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
You are welcome Jens. Thanks for the update. I am glad I could help.

As a note to all reading this, and yourself, a list of all SecureCRT API objects, methods and properties (including how to use them) can be found in the SecureCRT help file in the Scripting / Script Objects Reference chapter.
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
Reply

Tags
baud , change , script , speed


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 10:17 PM.