Skip to main content

Using cli on the switches

Getting into cli

Ubiquiti equipment is managed by the unifi tool which can run on a vm or you use a hardware box like dream machine pro. At the moment I use unifi on a dedicated vm for managing all the devices.

To get into the cli you can setup in the unifi management a ssh access which will be activated on all your ui devices. Just go to System Settings -> Administration -> Admin and you can define your ssh users.

After logging in into your device with ssh you can use the cli with:

➜  ~ ssh admin@1.2.3.4


BusyBox v1.25.1 () built-in shell (ash)


  ___ ___      .__________.__
 |   |   |____ |__\_  ____/__|
 |   |   /    \|  ||  __) |  |   (c) 2010-2021
 |   |  |   |  \  ||  \   |  |   Ubiquiti Networks, Inc.
 |______|___|  /__||__/   |__|
            |_/                  https://www.ui.com/

      Welcome to UniFi USW-Aggregation!

sw37SANSwitch-US.5.64.8# cli
sw37SANSwitch# sho run
SYSTEM CONFIG FILE ::= BEGIN
! System Description: Unifi Switch UBNT-USL8A Switch
! System Version: v3.5.0.3
! System Name: sw37SANSwitch
! System Up Time: 0 days, 14 hours, 14 mins, 8 secs
!
!