Package Products :: Package DataCollector :: Module SshClient |
[hide private]
[frames] | no frames]

# Module SshClient

source code

Classes | [hide private]
| SshClientError Exception class
| SshClientTransport Base client class for constructing Twisted Conch services.
| NoPasswordException
| SshUserAuth Class to gather credentials for use with our SSH connection, and use them to authenticate against the remote device.
| SshConnection Wrapper class that starts channels on top of connections.
| CommandChannel The class that actually interfaces between Zenoss and the device.
| SshClient SSH Collector class to connect to a particular device

Functions | [hide private]
sendEvent(self, message="", device='', severity=Event.Error) Shortcut version of sendEvent() | source code
main() Test harness main() | source code

Variables | [hide private]
| __doc__ = `"""SshClient runs commands on a remote box using SSH`...``
| log = `logging.getLogger("zen.SshClient")`

Function Details | [hide private]

### sendEvent(self, message="", device='', severity=Event.Error) | source code
Shortcut version of sendEvent() Parameters: `message` (string) - message to send in Zenoss event `device` (string) - hostname of device to which this event is associated `severity` (integer) - Zenoss severity from Products.ZenEvents

### main() | source code
Test harness main() Usage: python SshClient.py hostname[:port] comand [command] Each command must be enclosed in quotes (") to be interpreted properly as a complete unit.

Variables Details | [hide private]

  ### __doc__ Value:
      """SshClient runs commands on a remote box using SSH and
      returns their results.

      See http://twistedmatrix.com/trac/wiki/Documentation for Twisted docum
      entation,
      specifically documentation on 'conch' (Twisted's SSH protocol support)
      .
      """