I've got two Ubunta servers where installed two ejabberd servers. Ejabberd on first server is up, on second server ejabberd is down. I tried to connect and to apply commands (for example status) on first server using ejabberdctl on second server.
I tried two variants and got errors:
Firtst variatn:
sudo ejabberdctl --node ejabberd@host1IP --auth admin_login ejabberd admin_pass status
Failed RPC connection to the node 'ejabberd@host1IP': nodedown
=ERROR REPORT==== 13-Jul-2011::21:19:36 ===
Error in process <0.36.0> on node 'ejabberdctl@fullDNS2' with exit value: {badarg,[{erlang,list_to_existing_atom,["ejabberd@shortdns1"]},{dist_util,recv_challenge,1},{dist_util,handshake_we_started,1}]}
Second variatn:
sudo ejabberdctl --node ejabberd@fullDNS1 --auth admin_login vhostname admin_pass status
Failed RPC connection to the node 'ejabberd@fullDNS1': nodedown
Where host1IP - ip adress of first server
fullDNS1 and fullDNS2 - full dns names of servers. Exmple: server.domen.com
shortdns1 - short dns name of servers Example. server
What I'm doing wrong???
Thank you for attention.
To call the "status" command,
To call the "status" command, I think you don't need to provide the "--auth" option.
Also, make sure both nodes have the same "erlang cookie".