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 pprint import pprint | |
from trigger.cmds import Commando | |
from twisted.python import log | |
from trigger.netdevices import NetDevices | |
commands = ['show clock', 'show version', 'show ip int brief', 'show inventory', 'show run | in cisco'] | |
if __name__ == '__main__': |
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 trigger.netdevices import NetDevices | |
def print_results_1(results): | |
print "1" |
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 trigger.netdevices import NetDevices | |
def print_results_1(results): | |
print "1" |
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 twisted.conch import error | |
from twisted.conch.ssh import transport | |
from twisted.internet import defer | |
from twisted.conch.ssh import keys, userauth | |
from twisted.conch.ssh import connection | |
from twisted.conch.ssh import channel, common | |
from twisted.python import log | |
# these are the public/private keys from test_conch |
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
# -*- coding: utf-8 -*- | |
""" | |
Login and basic command-line interaction support using the Twisted asynchronous | |
I/O framework. The Trigger Twister is just like the Mersenne Twister, except | |
not at all. | |
""" | |
import copy | |
import fcntl |
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 | |
if __name__ == '__main__': | |
import sys | |
import test_ssh_base | |
from twisted.internet.task import react | |
react(test_ssh_base.main, sys.argv[1:]) | |
import os, getpass |
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
# -*- coding: utf-8 -*- | |
""" | |
Login and basic command-line interaction support using the Twisted asynchronous | |
I/O framework. The Trigger Twister is just like the Mersenne Twister, except | |
not at all. | |
""" | |
import copy | |
import fcntl |
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
# -*- coding: utf-8 -*- | |
""" | |
Login and basic command-line interaction support using the Twisted asynchronous | |
I/O framework. The Trigger Twister is just like the Mersenne Twister, except | |
not at all. | |
""" | |
import copy | |
import fcntl |
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 | |
if __name__ == '__main__': | |
import sys | |
import test_ssh_base | |
from twisted.internet.task import react | |
react(test_ssh_base.main, sys.argv[1:]) | |
import os, getpass |
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
# -*- coding: utf-8 -*- | |
""" | |
Login and basic command-line interaction support using the Twisted asynchronous | |
I/O framework. The Trigger Twister is just like the Mersenne Twister, except | |
not at all. | |
""" | |
import copy | |
import fcntl |