Skip to content

Latest commit

 

History

History
115 lines (71 loc) · 2.49 KB

File metadata and controls

115 lines (71 loc) · 2.49 KB

< Back


SSHCommand

Namespace: BurnSoft.SecureShell

Connect to a host and execute a ssh command on that host

public class SSHCommand

Inheritance ObjectSSHCommand

Constructors

SSHCommand()

public SSHCommand()

Methods

RunCommand(String, String, String, String, String&)

Runs the command.

public static string RunCommand(string host, string uid, string pwd, string cmd, String& errOut)

Parameters

host String
The host.

uid String
The uid.

pwd String
The password.

cmd String
The command.

errOut String&
The error out.

Returns

String
System.String.

SSHAlive(String, String, String, String&)

SSHs the alive.

public static bool SSHAlive(string host, string uid, string pwd, String& errOut)

Parameters

host String
The host.

uid String
The uid.

pwd String
The password.

errOut String&
The error out.

Returns

Boolean
true if XXXX, false otherwise.

DeviceIsUp(String, String&, Int32)

Devices the is up.

public static bool DeviceIsUp(string host, String& errOut, int timeout)

Parameters

host String
The host.

errOut String&
The error out.

timeout Int32
The timeout.

Returns

Boolean
true if XXXX, false otherwise.

Exceptions

Exception
No Host or IP Listed!


< Back