Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chiglish opened this issue Jan 15, 2025 · 0 comments
Open

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

chiglish opened this issue Jan 15, 2025 · 0 comments

Comments

@chiglish
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant