2 Replies Latest reply: Jul 29, 2015 9:32 AM by Andre Dieball RSS

SteelScript SteelHead Connection error

Andre Dieball

Hi

 

I testing a bit with SteelScript and got it working on one machine. As this machine is in production, I wanted to switch to a virtual test machine for further testing.

This is running RiOS 9.1.0

 

when connection with steel script, I get:

 

---cut---

No handlers could be found for logger "steelscript.cmdline.sshprocess"

Traceback (most recent call last):

  File "sysdump_createanddownload_scp.py", line 111, in <module>

    main()

  File "sysdump_createanddownload_scp.py", line 48, in main

    print "Connected to " + appliance + " in " + sh.cli.current_cli_mode() + " mode"

  File "/Users/adieball/.virtualenvs/steelscript/lib/python2.7/site-packages/steelscript/steelhead/core/steelhead.py", line 68, in cli

    self._cli.start()

  File "/Users/adieball/.virtualenvs/steelscript/lib/python2.7/site-packages/steelscript/cmdline/cli/rvbd_cli.py", line 81, in start

    super(RVBD_CLI, self).start(start_prompt=start_prompt)

  File "/Users/adieball/.virtualenvs/steelscript/lib/python2.7/site-packages/steelscript/cmdline/cli/__init__.py", line 159, in start

    self.channel.start(start_prompt)

  File "/Users/adieball/.virtualenvs/steelscript/lib/python2.7/site-packages/steelscript/cmdline/sshchannel.py", line 95, in start

    self.sshprocess.connect()

  File "/Users/adieball/.virtualenvs/steelscript/lib/python2.7/site-packages/steelscript/cmdline/sshprocess.py", line 67, in connect

    raise exceptions.ConnectionError

steelscript.cmdline.exceptions.ConnectionError: Connection error.

---cut---

 

I have no idea what could be wrong, as it's working perfectly fine on the production unit.

 

The virtual Steelhead is up and running, I can log in via ssh and web UI, system status is healthy ...

 

any help is highly appreciated.

 

Andre

  • Re: SteelScript SteelHead Connection error
    Wenxuan Guo

    Hello,

     

    As the current code capture the exception and does not give much output, can you run the following code and post the detailed exception info?

    ======

    transport = paramiko.Transport(host, 22)

    transport.banner_timeout = 5

    transport.start_client()

    transport.auth_password(user, password, fallback=True)

    =======

     

    BTW, does your download script work on a steelhead? if yes, can you post your solution at the

    other thread? that way other people can benefit from your experience

     

    thanks,

    wenxuan