sshnet / sshnet/SSH.NET

new to ssh,I can not get a command from 'crm_mon'

Open
#1,573 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.