Table of Contents

Distro - openwrt / ubnt edgeos

Commands:

Restart the device:

reboot

To show a lot of good info aboue devicedhcp lease located in file /tmp/dhcp.leases

info 

To see a nice breakdown of wireless do:

iwconfig [interface]

You can pair this with ath0 to see the main one.

iwconfig ath0

to see status of AP - more then above readout, firmware, ip, etc

mca-status

A helpful command to see just the signal is:

mca-status | grep signal

To see messy complex info of each station

wstalist

You can use grep with wstalist to see some other thigns. to see connected macs:

wstalist | grep mac 

To see all relevant data of a specific mac:

wstalist | grep -A 36 [mac of device] 

For various options such as

iwlist [options]

To see what access points are avaialbe (same if did peers)

iwilist [interface] accesspoints

To see some DFS info (need to check into more)

radarmon

To restore to factory default (for unifi it might be $syswrapper.sh restore-default, https://help.ubnt.com/hc/en-us/articles/205143490-UniFi-How-to-reset-the-UniFi-Access-Point-to-factory-defaults)

set-default 

Update firmware via cli

Resource: https://help.ubnt.com/hc/en-us/articles/204959804-airMAX-How-do-I-upgrade-the-firmware-from-the-CLI-SSH-

There are 3 main ways to get file to device. For First and second option you need to dl firmware onto computer

SSH into device:


Tip: the link of file can be copied from the ubnt firmware page when you choose the fw to use.

Change Config File

Reference:https://help.ubnt.com/hc/en-us/articles/205231490-Use-static-IP-address-instead-of-DHCP-Client

When you ssh you can modify the config file by editing:

/tmp/system.cfg

You can use vi, as it is build into the ubnt devices. Once you have saved the new config in ubiquity, you have to execute a save command and reboot. Here is a trick on how to do both:

Tough switch port names

ubntbox

A propriatary tool for ubnt related things such as: