Package DataCollector :: Module SshClient :: Class SshClient
[hide private]
[frames] | no frames]

Class SshClient

source code

  twisted.internet.protocol.Factory --+        
                                      |        
twisted.internet.protocol.ClientFactory --+    
                                          |    
            CollectorClient.CollectorClient --+
                                              |
                                             SshClient

Instance Methods [hide private]
 
__init__(self, hostname, ip, port=22, commands=[], options=None, device=None, datacollector=None) source code
 
run(self)
Start ssh collection.
source code
 
serviceStarted(self, sshconn)
run commands that are in the command queue
source code
 
addCommand(self, commands)
add command to queue and open a command channel for a command
source code
 
loseConnection(self) source code

Inherited from CollectorClient.CollectorClient: addResult, clientFinished, commandsFinished, getCommands, getResults

Inherited from twisted.internet.protocol.ClientFactory: clientConnectionFailed, clientConnectionLost, startedConnecting

Inherited from twisted.internet.protocol.Factory: __providedBy__, buildProtocol, doStart, doStop, startFactory, stopFactory

Class Variables [hide private]

Inherited from CollectorClient.CollectorClient: cmdindex, maintainConnection

Inherited from twisted.internet.protocol.Factory: __implemented__, __provides__, noisy, numPorts, protocol

Method Details [hide private]

__init__(self, hostname, ip, port=22, commands=[], options=None, device=None, datacollector=None)
(Constructor)

source code 
Overrides: CollectorClient.CollectorClient.__init__

addCommand(self, commands)

source code 
add command to queue and open a command channel for a command
Overrides: CollectorClient.CollectorClient.addCommand