Created
April 27, 2016 13:25
-
-
Save tcuthbert/f965d7683062f0a14bb0e496f290267c 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
import sys | |
from datetime import datetime, time | |
from pprint import pprint | |
from trigger.cmds import Commando | |
from twisted.python import log | |
from twisted.internet import reactor | |
from trigger.netdevices import NetDevices, NetDevice | |
if __name__ == '__main__': | |
log.startLogging(sys.stdout) | |
nd = NetDevices() | |
dev = nd.find('r1.demo.local') | |
ved = nd.find('r1.demo.local') | |
dev.open() | |
commands = ['term length 0', 'show buffers'] | |
dev.run_commands(commands) | |
dev.run_commands(['show int desc']) | |
dev.run_commands(commands) | |
dev.get_results() | |
# dev.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment