# Ubiquity

# Manually Adopt Ubiquity Access Point

- SSH to the Access point and login with the default credentials of **ubnt**/**ubnt**.
- Type the following command where 192.168.xxx.xxx is the IP of your Unifi controller:

```
set-inform http://192.168.xxx.xxxx:8080/inform
```

- Login to the Unifi controller and navigate to Unifi Devices.
- Locate the access point and click Adopt.

## Unifi SSH Commands

We are going to start with the most commonly used Unifi SSH Commands, later on, I will organize them by device or function.

<figure class="wp-block-table" id="bkmrk-command-example-func"><table><thead><tr><th>Command</th><th>Example</th><th>Function</th></tr></thead><tbody><tr><td>info</td><td>`info`</td><td>Displays device information</td></tr><tr><td>set-default</td><td>`set-default`</td><td>Factory reset device</td></tr><tr><td>set-inform</td><td>`set-inform http://192.168.1.1:8080/inform`</td><td>Set URL of the controller for adoption. [More info](https://lazyadmin.nl/home-network/unifi-set-inform/)</td></tr><tr><td>upgrade</td><td>`upgrade https://<firmware-url>.bin`</td><td>Upgrade firmware – [More info](https://lazyadmin.nl/home-network/unifi-adoption-failed/)</td></tr><tr><td>fwupdate</td><td>`fwupdate --url https://<firmware-url>.bin`</td><td>Update firmware</td></tr><tr><td>reboot</td><td>`reboot`</td><td>Reboot the device</td></tr><tr><td>poweroff</td><td>`poweroff`</td><td>Shutdown device</td></tr><tr><td>uptime</td><td>`uptime`</td><td>Shows device uptime</td></tr></tbody></table>

<figcaption class="wp-element-caption">  
</figcaption></figure>## Network related SSH Commands

The following Unifi SSh Commands can really help you with finding network-related issues with your Unifi Device.

<div class="wp-block-group is-layout-flow wp-block-group-is-layout-flow" id="bkmrk-command-example-func-0"><div class="wp-block-group is-layout-flow wp-block-group-is-layout-flow"><div class="wp-block-group__inner-container"><figure class="wp-block-table"><table><thead><tr><th>Command</th><th>Example</th><th>Function</th></tr></thead><tbody><tr><td>ifconfig</td><td>`ifconfig`</td><td>Show network interface information</td></tr><tr><td>ip address add</td><td>`ip address add 192.168.1.143/24 dev br0`</td><td>Set static IP Address</td></tr><tr><td>ip route</td><td>`ip route`</td><td>Display current gateway</td></tr><tr><td>ip router add</td><td>`ip route add default via 192.168.1.1`</td><td>Set default gateway</td></tr><tr><td>  
</td><td>`echo "nameserver 192.168.1.1" > /etc/resolv.conf`</td><td>Set DNS Server</td></tr><tr><td>ping</td><td>`ping 1.1.1.1`</td><td>Check network connection to device</td></tr><tr><td>arp</td><td>`arp -a`</td><td>Show arp table</td></tr><tr><td>ip neigh</td><td>`ip neigh`</td><td>Show IPv6 neighbors</td></tr></tbody></table>

</figure></div></div></div>## Unifi OS SSH Commands

When you connect to your UDM Pro (or another controller that is running Unifi OS), then you will have a couple of other options:

<div class="wp-block-group is-layout-flow wp-block-group-is-layout-flow" id="bkmrk-command-example-func-1"><div class="wp-block-group__inner-container"><figure class="wp-block-table"><table><thead><tr><th>Command</th><th>Example</th><th>Function</th></tr></thead><tbody><tr><td>ubnt-systool help</td><td>`ubnt-systool help`</td><td>Show all commands</td></tr><tr><td>ubnt-systool cputemp</td><td>`ubnt-systool cputemp`</td><td>Show CPU Temp</td></tr><tr><td>ubnt-systool cpuload</td><td>`ubnt-systool cpuload`</td><td>Show CPU load</td></tr><tr><td>ubnt-systool portstatus</td><td>`ubnt-systool portstatus`</td><td>Show port status</td></tr><tr><td>ubnt-systool hostname</td><td>`ubnt-systool hostname <newname>`</td><td>Set new hostname</td></tr><tr><td>ubnt-systool reboot</td><td>`ubnt-systool reboot`</td><td>Reboot device</td></tr><tr><td>ubnt-systool poweroff</td><td>ubnt-systool poweroff</td><td>Shutdown device</td></tr><tr><td>ubnt-systool reset2defaults</td><td>`ubnt-systool reset2defaults`</td><td>Factory reset device</td></tr><tr><td>ubnt-device-info summary</td><td>`ubnt-device-info summary`</td><td>Show system information</td></tr><tr><td>ubnt-tools ubnt-discover</td><td>`ubnt-tools ubnt-discover`</td><td>Show Unifi devices in the network</td></tr><tr><td>cat /mnt/data/udapi-config/dnsmasq.lease</td><td>`cat /mnt/data/udapi-config/dnsmasq.lease`</td><td>Show DHCP Leases</td></tr><tr><td>cat /mnt/data/udapi-config/unifi</td><td>`cat /mnt/data/udapi-config/unifi`</td><td>Show configuration</td></tr><tr><td>/etc/init.d/S95unifios restart</td><td>`/etc/init.d/S95unifios restart`</td><td>Restart Unifi OS Web interface</td></tr></tbody></table>

</figure></div></div>## Unifi Log files

There are a lot of log files that you can access to help you debug any Unifi related problem:

<div class="adthrive-ad adthrive-sticky-container adthrive-content adthrive-content-1" id="bkmrk-"></div><figure class="wp-block-table" id="bkmrk-command-function-cat"><table><thead><tr><th>Command</th><th>Function</th></tr></thead><tbody><tr><td>`cat /var/log/messages`</td><td>Output the error log</td></tr><tr><td>`tail -f /var/log/messages`</td><td>Monitor log file</td></tr><tr><td>`cat /mnt/data/unifi-os/unifi-core/config/settings.yaml`</td><td>Server settings</td></tr><tr><td>`cat /mnt/data/unifi-os/unifi-core/logs/discovery.log`</td><td>Discovery log</td></tr><tr><td>`cat /mnt/data/unifi-os/unifi-core/logs/system.log`</td><td>System log</td></tr><tr><td>`cat /mnt/data/unifi-os/unifi/logs/server.log`</td><td>Server log</td></tr><tr><td>`cat /mnt/data/unifi-os/unifi-core/logs/errors.log`</td><td>Http errors</td></tr></tbody></table>

</figure>