{"id":2557,"date":"2019-08-09T16:48:49","date_gmt":"2019-08-09T16:48:49","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2557"},"modified":"2020-12-16T11:23:30","modified_gmt":"2020-12-16T17:23:30","slug":"ubiquiti-airos-applying-changes-over-ssh","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/ubiquiti-airos-applying-changes-over-ssh\/","title":{"rendered":"Ubiquiti AirOS &#8211; applying changes over ssh"},"content":{"rendered":"\n<p>When applying changes over ssh you&#8217;ll need to &#8220;write&#8221; or &#8220;save&#8221; the changes.  Usually you&#8217;ll edit the \/tmp\/system.cfg config file and then save the changes with one of the following commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/usr\/etc\/rc.d\/rc.softrestart save\nor\ncfgmtd -f \/tmp\/system.cfg -w &amp;&amp; reboot<\/pre>\n\n\n\n<p>rc.softrestart has some advantages.  It does not require the radio to reboot when making changes to things like SNMP or the device name.<\/p>\n\n\n\n<p>It does seem to have issues sometimes with certain changes.  The following happened when attempting to replace the whole \/tmp\/system.cfg with a previous backup config.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">XM.v6.1.8# XM.v6.1.8# \/usr\/etc\/rc.d\/rc.softrestart save\n]--- \/tmp\/.running.cfg.972\n+++ \/tmp\/.system.cfg.972\n@@ -1,110 +1,256 @@\n... more random stuff ...\nFast system script build Success.\nFast syslog script build Success.\nFast users script build Success.\nFast poepass script build Success.\nFast resolv script build Success.\ndo_radio_fast_script: rname wifi0\n<strong>Unsuported change in radio.1.dfs.status for fast update<\/strong>\nFast radio script build failed\nFixup Startup_list \u2026Done.\nWelcome back!\n[ubnt@localhost] &gt; <\/pre>\n\n\n\n<p>If you have issues applying changes with the softrestart, you can try it with cfgmtd.  Downside is the radio does reboot.  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cfgmtd -f \/tmp\/system.cfg -w &amp;&amp; reboot <\/pre>\n\n\n\n<p><em>You could potentially take the reboot off the end of the above command, but have had random issues in the past where the only way to fix it was a physical reboot.  Having the radio reboot after applying the config seems to resolve the issue<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When applying changes over ssh you&#8217;ll need to &#8220;write&#8221; or &#8220;save&#8221; the changes. Usually you&#8217;ll edit the \/tmp\/system.cfg config file and then save the changes with one of the following commands. \/usr\/etc\/rc.d\/rc.softrestart save or cfgmtd -f \/tmp\/system.cfg -w &amp;&amp; reboot &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/ubiquiti-airos-applying-changes-over-ssh\/\">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":[642,684,501,683,131,132],"class_list":["post-2557","post","type-post","status-publish","format-standard","hentry","category-ubiquiti","tag-airos","tag-cfgmtd","tag-config","tag-softrestart","tag-ubiquiti-2","tag-ubnt"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2557","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=2557"}],"version-history":[{"count":3,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2557\/revisions"}],"predecessor-version":[{"id":3764,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2557\/revisions\/3764"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}