new to ssh,I can not get a command from 'crm_mon'
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 993
- Avg merge
- 9d 21h
- Merged PRs (30d)
- 1
Description
i would like to access remote HA server cluster ,use 'crm_mon' to check server status,i can not get a result from sshcommand.result
also I tried params like 'crm_mon -1','crm_mon --as-xml',neither could get result
using (var client = new SshClient(my servers info)
{
client.Connect();
using SshCommand cmd = client.RunCommand("crm_mon'");
Console.WriteLine(cmd.Result); // no result return
}
but when I excute 'df -h' or 'free -h', I can get a result.
could anyone help?Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported behavior through SshClient.RunCommand with crm_mon, crm_mon -1, crm_mon --as-xml, df -h, and free -h. Compare the returned Result values and determine whether the issue is in SSH.NET or the remote crm_mon command; done means the cause and any required library change are verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100