So here is the deal. I just went through a 5 day Python 3.x programming course and I'm trying to build off of my basic syntax knowledge. My first project is going to be how to use OS level commands and specifically ping a router and get the IP address and Interface description from a router/switch configuration file.I am *NOT* asking or wanting anyone to do this for me. I am just kinda lost as to how I would approach this project. Here is how I think this script would work and I would love feedback as I figure this out.
Create a txt file with the IP addresses I want to ping
insert into a list within python... list = [name,ip,password]
Use a while loop to complete the following ping function :
ping function (no idea, still trying to find one online)
If no response or the IP starts with 127.0, print "No response"
else print (results)
The idea of this program is just to get my feet wet with Python in the networking realm. I would love if someone could hint me in the right direction, but please don't do it for me.