|
|
@ -12,12 +12,9 @@ import mitogen.parent
|
|
|
|
import mitogen.ssh
|
|
|
|
import mitogen.ssh
|
|
|
|
import mitogen.sudo
|
|
|
|
import mitogen.sudo
|
|
|
|
|
|
|
|
|
|
|
|
broker = mitogen.master.Broker()
|
|
|
|
router = mitogen.master.Router()
|
|
|
|
|
|
|
|
|
|
|
|
router = mitogen.core.Router(broker)
|
|
|
|
|
|
|
|
context = mitogen.master.Context(router, 0)
|
|
|
|
context = mitogen.master.Context(router, 0)
|
|
|
|
stream = mitogen.ssh.Stream(router, 0, hostname='foo')
|
|
|
|
stream = mitogen.ssh.Stream(router, 0, hostname='foo')
|
|
|
|
broker.shutdown()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print 'SSH command size: %s' % (len(' '.join(stream.get_boot_command())),)
|
|
|
|
print 'SSH command size: %s' % (len(' '.join(stream.get_boot_command())),)
|
|
|
|
print 'Preamble size: %s (%.2fKiB)' % (
|
|
|
|
print 'Preamble size: %s (%.2fKiB)' % (
|
|
|
|