Package DataCollector :: Module TelnetSession
[hide private]
[frames] | no frames]

Module TelnetSession

source code

TelnetSession

TelnetSession is used by TelnetSession to issue commands to a machine
and return their output over the telnet protocol.

Device Tree Parameters are:

zTelnetLoginTries - number of times to try login default: 1
zTelnetLoginTimeout - timeout for expect statements during login default: 2
zTelnetPromptPause - pause used during prompt discovery default: 0.2
zTelnetCommandTimeout - default timeout when executing a command default: 5
zTelnetLoginRegex - regex to match the login prompt default: 'ogin:.$'
zTelnetPasswordRegex - regext to match the password prompt default: 'assword:.$'
zTelnetSuccessRegexList - list of regex that match good login prompts
                            default: [ '\$.$', '\#.$' ]

Other Parameters that are used by both TelnetSession and SshTransport:
zCommandPathList - list of path to check for a command
zCommandExistanceCheck - shell command issued to look for executible
                        must echo succ if executible is found
                        default: test -f executible

$Id: TelnetSession.py,v 1.5 2004/02/14 19:11:00 edahl Exp $




Version: 1.5

Classes [hide private]
  TelnetSession
Functions [hide private]
 
main() source code
Variables [hide private]
  __doc__ = """TelnetSess...
Variables Details [hide private]

__doc__

Value:
"""TelnetSession

TelnetSession is used by TelnetSession to issue commands to a machine
and return their output over the telnet protocol.

Device Tree Parameters are:

zTelnetLoginTries - number of times to try login default: 1
...