public class TelnetClient extends ShellClient
TelnetClient
runs shell commands using Telnet.
For a creation example see ShellClient
.
java.util.List
) specified by
AgentConstants.PROP_AGENT_OUTPUT_MATCHERS
is the list of strings
that indicate end-of-output to the client.
ShellClient
reference.ShellClient
,
ClientFactory
BaseClient.FilteredMethodsHandler
UNIX_CMD_SEPARATOR, WIN_CMD_SEPARATOR
CREDENTIALS_ID, ENCODING
Constructor and Description |
---|
TelnetClient(ClientsFrameworkImpl framework,
java.util.Properties props) |
Modifier and Type | Method and Description |
---|---|
void |
executeSuCommand() |
void |
exitFromSu() |
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 |
isInSuMode() |
boolean |
isSuConfigured() |
boolean |
supportsSudo() |
canCopyFile, deleteFile, deleteOption, downloadFile, executeCmd, executeCmd, executeCmd, executeCmd, executeCmd, executeCmdWithTimeOut, getBandwidthLimit, getErrorVariable, getFile, getLastCommandOutputBytes, getMaxCommandLength, getOptionsDirectory, getOptionsMap, getRemotePlatform, getServerPort, getWelcomeBuffer, putFile, setBandwidthLimit, setCharset, setErrorVariable, setMaxCommandLength, setOptionIfNotExist, setOptionsDirectory, setOptionsMap, setOptionsMap, setRemotePlatform, uploadFile
addDeniedPackage, close, getClientType, getCredentialId, getIpAddress, getProperty, getShellCmdSeperator, getSudoCommands, getSudoPaths, getTimeout, getUserName, isConnected, setAttributeEncrypted
public TelnetClient(ClientsFrameworkImpl framework, java.util.Properties props) throws java.lang.Exception
java.lang.Exception
public int getPort() throws java.lang.Exception
java.lang.Exception
ClientFactory
public java.lang.String getWelcomeBanner() throws java.lang.Exception
java.lang.Exception
public java.lang.String getLoginMessage() throws java.lang.Exception
java.lang.Exception
public boolean supportsSudo()
supportsSudo
in class BaseClient
public void executeSuCommand() throws java.lang.Exception
java.lang.Exception
public void exitFromSu() throws java.lang.Exception
java.lang.Exception
public boolean isInSuMode()
public boolean isSuConfigured()
Documentation Feedback
Copyright 2012 Micro Focus or one of its affiliates.