{"id":1166,"date":"2021-03-21T19:58:26","date_gmt":"2021-03-21T17:58:26","guid":{"rendered":"https:\/\/www.boettrich.info\/blog\/?p=1166"},"modified":"2021-04-20T08:54:34","modified_gmt":"2021-04-20T06:54:34","slug":"unifi-cli","status":"publish","type":"post","link":"https:\/\/www.boettrich.info\/blog\/beitrag\/unifi-cli\/","title":{"rendered":"Unifi CLI"},"content":{"rendered":"\n<p>As i was once again puzzled on how to get a prober CLI-access to my Unifi network gear and my searches on the net for the USW-8-150W did not return what i was looking for &#8211; i thought i write it down finally.<\/p>\n\n\n\n<p>The problem: If you log-in to a Unifi Switch via SSH the device does not provide a fully functional configuration interface &#8211; just a couple of simple commands.<\/p>\n\n\n\n<p>Please be carefull when connecting directly to those devices and typing commands &#8211; things may behave strange afterwards :-) <\/p>\n\n\n\n<p>Unifi devices should primarily be configured by using the controller &#8211; not using the CLI.<\/p>\n\n\n\n<p><strong>USW-16-PoE<\/strong><\/p>\n\n\n\n<p>With the USW-16-PoE things are straight: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh user@usw-16-poe\nUSW-16-PoE-US.5.53.1# cli\nUSW-16-PoE# ? \n...\nUSW-16-PoE# show spanning-tree\n...\nUSW-16-PoE# configure\nUSW-16-PoE(config)# spanning-tree priority ...\n<\/code><\/pre>\n\n\n\n<p><strong>US-8-150W<\/strong><\/p>\n\n\n\n<p>With the US8-150W one have to do a telnet connection to the local box additionally:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh user@US-8-150W\nUS-8-150W-US.5.53.1#\nUS-8-150W-US.5.53.1# telnet localhost\n\nEntering character mode\nEscape character is '^]'.\n\nWarning!\nThe changes may break controller settings and only be effective until reboot.\n\n(UBNT) &gt; enable\n(UBNT) # ?\n...\n(UBNT) # show spanning-tree\n...\n(UBNT) # configure\n(UBNT) (Config)# spanning-tree mode ...\n<\/code><\/pre>\n\n\n\n<p>I don&#8217;t really know why different devices have to have a different way to get to a serious cli or if there&#8217;s a technical reason. Maybe as alway in IT, things have to be consolidated and maybe Unifi is already working to merge these different styles to one for all devices.<\/p>\n\n\n\n<p>Thanks for watching &#8211; take care. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As i was once again puzzled on how to get a prober CLI-access to my Unifi network gear and my searches on the net for the USW-8-150W did not return what i was looking for &#8211; i thought i write it down finally. The problem: If you log-in to a Unifi Switch via SSH the&hellip;&nbsp;<a href=\"https:\/\/www.boettrich.info\/blog\/beitrag\/unifi-cli\/\" rel=\"bookmark\">Weiterlesen &raquo;<span class=\"screen-reader-text\">Unifi CLI<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[1,10,6],"tags":[],"class_list":["post-1166","post","type-post","status-publish","format-standard","hentry","category-beitrag","category-netzwerk","category-technik"],"_links":{"self":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/comments?post=1166"}],"version-history":[{"count":6,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1166\/revisions"}],"predecessor-version":[{"id":1270,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1166\/revisions\/1270"}],"wp:attachment":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/media?parent=1166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/categories?post=1166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/tags?post=1166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}