I have a script using Paramiko that logs into network devices and runs some arbitrary command. I need to enhance and upgrade this script.
It needs to do the following:
- Login to switches (read in from csv or txt file, doesn't matter).
- Run a command: "show int status | in connected.*716"
The output to that command will look something similar to:
switch1#show int status | in connected.*716
Fa2/0/3 connected 716 a-full a-100 10/100BaseTX
Fa2/0/38 connected 716 a-full a-100 10/100BaseTX
Fa2/0/45 connected 716 a-full a-100 10/100BaseTX
Fa3/0/28 connected 716 a-full a-100 10/100BaseTX
Fa3/0/37 connected 716 a-full a-100 10/100BaseTX
Fa3/0/38 connected 716 a-full a-100 10/100BaseTX
Second Step= I need to take each interface and run the following command:
"show mac address-table | in $INTERFACE"
switch1#show mac address-table | in Gi1/0/22
716 0040.1234.5678 DYNAMIC Gi1/0/22
Third Step= Also for each interface, I need to run this command:
"show interfaces counters errors | in $INTERFACE"
switch1#show interfaces counters errors | in Gi1/0/22
Gi1/0/22 0 32 0 33 0 9
Gi1/0/22 0 0 0 0 0 0 0
(I only need the first line of that output.)
Lastly, it all needs to go into a CSV. It should have:
switch1, interface, mac address, columns of numbers from the third step.
switch1, Gi1/0/22, 0040.1234.5678,0,32,0,33,0,9
Should be a line for each interface on each switch. I will be hitting 50+ switches so multithreading or multiple process at once would be ideal.
I have attached the static script I use now as a reference, in no way does it need to be used. I would like a 24 hour turn around if possible. Please ask ANY questions before getting started. I will have to test for you as I cannot allow outside access to my production network.
Bu iş için 11 freelancer ortalamada $157 teklif veriyor
i can do the job for you but may be it will take few times for testing if you want do it your self so i need each time to send script to execute it and then you send results back
I read the entire project description and also looked at your [login to view URL] file. I can upgrade your script with the changes you want. I only want to know how the output messages are delivered to your script? My assum Daha Fazla
Hi. how is your script working? [login to view URL]("Fa2/0/3 connected 716 a-full a-100 10/100BaseTX\n") [login to view URL]("Fa2/0/38 connected 716 a-full a-100 10/100BaseTX\n") [login to view URL]( Daha Fazla
Hi sir, I am a professional web developer with great experience of 7+ years with specializing in web application development - designing (HTML, JS, Drupal, WordPress, Magento, Bigcommerce, Opencart, PrestaShop, PHP, B Daha Fazla
my main is not programing. i am network eng/ops on large huawei,cisco,juniper network. but in python i have 5 years exp , mainly with focus on data mining from network.. so exactly what you requests is about... Daha Fazla
Hi, I have gone through your project details and I assure I can do it as i got all the skills required for this project. I have already completed a lot of similar projects in the past so it is my pleasure to work Daha Fazla
Hello. I worked with paramiko and i can complate the job. I will test on my env then we can check on yours. Best