@Test @Ignore public void testShutdownViaSsh() throws IOException { ZoneMinderUtils.shutdownZmHost("ubuntu-zm", "username", "password"); }
public static String shutdownZmHost(String host, String username, String password) throws IOException { Shell shell = new SSHByPassword(host, 22, username, password); return new Shell.Plain(shell).exec("sudo shutdown -h now"); }
ZoneMinderUtils { public static String shutdownZmHost(String host, String username, String password) throws IOException { Shell shell = new SSHByPassword(host, 22, username, password); return new Shell.Plain(shell).exec("sudo shutdown -h now"); } }
ZoneMinderUtils { public static String shutdownZmHost(String host, String username, String password) throws IOException { Shell shell = new SSHByPassword(host, 22, username, password); return new Shell.Plain(shell).exec("sudo shutdown -h now"); }  }
ZoneMinderUtils { public static String shutdownZmHost(String host, String username, String password) throws IOException { Shell shell = new SSHByPassword(host, 22, username, password); return new Shell.Plain(shell).exec("sudo shutdown -h now"); }  static boolean pingHost(String host); static String shutdownZmHost(String host, String username, String password); }
ZoneMinderUtils { public static String shutdownZmHost(String host, String username, String password) throws IOException { Shell shell = new SSHByPassword(host, 22, username, password); return new Shell.Plain(shell).exec("sudo shutdown -h now"); }  static boolean pingHost(String host); static String shutdownZmHost(String host, String username, String password);  }