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

Class TelnetSession

source code

Instance Methods [hide private]
 
__init__(self, searchPath=[], existenceCheck='test -f %s', options=None, context=None, log=None) source code
 
check(self, hostname, timeout=1)
check to see if a device supports telnet
source code
 
connect(self, hostname, username, password)
login to a machine using telnet
source code
 
execute(self, command, timeout=None)
run a command that will be found by our path if it has been passed and return its output
source code
 
_execute(self, command, timeout=None)
run a command using the shell path and return its output
source code
 
disconnect(self)
close the telnet session
source code
 
guessCommandPrompt(self)
figure out the command cmdprompt string by issuing a bunch of s
source code
 
findFullCommand(self, command)
look through the path list to find the full path to this command
source code