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

Module TelnetClient

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
zTelnetPromptTimeout - 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:.$'

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: TelnetClient.py,v 1.15 2004/04/05 02:05:30 edahl Exp $




Version: 1.15

Classes [hide private]
  TelnetClientProtocol
  TelnetClient
Functions [hide private]
 
check(hostname)
check to see if a device supports telnet
source code
 
buildOptions(parser=None, usage=None) source code
 
main() source code
Variables [hide private]
  __doc__ = """TelnetSess...
  log = logging.getLogger("zen.TelnetClient")
  defaultPromptTimeout = 10
  defaultCommandTimeout = 20
  defaultLoginRegex = 'ogin:.$'
  defaultPasswordRegex = 'assword:'
  defaultEnable = False
  defaultTermLength = False
  responceMap = ('WILL', 'WONT', 'DO', 'DONT')
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
...