Skip to content

Unifi 設備問題處理

Factory Reset

硬體Reset

無 POE Switch

  1. 設備斷電
  2. 到Unifi Console OS
  3. 找到這個設備,點Forget or Remove
  4. 拔掉 uplink 網路
  5. 迴紋針 戳 Reset 5秒,(直到燈滅)
  6. 等待重新開機,網路孔橘燈全亮,滅掉換綠燈全亮,滅掉
  7. 稍等20-30秒,,燈完全滅掉
  8. 斷電重開,等待重開完成,燈完全滅掉
  9. 插回 uplink 網路
  10. 接管

有 POE Switch

  1. 設備斷電
  2. 到Unifi Console OS
  3. 找到這個設備,點Forget or Remove
  4. 拔掉 所有 網路
  5. 迴紋針 戳 Reset 10秒,(直到燈滅)
  6. 等待重新開機,網路孔橘燈全亮,滅掉換綠燈全亮,滅掉
  7. 稍等20-30秒,藍燈或白燈恆亮
  8. 斷電重開,等待重開完成,燈完全滅掉
  9. 插回 uplink 網路
  10. 接管

root / ubnt ubnt / ubnt

Unifi SSH Commands

Command Example Function
info info Displays device information
set-default set-default Factory reset device
set-inform set-inform http://192.168.1.1:8080/inform Set URL of the controller for adoption. More info
upgrade upgrade https://.bin Upgrade firmware – More info
fwupdate fwupdate --url https://.bin Update firmware
reboot reboot Reboot the device
poweroff poweroff Shutdown device
uptime uptime Shows device uptime
Command Example Function
ifconfig ifconfig Show network interface information
ip address add ip address add 192.168.1.143/24 dev br0 Set static IP Address
ip route ip route Display current gateway
ip router add ip route add default via 192.168.1.1 Set default gateway
echo "nameserver 192.168.1.1" > /etc/resolv.conf Set DNS Server
ping ping 1.1.1.1 Check network connection to device
arp arp -a Show arp table
ip neigh ip neigh Show IPv6 neighbors

Unifi OS SSH Commands

Command Example Function
ubnt-systool cputemp ubnt-systool cputemp Show CPU Temp
ubnt-systool cpuload ubnt-systool cpuload Show CPU load
ubnt-systool portstatus ubnt-systool portstatus Show port status
ubnt-systool hostname ubnt-systool hostname Set new hostname
ubnt-systool reboot ubnt-systool reboot Reboot device
ubnt-systool poweroff ubnt-systool poweroff Shutdown device
ubnt-systool reset2defaults ubnt-systool reset2defaults Factory reset device
ubnt-device-info summary ubnt-device-info summary Show system information
ubnt-tools ubnt-discover ubnt-tools ubnt-discover Show Unifi devices in the network
cat /mnt/data/udapi-config/dnsmasq.lease cat /mnt/data/udapi-config/dnsmasq.lease Show DHCP Leases
cat /mnt/data/udapi-config/unifi cat /mnt/data/udapi-config/unifi Show configuration
/etc/init.d/S95unifios restart /etc/init.d/S95unifios restart Restart Unifi OS Web interface

Unifi Log files

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
cat /mnt/data/unifi-os/unifi-core/logs/system.log System log
cat /mnt/data/unifi-os/unifi/logs/server.log Server log
cat /mnt/data/unifi-os/unifi-core/logs/errors.log Http errors