Search in sources :

Example 1 with RescanHBAsCommand

use of com.iwave.ext.linux.command.RescanHBAsCommand in project coprhd-controller by CoprHD.

the class RescanHBAs method execute.

@Override
public void execute() throws Exception {
    RescanHBAsCommand command = new RescanHBAsCommand();
    command.setHbas(hbas);
    executeCommand(command, SHORT_TIMEOUT);
}
Also used : RescanHBAsCommand(com.iwave.ext.linux.command.RescanHBAsCommand)

Example 2 with RescanHBAsCommand

use of com.iwave.ext.linux.command.RescanHBAsCommand in project coprhd-controller by CoprHD.

the class LinuxSystemCLI method rescan.

@Override
public void rescan() throws Exception {
    ListHBAInfoCommand hbaCommand = new ListHBAInfoCommand();
    executeCommand(hbaCommand, SecureShellSupport.SHORT_TIMEOUT);
    RescanHBAsCommand command = new RescanHBAsCommand();
    command.setHbas(hbaCommand.getResults());
    executeCommand(command, SecureShellSupport.SHORT_TIMEOUT);
}
Also used : RescanHBAsCommand(com.iwave.ext.linux.command.RescanHBAsCommand) ListHBAInfoCommand(com.iwave.ext.linux.command.ListHBAInfoCommand)

Aggregations

RescanHBAsCommand (com.iwave.ext.linux.command.RescanHBAsCommand)2 ListHBAInfoCommand (com.iwave.ext.linux.command.ListHBAInfoCommand)1