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

# Class TelnetClient

source code

                                 object --+
                                          |
                      BaseClient.BaseClient --+
                                              |
      twisted.internet.protocol.Factory --+   |
                                          |   |
    twisted.internet.protocol.ClientFactory --+
                                              |
                CollectorClient.CollectorClient --+
                                                  |
                                                 TelnetClient

Reactor code to start communications and invoke our telnet transport mechanism.

Instance Methods | [hide private]
__init__(self, hostname, ip, port, plugins=[], options=None, device=None, datacollector=None) Initializer | source code
run(self) Start telnet collection. | source code
Command(self, commands) Add new commands to be run reset cmdindex to 0 | source code
clientConnectionFailed(self, connector, reason) If we don't connect let the modeler know | source code
Inherited from `CollectorClient.CollectorClient`: `addCommand`, `addResult`, `clientFinished`, `commandsFinished`, `getCommands`, `getResults` Inherited from `BaseClient.BaseClient`: `stop` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__` Inherited from `twisted.internet.protocol.ClientFactory`: `clientConnectionLost`, `startedConnecting` Inherited from `twisted.internet.protocol.Factory`: `buildProtocol`, `doStart`, `doStop`, `startFactory`, `stopFactory`

Class Variables | [hide private]
Inherited from `CollectorClient.CollectorClient`: `cmdindex`, `maintainConnection` Inherited from `twisted.internet.protocol.Factory`: `noisy`, `numPorts`, `protocol`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, hostname, ip, port, plugins=[], options=None, device=None, datacollector=None) (Constructor) | source code
Initializer Parameters: `hostname` (string) - hostname of the device `ip` (string) - IP address of the device `port` (integer) - port number to use to connect to device `plugins` (list of plugins) - plugins `options` (list) - options `device` (string) - name of device `datacollector` (object) - object Overrides: CollectorClient.CollectorClient.__init__

### run(self) | source code
Start telnet collection. Overrides: BaseClient.BaseClient.run

### Command(self, commands) | source code
Add new commands to be run reset cmdindex to 0 Parameters: `commands` (list of commands) - commands to run on the remote device

### clientConnectionFailed(self, connector, reason) | source code
If we don't connect let the modeler know Parameters: `connector` (unused) - unused (unused) `reason` (string) - error message to report Overrides: twisted.internet.protocol.ClientFactory.clientConnectionFailed