com.hp.ucmdb.discovery.library.clients.shell
Class SSHClient

java.lang.Object
  extended by com.hp.ucmdb.discovery.library.clients.BaseClient
      extended by com.hp.ucmdb.discovery.library.clients.shell.ShellClient
          extended by com.hp.ucmdb.discovery.library.clients.shell.SSHClient

public class SSHClient
extends ShellClient

SSHclient runs shell commands using SSH. For a creation example, see ShellClient.

Properties that can be redefined for SSHClient:

See Also:
ShellClient, ClientFactory, com.hp.ucmdb.discovery.probe.clients.ClientsConsts

Field Summary
 
Fields inherited from class com.hp.ucmdb.discovery.library.clients.shell.ShellClient
UNIX_CMD_SEPARATOR, WIN_CMD_SEPARATOR
 
Fields inherited from class com.hp.ucmdb.discovery.library.clients.BaseClient
CREDENTIALS_ID, ENCODING
 
Constructor Summary
SSHClient(ClientsFrameworkImpl framework, java.util.Properties props)
           
 
Method Summary
 java.lang.String getKeyPath()
          Returns the key file path from the protocol definition.
 int getPort()
          Returns the port from the protocol definition.
 boolean supportsSudo()
           
 
Methods inherited from class com.hp.ucmdb.discovery.library.clients.shell.ShellClient
canCopyFile, deleteFile, executeCmd, executeCmd, executeCmd, executeCmd, executeCmdWithTimeOut, getFile, getLastCommandOutputBytes, getMaxCommandLength, getServerPort, getWelcomeBuffer, putFile, setCharset, setMaxCommandLength
 
Methods inherited from class com.hp.ucmdb.discovery.library.clients.BaseClient
close, getClientType, getCredentialId, getIpAddress, getProperty, getShellCmdSeperator, getSudoCommands, getSudoPaths, getTimeout, getUserName, isConnected
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSHClient

public SSHClient(ClientsFrameworkImpl framework,
                 java.util.Properties props)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getPort

public int getPort()
            throws java.lang.Exception
Returns the port from the protocol definition. The port can be overidden in the properties at client creation.

Returns:
The SSH port for client connection
Throws:
java.lang.Exception
See Also:
ClientFactory

getKeyPath

public java.lang.String getKeyPath()
                            throws java.lang.Exception
Returns the key file path from the protocol definition. The path can be overidden in the properties at client creation.

Returns:
The path to the key file for secure connection
Throws:
java.lang.Exception
See Also:
ClientFactory

supportsSudo

public boolean supportsSudo()
Overrides:
supportsSudo in class BaseClient


Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.