We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!

x

getting error when importing

119 Views
Last Modified: 2018-02-06
I have an ssh client called "termius" to import all my hosts from a notepad. I am using a script with python and github to make all this work. I dont know much about scripting at all but I've been provided with all these tools to make this work. Does anyone know what the error below mean? As you can see the import was successful but it errors out later. I'm using a siple notepad file. I provided a snip it of how it looks.

notepad:
Abilene North Place,10.50.72.254
Abilene South Place,10.50.65.254
Abilene west Place,10.50.65.251
Addison Place,10.50.27.254
test 500,5.5.5.5

a.png
Comment
Watch Question

Chris DentPowerShell Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
The website you're talking to isn't providing much of a valid response. Either there's a problem with the site, or the URL you have in the script is incorrect.

It's not really a problem of how you're running it, unless you were expected to provide a URL on the command line.
Bill PrewTest your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Top Expert 2016

Commented:
Well, 502 errors can be a wide range of things.  Does the script go out to the internet for some reason?

It looks like you are running part of this as/from a Powershell command shell, is there Powershell code?  And also python I assume?  You will need to post those scripts here if you want to get some help I would expect, it's pretty hard to diagnose problems without them.

Are you just trying to add the hosts from this text file to the local hosts file on a single computer?  If so this feels like the hard way to do that, but I suspect there is more to it than that?


ยปbp
Network admin
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Shark AttackNetwork admin

Author

Commented:
just started working
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.