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

Class SshSession

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 ssh
source code
 
connect(self, hostname, username=None, password=None)
login to a machine using ssh
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
 
findFullCommand(self, command)
look through the path list to find the full path to this command
source code