ssh ubnt@192.168.1.20
AP:
list how many devices are connected.
wstalist |grep \"mac\" |wc -l or wstalist |grep -c \"mac\"
List connected devices
wstalist
List ip’s of connected devices
wstalist |grep \"lastip\" | awk '{print $3}' | sed s/\"/\ /g | sed s/,//g
List connected devices with the device name and ip address of device
wstalist |grep -A1 \"name\" | sed s/\"/\ /g | sed s/,//g | grep -v "\--"
List connected devices along with device name, and signal.
wstalist |grep -A6 \"name\" | grep -E -v 'rx|tx|associd|aprepeater' | sed s/\"/\ /g | sed s/,//g | grep -v "\--"
Station:
Signal:
mca-status | grep signal
Signal, essid, frequency, noise, and ccq:
mca-status | grep -A4 essid
List basic info like device name, mac address, firmware version, platform, etc.
mca-status | head -n 1
Show Firmware Version:
mca-status | head -n 1 | awk -F, '{print $3}'
how to change password via cli
Changing the password is a little more involved. You can use passwd to temporarily change the password. It will stay changed until the device reboots. To permanently save the password, you need to:
1. Change the password with passwd.
2. Copy the password hash from /etc/passwd to /tmp/system.cfg, replace the current password hash.
3. Save the config with /usr/etc/rc.d/rc.softrestart save
You will want to be careful with this as you risk locking yourself out of a radio.