| 14:06:49.973 | FAIL | SSHException: Channel closed. |
| 14:06:49.973 | DEBUG | Traceback (most recent call last): File "C:\Python27\lib\site-packages\SSHLibrary\library.py", line 881, in execute_command stdout, stderr, rc = self.current.execute_command(command) File "C:\Python27\lib\site-packages\SSHLibrary\abstractclient.py", line 219, in execute_command self.start_command(command) File "C:\Python27\lib\site-packages\SSHLibrary\abstractclient.py", line 237, in start_command self._started_commands.append(self._start_command(command)) File "C:\Python27\lib\site-packages\SSHLibrary\pythonclient.py", line 85, in _start_command cmd.run_in(new_shell) File "C:\Python27\lib\site-packages\SSHLibrary\abstractclient.py", line 1055, in run_in self._execute() File "C:\Python27\lib\site-packages\SSHLibrary\pythonclient.py", line 201, in _execute self._shell.exec_command(self._command) File "C:\Python27\lib\site-packages\paramiko\channel.py", line 60, in _check return func(self, *args, **kwds) File "C:\Python27\lib\site-packages\paramiko\channel.py", line 229, in exec_command self._wait_for_event() File "C:\Python27\lib\site-packages\paramiko\channel.py", line 1086, in _wait_for_event raise e |
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
I suspect that the "command" you are trying to run is running in your test server, not in the SSH session you just created.
On Tue, Jan 13, 2015 at 2:14 PM, Abhijit Sipani <sipa...@gmail.com> wrote:
Hi I am trying to setup an SSH script where in I ssh into a router and try to execute commands there. I can successfully login but executing a command gives the following
14:06:49.973 FAIL SSHException: Channel closed.
14:06:49.973 DEBUG Traceback (most recent call last): File "C:\Python27\lib\site-packages\SSHLibrary\library.py", line 881, in execute_command stdout, stderr, rc = self.current.execute_command(command) File "C:\Python27\lib\site-packages\SSHLibrary\abstractclient.py", line 219, in execute_command self.start_command(command) File "C:\Python27\lib\site-packages\SSHLibrary\abstractclient.py", line 237, in start_command self._started_commands.append(self._start_command(command)) File "C:\Python27\lib\site-packages\SSHLibrary\pythonclient.py", line 85, in _start_command cmd.run_in(new_shell) File "C:\Python27\lib\site-packages\SSHLibrary\abstractclient.py", line 1055, in run_in self._execute() File "C:\Python27\lib\site-packages\SSHLibrary\pythonclient.py", line 201, in _execute self._shell.exec_command(self._command) File "C:\Python27\lib\site-packages\paramiko\channel.py", line 60, in _check return func(self, *args, **kwds) File "C:\Python27\lib\site-packages\paramiko\channel.py", line 229, in exec_command self._wait_for_event() File "C:\Python27\lib\site-packages\paramiko\channel.py", line 1086, in _wait_for_event raise e Any pointers? My script is like this*** Settings ***Library SSHLibrary*** Test Cases ***LoginOpen Connection 124.114.51.211 None 22Login admin admin${output} Execute Command show router interfaceLog ${output}
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Ugh
Does only this command fail, or do all commands fail? If all commands fail, then as a wild guess, could you try this:
*** Test Cases ***
Login
Open Connection 124.114.51.211
Login admin admin
${output}= Execute Command show router interface
Log ${output}
-Tatu
Send from my mobile
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
Ugh
Did the Log keyword output reveal anything out of the ordinary?
-Tatu
Send from my mobile
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
| DEBUG | Traceback (most recent call last): File "C:\Python27\lib\site-packages\SSHLibrary\library.py", line 881, in execute_command stdout, stderr, rc = self.current.execute_command(command) File "C:\Python27\lib\site-packages\SSHLibrary\abstractclient.py", line 219, in execute_command self.start_command(command) File "C:\Python27\lib\site-packages\SSHLibrary\abstractclient.py", line 237, in start_command self._started_commands.append(self._start_command(command)) File "C:\Python27\lib\site-packages\SSHLibrary\pythonclient.py", line 85, in _start_command cmd.run_in(new_shell) File "C:\Python27\lib\site-packages\SSHLibrary\abstractclient.py", line 1055, in run_in self._execute() File "C:\Python27\lib\site-packages\SSHLibrary\pythonclient.py", line 201, in _execute self._shell.exec_command(self._command) File "C:\Python27\lib\site-packages\paramiko\channel.py", line 60, in _check return func(self, *args, **kwds) File "C:\Python27\lib\site-packages\paramiko\channel.py", line 229, in exec_command self._wait_for_event() File "C:\Python27\lib\site-packages\paramiko\channel.py", line 1086, in _wait_for_event raise e |
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
i have tha same problemdid you resolve it?
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/yU-Hn-Z-dEk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.