Search in sources :

Example 1 with SSHCommandExecutor

use of com.iwave.utility.ssh.SSHCommandExecutor in project coprhd-controller by CoprHD.

the class AixSystem method executeCommand.

@Override
public void executeCommand(Command command, int timeout) {
    SSHCommandExecutor executor = new SSHCommandExecutor(getHost(), getPort(), getUsername(), getPassword());
    executor.setCommandTimeout(timeout);
    command.setCommandExecutor(executor);
    command.execute();
}
Also used : SSHCommandExecutor(com.iwave.utility.ssh.SSHCommandExecutor)

Example 2 with SSHCommandExecutor

use of com.iwave.utility.ssh.SSHCommandExecutor in project coprhd-controller by CoprHD.

the class LinuxSystemCLI method executeCommand.

public void executeCommand(Command command, int timeout) {
    SSHCommandExecutor executor = new SSHCommandExecutor(host, port, username, password);
    executor.setCommandTimeout(timeout);
    command.setCommandExecutor(executor);
    command.execute();
}
Also used : SSHCommandExecutor(com.iwave.utility.ssh.SSHCommandExecutor)

Example 3 with SSHCommandExecutor

use of com.iwave.utility.ssh.SSHCommandExecutor in project coprhd-controller by CoprHD.

the class LinuxExecutionTask method createCommandExecutor.

protected SSHCommandExecutor createCommandExecutor(int timeout) {
    SSHCommandExecutor executor = new SSHCommandExecutor(targetCLI.getHost(), targetCLI.getPort(), targetCLI.getUsername(), targetCLI.getPassword());
    executor.setCommandTimeout(timeout);
    return executor;
}
Also used : SSHCommandExecutor(com.iwave.utility.ssh.SSHCommandExecutor)

Example 4 with SSHCommandExecutor

use of com.iwave.utility.ssh.SSHCommandExecutor in project coprhd-controller by CoprHD.

the class HpuxExecutionTask method createCommandExecutor.

protected SSHCommandExecutor createCommandExecutor(int timeout) {
    SSHCommandExecutor executor = new SSHCommandExecutor(targetCLI.getHost(), targetCLI.getPort(), targetCLI.getUsername(), targetCLI.getPassword());
    executor.setCommandTimeout(timeout);
    return executor;
}
Also used : SSHCommandExecutor(com.iwave.utility.ssh.SSHCommandExecutor)

Example 5 with SSHCommandExecutor

use of com.iwave.utility.ssh.SSHCommandExecutor in project coprhd-controller by CoprHD.

the class AixExecutionTask method createCommandExecutor.

protected SSHCommandExecutor createCommandExecutor(int timeout) {
    SSHCommandExecutor executor = new SSHCommandExecutor(targetCLI.getHost(), targetCLI.getPort(), targetCLI.getUsername(), targetCLI.getPassword());
    executor.setCommandTimeout(timeout);
    return executor;
}
Also used : SSHCommandExecutor(com.iwave.utility.ssh.SSHCommandExecutor)

Aggregations

SSHCommandExecutor (com.iwave.utility.ssh.SSHCommandExecutor)8 Command (com.iwave.ext.command.Command)1