"send" command truncates data

From: BigJoeInternet (arnel_lim_at_yahoo.com)
Date: 03/31/04


Date: 30 Mar 2004 22:48:47 -0800

I have the intermittently problem when I use "send" to send a command
to a console port on an Ethernet Switch. Note, the console port is
connected to a terminal server, and my Tcl/Expect scripts telnets to a
port on that terminal server to access the Switch console.

I use...

send "$cmd\r"
expect {
   timeout { puts "Timeout sending $cmd" }
   $cmd { puts "Command $cmd sent" }
}

Every now and then I see $cmd truncated. For example, for the command
"delete routes all\r" I see "delete ro" on the screen, the I get an
timeout since the switch never saw the \r. I'm not sure whether the
command was sent and never processed by the switch, whether there's
some buffer problem I'm not aware of that I'm exceeding, or whether
the terminal server just drops a portion of the command due to some
other problem. Anybody got any suggestions in determining where my
truncated_text\r went?



Relevant Pages

  • Re: C2960 config - What do the commands do
    ... To enable visible sequence numbering of system logging messages, use the service sequence-numbers command in global configuration mode. ... Configure the system to automatically switch to summer time. ... This sybnet has the same network address what main network (the subnetted one) but longer subnet mask ... For chassis with 64 MAC addresses, STP uses the extended system ID plus a MAC address to make the bridge ID unique for each VLAN. ...
    (comp.dcom.sys.cisco)
  • Re: proposal: reswitch
    ... > which levels of loops and/or switches and/or ... socket -server command ?-myaddr addr? ... You've got the quick-exit (break, no string), the fall-through to next ... -switch option), then it'd be the nth switch. ...
    (comp.lang.tcl)
  • voice activated Windows shortcuts
    ... It works if the command pause is set to .1 seconds and the ... dictation while in Command Mode and AFAIK there's no hotkey to switch ... switching between windows does not ... back space (click, Backspace, Space) ...
    (comp.speech.research)
  • voice activated Windows shortcuts
    ... It works if the command pause is set to .1 seconds and the ... dictation while in Command Mode and AFAIK there's no hotkey to switch ... switching between windows does not ... back space (click, Backspace, Space) ...
    (comp.speech.users)
  • Re: expect question
    ... request to block this command without having to spend excessive time coading ... these devices typically have a very complex shell / command line interface ... code releases causes the switch to roll over [service affecting to ... I'll look at these example terminal emulators in more detail and decide ...
    (comp.lang.tcl)