What's new

Verify if node is up in a Mesh setup

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

rrossorr

Occasional Visitor
I just noticed that my node was down (2x86U) .. most likely for multiple days. I have icmp disabled and only allow login with ssh via pub/private key. I'm on a Mac and wanted to start monitoring via a Bash script thinking I could copy my public key to the node and perform a "ssh asusnode uptime". I copied my public key to the node via ssh-copy-id, verified it worked. I them disabled ssh via password and now can't ssh into the node (Permission denied (publickey)). I'm guessing that the Node doesn't keep a persistent copy of the key? I can enable icmp and just ping the node .. any other possibilities/ideas?

Thanks
 
In case anyone has a need .. the following snippet performs the check:

Code:
   curl -s --max-time 2 192.168.xxx.x &>/dev/null
   if [[ $? -eq 0 ]]; then
      prt-success "asusnode <active>"
   else
      prt-error "asusnode <inactive>"
   fi
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top