User Tools

Site Tools


ubiquiti:cli:cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubiquiti:cli:cheat_sheet [2022/10/11 09:56] peterubiquiti:cli:cheat_sheet [2022/10/11 10:07] (current) peter
Line 1: Line 1:
 ====== Ubiquiti - CLI - Cheat Sheet ====== ====== Ubiquiti - CLI - Cheat Sheet ======
 +
 +Unifi devices are running on a form of Linux, so most Linux commands will work on the devices.
 +
 +  * Pressing **Tab** twice will give you a list of all available SSH commands.
  
 Commands that can be run on Unifi devices from the command line. Commands that can be run on Unifi devices from the command line.
Line 11: Line 15:
 |set-inform <inform_url>|Set URL of the controller.|set-inform http://ip-of-controller:8080/inform| |set-inform <inform_url>|Set URL of the controller.|set-inform http://ip-of-controller:8080/inform|
 |:::|The Set-Inform URL tells the Unifi Access Point where the controller is located. By default, the access point will search the network for the controller, using the default DNS name **unifi**. This does not always work, so we need to tell the access point the correct address of the Unifi Controller.|set-inform http://192.168.1.10:8080/inform| |:::|The Set-Inform URL tells the Unifi Access Point where the controller is located. By default, the access point will search the network for the controller, using the default DNS name **unifi**. This does not always work, so we need to tell the access point the correct address of the Unifi Controller.|set-inform http://192.168.1.10:8080/inform|
 +|syswrapper.sh|Similar to set-default.  Older firmware versions like v2.2.x do not support the **set-default** command.|syswrapper.sh restore-default.|
 |upgrade <firmware_url>|Upgrade firmware.|upgrade http://192.168.1.10/unifi_fw.bin| |upgrade <firmware_url>|Upgrade firmware.|upgrade http://192.168.1.10/unifi_fw.bin|
 |uptime|Displays the device uptime.|uptime| |uptime|Displays the device uptime.|uptime|
Line 35: Line 40:
  
 ---- ----
 +
 +===== Unifi Log files =====
 +
 +
 +There are a lot of log files that you can access to help you debug any Unifi related problem:
 +
 +^Command^Description^
 +|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.|
 +
 +----
 +
  
ubiquiti/cli/cheat_sheet.1665482212.txt.gz · Last modified: 2022/10/11 09:56 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki