Trees | Indices | Help |
|
---|
|
|
|||
TelnetClientProtocol State-machine-based class for telnet |
|||
TelnetClient Reactor code to start communications and invoke our telnet transport mechanism. |
|||
FakePlugin Fake class to provide plugin instances for command-line processing. |
|
|||
integer |
|
||
|
|||
list of FakePlugins |
|
||
|
|
|||
__doc__ = """TelnetCli
|
|||
log = logging.getLogger("zen.TelnetClient")
|
|||
defaultPromptTimeout = 10
|
|||
defaultLoginRegex = 'ogin:.$'
|
|||
defaultPasswordRegex = 'assword:'
|
|||
defaultEnable = False
|
|||
defaultEnableRegex = 'assword:'
|
|||
defaultEnablePassword = ''
|
|||
defaultTermLength = False
|
|||
responseMap = "WILL", "WONT", "DO", "DONT"
|
|
Check to see if a device supports telnet
To Do: support alternate ports |
The TelntClient class expects plugins. Convert commands like 'ls a', 'ls b' to plugin instances. Duplicate commands will (eventually) be removed. This is used to support command-line arguments.
|
Test harness main() Usage: python TelnetClient.py hostname[:port] comand [command] Each command must be enclosed in quotes (") to be interpreted properly as a complete unit. |
|
__doc__
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1.1812 on Tue Oct 11 12:51:16 2011 | http://epydoc.sourceforge.net |