Unifi SSH Commands
First we have listed below some of the most used Unifi SSD Commands
Example | Function |
---|---|
info | It Shows device information |
set-default | Factory reset your Unifi device |
set-inform http://192.168.1.1:8080/inform | Set the controller’s URL for adoption. |
upgrade https://<firmware-url>.bin | Upgrade The firmware |
fwupdate --url https://<firmware-url>.bin | Update Your firmware |
reboot | Reboot Your device |
poweroff | Shutdown |
uptime | It displays device uptime |
Unifi Log files
Want to debug unifi related problems? Then these following commands are for you:
Command | Function |
---|---|
cat /var/log/messages | Output the error log |
tail -f /var/log/messages | Monitor log file |
cat /mnt/data/unifi-os/unifi-core/config/settings.yaml | Server settings |
cat /mnt/data/unifi-os/unifi-core/logs/discovery.log | Discovery log file |
cat /mnt/data/unifi-os/unifi-core/logs/system.log | System log file |
cat /mnt/data/unifi-os/unifi/logs/server.log | Server log file |
cat /mnt/data/unifi-os/unifi-core/logs/errors.log | HTTP errors |
Unifi OS SSH Commands
When connected to the UDM Pro or another controller that is running Unifi OS, these commands will help you interms of many things such as:
Command | Function |
---|---|
ubnt-systool cputemp | Display CPU Temparature |
ubnt-systool cpuload | Reveal CPU load |
ubnt-systool portstatus | Show port status |
ubnt-systool hostname <newname> | Set a new hostname |
ubnt-systool reboot | Reboot your Unifi device |
ubnt-systool reset2defaults | Factory reset |
ubnt-device-info summary | Show system report |
ubnt-tools ubnt-discover | Show Unifi devices in the network |
cat /mnt/data/udapi-config/dnsmasq.lease | Display DHCP Leases |
cat /mnt/data/udapi-config/unifi | Show setup |
/etc/init.d/S95unifios restart | Restart Unifi OS Web interface |
Network related SSH Commands
We all know that Unifi devices are great for managing networks, but did you also realize the many useful commands available on them? These two-digit numbers can really help with finding network-related issues.
Command | Function |
---|---|
ifconfig | Displays network interface data |
ip address add 192.168.1.143/24 dev br0 | Set static IP Address |
ip route | It shows the existing gateway |
ip route add default via 192.168.1.1 | Set your default gateway |
echo "nameserver 192.168.1.1" > /etc/resolv.conf | Set DNS Server |
ping 1.1.1.1 | Check network connection to the device |
apr -a | Displays arp table |
ip neigh | It shows IPv6 neighbors |
Conclusion
If you’re looking for a way to make your system more secure, the Unifi devices are an excellent option. These networked appliances run on Linux and most commands available through their controller software should work with them (press Tab twice when prompted for input). However, keep in mind that any changes made directly at the device level will not take effect unless trunking is enabled; otherwise known as tunneling or bridging mode – this can be done via shell access from outside sources like laptops sitting next door!