Created
June 9, 2016 12:29
-
-
Save tcuthbert/f5f4d94da8dc1a837e0d29ddb8028cf6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
from twisted.python import log | |
from time import sleep | |
log.startLogging(sys.stdout, setStdout=False) | |
from trigger.netdevices import NetDevices, NetDevice | |
nd = NetDevices() | |
dev = nd.find('r1.demo.local') | |
dev2 = nd.find('arista-sw1') | |
dev.open() | |
dev2.open() | |
while True: | |
r01 = dev.run_commands(['show clock', 'show interface stats']) | |
r02 = dev.run_commands(['show ip int brief']) | |
r03 = dev.run_commands(['show version', 'show ip arp', 'show ip route']) | |
r04 = dev.run_commands(['show clock', 'show interface stats', 'show ip int brief', 'show version', 'show ip arp', 'show ip route']) | |
r11 = dev2.run_commands(['show clock', 'show ip access-list']) | |
r12 = dev2.run_commands(['show ip int brief']) | |
r13 = dev2.run_commands(['show version']) | |
r14 = dev2.run_commands(['show ip arp', 'show uptime', 'show vlan']) | |
r15 = dev2.run_commands(['show int transceiver', 'show int desc', 'show ip arp', 'show vlan brief', 'show processes']) | |
sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment