Link to home
Start Free TrialLog in
Avatar of Shark Attack
Shark Attack

asked on

getting error when importing

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

User generated image
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of Bill Prew
Bill Prew

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
ASKER CERTIFIED SOLUTION
Avatar of Shark Attack
Shark Attack

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shark Attack

ASKER

just started working