{"id":2540,"date":"2019-07-29T17:02:47","date_gmt":"2019-07-29T17:02:47","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2540"},"modified":"2019-11-11T18:34:36","modified_gmt":"2019-11-11T18:34:36","slug":"ubiquiti-airos-test-changes-from-command-line","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/ubiquiti-airos-test-changes-from-command-line\/","title":{"rendered":"Ubiquiti AirOS &#8211; &#8220;test&#8221; changes from command line"},"content":{"rendered":"\n<p>The following is a method to recover from a command that may inadvertenly make a radio go offline.  <\/p>\n\n\n\n<p>The idea is to launch a process in the background that sleeps for 5 minutes and then reboots the radio, so any changes not saved will be reverted.  If the changes were successful, you&#8217;ll just need to log back in and kill the background process to keep the device from rebooting.<\/p>\n\n\n\n<p>This can be helpful if your changing networking settings using ifconfig, trying to change routes, or something went wrong while trying to apply a system.cfg setting.<\/p>\n\n\n\n<p><strong>Commands<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sleep 300 &amp;&amp; reboot &amp;<\/pre>\n\n\n\n<p>Execute whatever command you need to. i.e.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ifconfig 192.168.1.100<\/pre>\n\n\n\n<p>If your command worked you can log back into the device and search for the process id of the sleep command and kill it so the radio doesn&#8217;t reboot.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ps | grep sleep<\/pre>\n\n\n\n<p>Example output<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">2XC.v8.5.12# ps | grep sleep<br>   412 admin     1636 S    sleep 500<br>   414 admin     1640 S    grep sleep<br> 2XC.v8.5.12# <\/pre>\n\n\n\n<p>Kill the pid<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">kill 412<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following is a method to recover from a command that may inadvertenly make a radio go offline. The idea is to launch a process in the background that sleeps for 5 minutes and then reboots the radio, so any &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/ubiquiti-airos-test-changes-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":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129],"tags":[528,642,501,221,131,132],"class_list":["post-2540","post","type-post","status-publish","format-standard","hentry","category-ubiquiti","tag-airmax","tag-airos","tag-config","tag-ssh","tag-ubiquiti-2","tag-ubnt"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2540","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=2540"}],"version-history":[{"count":3,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2540\/revisions"}],"predecessor-version":[{"id":2543,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2540\/revisions\/2543"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}