Skip to content

Instantly share code, notes, and snippets.

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__':
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"
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"
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
# -*- 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
#!/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
# -*- 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
# -*- 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
#!/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
# -*- 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