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 02-08-2019, 06: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
  #2  
Old 02-09-2019, 06:03 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,886
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
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
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:50 AM.