Dec-17-2019, 04:01 PM
Hello everyone, new learner here. I'm taking Kirk Byers free 'Python for Network Engineers' course and am reading 'Learn Python the Hard Way'.
With Kirk Byers course, I'd like to get more familiar with Netmiko. I can create SSH sessions to a single device and run commands. However, I'd like to be able to connect to multiple devices using a dictionary and that is where I am stuck.
We use SolarWinds here at work, and I can export our inventory of network devices to a *.csv file. So, row 1 will have 'IP_Address,NodeName,(a bunch of others info I don't care about)'. I'd like to somehow create a dictionary that will use a header for IP Address and Node Name. Then call that dictionary for Netmiko to cycle through.
I hope that makes sense. I have been digging into the csv library and pandas... but I just can't get it to output to a dictionary.
If anyone can assist, I'd appreciate it.
With Kirk Byers course, I'd like to get more familiar with Netmiko. I can create SSH sessions to a single device and run commands. However, I'd like to be able to connect to multiple devices using a dictionary and that is where I am stuck.
We use SolarWinds here at work, and I can export our inventory of network devices to a *.csv file. So, row 1 will have 'IP_Address,NodeName,(a bunch of others info I don't care about)'. I'd like to somehow create a dictionary that will use a header for IP Address and Node Name. Then call that dictionary for Netmiko to cycle through.
I hope that makes sense. I have been digging into the csv library and pandas... but I just can't get it to output to a dictionary.
If anyone can assist, I'd appreciate it.