Zum Inhalt springen

Unifi CLI

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 – i thought i write it down finally.

The problem: If you log-in to a Unifi Switch via SSH the device does not provide a fully functional configuration interface – just a couple of simple commands.

Please be carefull when connecting directly to those devices and typing commands – things may behave strange afterwards :-)

Unifi devices should primarily be configured by using the controller – not using the CLI.

USW-16-PoE

With the USW-16-PoE things are straight:

ssh user@usw-16-poe
USW-16-PoE-US.5.53.1# cli
USW-16-PoE# ? 
...
USW-16-PoE# show spanning-tree
...
USW-16-PoE# configure
USW-16-PoE(config)# spanning-tree priority ...

US-8-150W

With the US8-150W one have to do a telnet connection to the local box additionally:

ssh user@US-8-150W
US-8-150W-US.5.53.1#
US-8-150W-US.5.53.1# telnet localhost

Entering character mode
Escape character is '^]'.

Warning!
The changes may break controller settings and only be effective until reboot.

(UBNT) > enable
(UBNT) # ?
...
(UBNT) # show spanning-tree
...
(UBNT) # configure
(UBNT) (Config)# spanning-tree mode ...

I don’t really know why different devices have to have a different way to get to a serious cli or if there’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.

Thanks for watching – take care.