Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Old 02-08-2019, 07:11 PM
vanvinh vanvinh is offline
Registered User
Join Date: Feb 2019
Posts: 3
python script - Command send buffer

Hi all,
It appears that once run script on secureCRT, it will buffer as many "send" message as possible.
I am having an issue here:
+Log in to device
+Loop through interface list
+show interface <interface> status
+Retrieve status
+if status == notconnect then shut, else proceed with the list
+End loop
+Close session
However, since it is asynchronous; secureCRT will try to buffer more command to send to remote device and I can't take action according to result I get. Assume I have 2 interfaces on interface_list, here is the order:
+Log in to device
+Show int interface_1 status
+show int interface_2 status
+Status retrieve is of interface_1 but action is taken on interface_2
+session close

Another issue I have is that some devices are having long connecting time. Thus, all show command are buffered and session closed command is buffered even before I start retrieving status and take action accordingly. Here is how it goes:
+Log in to device (take long)
+Show int interface_1 status
+Show int interface_2 status
+session closed
Reply With Quote
Old 02-09-2019, 07:03 PM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,636
Hi vanvinh,

You have given a lot of info, but it's not really clear to me what problem you are trying to solve. Please elaborate.

Please also provide:
  • Version of SecureCRT

  • What OS SecureCRT is installed on

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

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