Title: python > cisco > execute commands | networkandcode
Open Graph Title: python > cisco > execute commands
X Title: python > cisco > execute commands
Description: devices: 192.168.56.132 #7200 gns3 192.168.56.133 #7200 gns3 10.10.20.48 #csr1000v ~~~~~network admin tool, networkandcode.wordpress.com~~~~~ use at your own risk, try to emulate before testing on production choose a task: 1. dns forward lookup: hostname to ip 2. dns reverse lookup: ip to hostname 3. ping test 4. inventory check(comware) 5. execute same command on multiple devices choice: 5 ~~~~~~~~~ How would you like to provide the device CIs 1. direct input 2. file choice: 1 ~~~~~~~~~ Enter the CIs/IPs, one in each line: 192.168.56.132 192.168.56.133 10.10.20.48 Choose a device type 1. Comware 2. Procurve 3. Aruba 4. Cisco Choice:4 login: cisco password: is there a super / enable password (Y/N) :y enable / super password: How would you like to provide the commands, to be executed 1. direct input 2. file choice: 1 ~~~~~~~~~ Enter the commands, one in each line: sh ip arp sh vlan br sh log sh cdp ne sh ip ro sh bgp sum results are stored here: sh ip arp sh ip arp\192.168.56.132 sh ip arp.txt sh ip arp\192.168.56.133 sh ip arp.txt sh ip arp\10.10.20.48 sh ip arp.txt sh vlan br sh vlan br\192.168.56.132 sh vlan br.txt sh vlan br\192.168.56.133 sh vlan br.txt sh vlan br\10.10.20.48 sh vlan br.txt sh log sh log\192.168.56.132 sh log.txt sh log\192.168.56.133 sh log.txt sh log\10.10.20.48 sh log.txt sh cdp ne sh cdp ne\192.168.56.132 sh cdp ne.txt sh cdp ne\192.168.56.133 sh cdp ne.txt sh cdp ne\10.10.20.48 sh cdp ne.txt sh ip ro sh ip ro\192.168.56.132 sh ip ro.txt sh ip ro\192.168.56.133 sh ip ro.txt sh ip ro\10.10.20.48 sh ip ro.txt sh bgp sum sh bgp sum\192.168.56.132 sh bgp sum.txt sh bgp sum\192.168.56.133 sh bgp sum.txt sh bgp sum\10.10.20.48 sh bgp sum.txt type q to quit, or any other key to issue more commands: q ~~~~~~~~~~~~~~~~~~~~~~~~~~thank you~~~~~~~~~~~~~~~~~~~~~~~~~~ wish to run another task(Y/N)?: n https://networkandcode.wordpress.com/2017/10/28/tool-for-daily-network-tasks/ --end-of-post--
Open Graph Description: devices: 192.168.56.132 #7200 gns3 192.168.56.133 #7200 gns3 10.10.20.48 #csr1000v ~~~~~network admin tool, networkandcode.wordpress.com~~~~~ use at your own risk, try to emulate before testing on production choose a task: 1. dns forward lookup: hostname to ip 2. dns reverse lookup: ip to hostname 3. ping test 4. inventory check(comware) 5. execute same command on multiple devices choice: 5 ~~~~~~~~~ How would you like to provide the device CIs 1. direct input 2. file choice: 1 ~~~~~~~~~ Enter the CIs/IPs, one in each line: 192.168.56.132 192.168.56.133 10.10.20.48 Choose a device type 1. Comware 2. Procurve 3. Aruba 4. Cisco Choice:4 login: cisco password: is there a super / enable password (Y/N) :y enable / super password: How would you like to provide the commands, to be executed 1. direct input 2. file choice: 1 ~~~~~~~~~ Enter the commands, one in each line: sh ip arp sh vlan br sh log sh cdp ne sh ip ro sh bgp sum results are stored here: sh ip arp sh ip arp\192.168.56.132 sh ip arp.txt sh ip arp\192.168.56.133 sh ip arp.txt sh ip arp\10.10.20.48 sh ip arp.txt sh vlan br sh vlan br\192.168.56.132 sh vlan br.txt sh vlan br\192.168.56.133 sh vlan br.txt sh vlan br\10.10.20.48 sh vlan br.txt sh log sh log\192.168.56.132 sh log.txt sh log\192.168.56.133 sh log.txt sh log\10.10.20.48 sh log.txt sh cdp ne sh cdp ne\192.168.56.132 sh cdp ne.txt sh cdp ne\192.168.56.133 sh cdp ne.txt sh cdp ne\10.10.20.48 sh cdp ne.txt sh ip ro sh ip ro\192.168.56.132 sh ip ro.txt sh ip ro\192.168.56.133 sh ip ro.txt sh ip ro\10.10.20.48 sh ip ro.txt sh bgp sum sh bgp sum\192.168.56.132 sh bgp sum.txt sh bgp sum\192.168.56.133 sh bgp sum.txt sh bgp sum\10.10.20.48 sh bgp sum.txt type q to quit, or any other key to issue more commands: q ~~~~~~~~~~~~~~~~~~~~~~~~~~thank you~~~~~~~~~~~~~~~~~~~~~~~~~~ wish to run another task(Y/N)?: n https://networkandcode.wordpress.com/2017/10/28/tool-for-daily-network-tasks/ --end-of-post--
Opengraph URL: /2018/01/25/python-cisco-execute-commands/
Generator: Jekyll v3.9.3
Domain: networkandcode.github.io
{"@context":"https://schema.org","@type":"BlogPosting","dateModified":"2018-01-25T18:09:15+00:00","datePublished":"2018-01-25T18:09:15+00:00","description":"devices: 192.168.56.132 #7200 gns3 192.168.56.133 #7200 gns3 10.10.20.48 #csr1000v ~~~~~network admin tool, networkandcode.wordpress.com~~~~~ use at your own risk, try to emulate before testing on production choose a task: 1. dns forward lookup: hostname to ip 2. dns reverse lookup: ip to hostname 3. ping test 4. inventory check(comware) 5. execute same command on multiple devices choice: 5 ~~~~~~~~~ How would you like to provide the device CIs 1. direct input 2. file choice: 1 ~~~~~~~~~ Enter the CIs/IPs, one in each line: 192.168.56.132 192.168.56.133 10.10.20.48 Choose a device type 1. Comware 2. Procurve 3. Aruba 4. Cisco Choice:4 login: cisco password: is there a super / enable password (Y/N) :y enable / super password: How would you like to provide the commands, to be executed 1. direct input 2. file choice: 1 ~~~~~~~~~ Enter the commands, one in each line: sh ip arp sh vlan br sh log sh cdp ne sh ip ro sh bgp sum results are stored here: sh ip arp sh ip arp\\192.168.56.132 sh ip arp.txt sh ip arp\\192.168.56.133 sh ip arp.txt sh ip arp\\10.10.20.48 sh ip arp.txt sh vlan br sh vlan br\\192.168.56.132 sh vlan br.txt sh vlan br\\192.168.56.133 sh vlan br.txt sh vlan br\\10.10.20.48 sh vlan br.txt sh log sh log\\192.168.56.132 sh log.txt sh log\\192.168.56.133 sh log.txt sh log\\10.10.20.48 sh log.txt sh cdp ne sh cdp ne\\192.168.56.132 sh cdp ne.txt sh cdp ne\\192.168.56.133 sh cdp ne.txt sh cdp ne\\10.10.20.48 sh cdp ne.txt sh ip ro sh ip ro\\192.168.56.132 sh ip ro.txt sh ip ro\\192.168.56.133 sh ip ro.txt sh ip ro\\10.10.20.48 sh ip ro.txt sh bgp sum sh bgp sum\\192.168.56.132 sh bgp sum.txt sh bgp sum\\192.168.56.133 sh bgp sum.txt sh bgp sum\\10.10.20.48 sh bgp sum.txt type q to quit, or any other key to issue more commands: q ~~~~~~~~~~~~~~~~~~~~~~~~~~thank you~~~~~~~~~~~~~~~~~~~~~~~~~~ wish to run another task(Y/N)?: n https://networkandcode.wordpress.com/2017/10/28/tool-for-daily-network-tasks/ --end-of-post--","headline":"python > cisco > execute commands","mainEntityOfPage":{"@type":"WebPage","@id":"/2018/01/25/python-cisco-execute-commands/"},"url":"/2018/01/25/python-cisco-execute-commands/"}
| None | IE=edge |
| og:locale | en_US |
| og:site_name | networkandcode |
| og:type | article |
| article:published_time | 2018-01-25T18:09:15+00:00 |
| twitter:card | summary |
Links:
Viewport: width=device-width, initial-scale=1