{"id":5867,"date":"2024-09-17T15:39:09","date_gmt":"2024-09-17T20:39:09","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=5867"},"modified":"2024-09-17T15:40:13","modified_gmt":"2024-09-17T20:40:13","slug":"how-to-enable-ping-watchdog-on-ubiquiti-airos-from-command-line","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/how-to-enable-ping-watchdog-on-ubiquiti-airos-from-command-line\/","title":{"rendered":"How to enable Ping Watchdog on Ubiquiti AirOS from Command Line"},"content":{"rendered":"\n<p>Ping Watchdog is a feature that will automatically reboot a device if the specified IP address is unreachable.<\/p>\n\n\n\n<p>Here is a quick run down on enabling Ping Watchdog on Ubiquiti Radios from the command line.<\/p>\n\n\n\n<p><strong>1. SSH into the radio<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-gray-background-color has-background\"><code class=\"\">ssh ubnt@192.168.1.20<\/code><\/pre>\n\n\n\n<p><strong>2. Edit the config file<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-gray-background-color has-background\"><code class=\"\">vi \/tmp\/system.cfg<\/code><\/pre>\n\n\n\n<p>Find the lines that start with <code>pwdog<\/code><\/p>\n\n\n\n<p>At a minimum, you will need to change the following two options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>pwdog.status<\/code> to enabled<\/li>\n\n\n\n<li><code>pwdog.host<\/code> to the IP you want to ping.  Add this line if it does not exist.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-medium-gray-background-color has-background\"><code class=\"\">pwdog.delay=300<br>pwdog.host=192.168.1.1<br>pwdog.period=300<br>pwdog.retry=3<br>pwdog.status=enabled<\/code><\/pre>\n\n\n\n<p>You can adjust the other options to your desired taste.  <\/p>\n\n\n\n<p>Exit vi by hitting <code>esc<\/code> then typing in <code>wq<\/code> then hit <code>Enter<\/code><\/p>\n\n\n\n<p><strong>3. Save configuration<\/strong><\/p>\n\n\n\n<p>Finally, save the configuration changes with<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-gray-background-color has-background\"><code class=\"\"><code>\/usr\/etc\/rc.d\/rc.softrestart save<\/code><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ping Watchdog is a feature that will automatically reboot a device if the specified IP address is unreachable. Here is a quick run down on enabling Ping Watchdog on Ubiquiti Radios from the command line. 1. SSH into the radio &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/how-to-enable-ping-watchdog-on-ubiquiti-airos-from-command-line\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,1144],"tags":[528,1700,8,1699,221,131,132,974,1698],"class_list":["post-5867","post","type-post","status-publish","format-standard","hentry","category-ubiquiti","category-ubiquiti-command-line","tag-airmax","tag-auto-reboot","tag-command-line-2","tag-pwdog","tag-ssh","tag-ubiquiti-2","tag-ubnt","tag-ui","tag-watchdog"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=5867"}],"version-history":[{"count":10,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5867\/revisions"}],"predecessor-version":[{"id":5877,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5867\/revisions\/5877"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=5867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=5867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=5867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}