Giter Club home page Giter Club logo

csc_scripts's People

Contributors

sebrupik avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

lwlxwang

csc_scripts's Issues

JunOS error

When I run the script on my SRX100H2, I get the following error after a while:

Timed-out reading channel, data not available.
Traceback (most recent call last):
File "cb.py", line 77, in
main()
File "cb.py", line 63, in main
tar_file = tarfile.open("./output/{0}".format(tarfile_name), "w:gz")
File "/usr/lib64/python3.6/tarfile.py", line 1591, in open
return func(name, filemode, fileobj, **kwargs)
File "/usr/lib64/python3.6/tarfile.py", line 1638, in gzopen
fileobj = gzip.GzipFile(name, mode + "b", compresslevel, fileobj)
File "/usr/lib64/python3.6/gzip.py", line 163, in init
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: './output/configs-2020-11-19-1511.tar.gz'

Where is this file supposed to be created?

paramiko.ssh_exception.AuthenticationException: Authentication failed. (

Hello again,

The script throws the above error now.
Tht traceback is as follows:

(sebrupik) [tdadmin@nl-ehv-torvalds sebrupik]$ python3 configbup.py -c switchlist.csv
SSH username: mspadmin
SSH Password:
Server username:mspadmin
Server SSH Password:
+++++ 10.100.100.46 +++++
Timed-out reading channel, data not available.
Traceback (most recent call last):
File "configbup.py", line 80, in
main()
File "configbup.py", line 73, in main
ssh_client.connect(REMOTE_SERVER_IP, username=remote_username, password=remote_password)
File "/home/tdadmin/.local/share/virtualenvs/sebrupik-MSXbSfC-/lib/python3.6/site-packages/paramiko/client.py", line 446, in connect
passphrase,
File "/home/tdadmin/.local/share/virtualenvs/sebrupik-MSXbSfC-/lib/python3.6/site-packages/paramiko/client.py", line 764, in _auth
raise saved_exception
File "/home/tdadmin/.local/share/virtualenvs/sebrupik-MSXbSfC-/lib/python3.6/site-packages/paramiko/client.py", line 751, in _auth
self._transport.auth_password(username, password)
File "/home/tdadmin/.local/share/virtualenvs/sebrupik-MSXbSfC-/lib/python3.6/site-packages/paramiko/transport.py", line 1509, in auth_password
return self.auth_handler.wait_for_response(my_event)
File "/home/tdadmin/.local/share/virtualenvs/sebrupik-MSXbSfC-/lib/python3.6/site-packages/paramiko/auth_handler.py", line 250, in wait_for_response
raise e
paramiko.ssh_exception.AuthenticationException: Authentication failed.
(sebrupik) [tdadmin@nl-ehv-torvalds sebrupik]$

I was wondering about this:
When I use SSH directly to connect to the SRX, I get in using only one set of username/password. Why does it ask for it twice?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.