I'm trying to get result from a command through VB.NET, it is returning empty string as shown in the below code:
Dim connInfo As New Renci.SshNet.PasswordConnectionInfo(serverip, user, pass)
Dim sshClient As New Renci.SshNet.SshClient(connInfo)
Dim cmd As Renci.SshNet.SshCommand
Using sshClient
sshClient.Connect()
cmd = sshClient.RunCommand("opmnctl status -l")
MsgBox(cmd.Result)
sshClient.Disconnect()
End Using
While when I try with normal command like "ls -ltr"
it returns the result successfully.
Is there another way of fetching result string? Or are opmnctl
commands for OPMN Oracle engine not supported on Renci? Any help would be appreciated.