Skip to content

Instantly share code, notes, and snippets.

@tcuthbert
Created April 27, 2016 13:25
Show Gist options
  • Save tcuthbert/f965d7683062f0a14bb0e496f290267c to your computer and use it in GitHub Desktop.
Save tcuthbert/f965d7683062f0a14bb0e496f290267c to your computer and use it in GitHub Desktop.
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