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

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.TelnetClient

public class TelnetClient
extends ShellClient

TelnetClient runs shell commands using Telnet. For a creation example see ShellClient.

Properties that can be redefined for TelnetClient:

See the creation example in the ShellClient reference.

See Also:
ShellClient, ClientFactory

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
TelnetClient(ClientsFrameworkImpl framework, java.util.Properties props)
           
 
Method Summary
 java.lang.String getLoginMessage()
          Returns the host's login message.
 int getPort()
          Returns the port from the protocol definition.
 java.lang.String getWelcomeBanner()
          Returns the host's welcome banner.
 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

TelnetClient

public TelnetClient(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

getWelcomeBanner

public java.lang.String getWelcomeBanner()
                                  throws java.lang.Exception
Returns the host's welcome banner. This information is available after the connection is made.

Returns:
The welcome banner
Throws:
java.lang.Exception

getLoginMessage

public java.lang.String getLoginMessage()
                                 throws java.lang.Exception
Returns the host's login message. This information is available after the connection is made.

Returns:
The login message
Throws:
java.lang.Exception

supportsSudo

public boolean supportsSudo()
Overrides:
supportsSudo in class BaseClient


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