Ubiquiti UniFi Command-Line Interface Reference
Please share with your friends...
  • 2
  • 1
  •  
  •  
  • 1
  • 1
  •  
  •  
  •  
  •  
    5
    Shares


⇐ BackPageNext ⇒
Commands

I

ABCDEFGHIJKLMNOPQRSTUVWXYZ


id

Print information about USER or the current user.

id [OPTIONS] [USER]

        -u      Print user ID
        -g      Print group ID
        -G      Print supplementary group IDs
        -n      Print name instead of a number
        -r      Print real user ID instead of effective ID
Example

The following example shows how to display hexadecimal output from standard input.

# id
uid=0(ubnt) gid=0(admin)
[_/su_spoiler]


ifconfig

Configure a network interface.

ifconfig [-a] interface [address]

        [add ADDRESS[/PREFIXLEN]]
        [del ADDRESS[/PREFIXLEN]]
        [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]]
        [netmask ADDRESS] [dstaddr ADDRESS]
        [hw ether ADDRESS] [metric NN] [mtu NN]
        [[-]trailers] [[-]arp] [[-]allmulti]
        [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic]
        [up|down] ...
Example: UniFi AP AC (UAP-ACv2)
The primary network interface on the UniFi AP AC is the br0 Bridge interface.

The following example shows how to display a list of available network interfaces.

# ifconfig
br0       Link encap:Ethernet  HWaddr 04:18:D6:D0:50:00
          inet addr:192.168.1.153  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:31949 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6103 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4298452 (4.0 MiB)  TX bytes:1809402 (1.7 MiB)

eth0      Link encap:Ethernet  HWaddr 04:18:D6:D0:50:00
          UP BROADCAST RUNNING PROMISC ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:32464 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6102 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4915682 (4.6 MiB)  TX bytes:1809007 (1.7 MiB)
          Interrupt:4 Base address:0x2000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

The following example shows how to add a static IPv4 address to the device's primary network interface.

# ifconfig br0 add 192.168.1.30 netmask 255.255.255.0
[_/su_spoiler]
Example: UniFi Switch 48 750W (USW-48P-750)
The primary network interface on the UniFi Switch 48 750W is the eth0 Ethernet interface.

The following example shows how to display a list of available network interfaces.

# ifconfig
eth0      Link encap:Ethernet  HWaddr 04:18:D6:83:10:00
          inet addr:192.168.1.119  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::618:d6ff:fe83:1000/64 Scope:Link
          UP BROADCAST RUNNING PROMISC ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:48560 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13117 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:7999346 (7.6 MiB)  TX bytes:6345488 (6.0 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:896 (896.0 B)  TX bytes:896 (896.0 B)

The following example shows how to add a static IPv4 address to the device's primary network interface.

# ifconfig eth0 add 192.168.1.2/24
[_/su_spoiler]
Changes to network interfaces occur immediately. This means when changing a device’s primary IP address from an SSH console, the session will be lost as soon as the command is issued. You will be able to re-establish the SSH session with the device using the new IP address.


igmpproxy
This command is only available on UniFi AP devices.

Enable hosts in a unidirectional link routing (UDLR) environment that are not directly connected to a downstream router to join a multicast group sourced from an upstream network.

igmpproxy [-h] [-d] [-v [-v]] [configfile]

   -h   Display this help screen
   -d   Run in debug mode. Output all messages on stderr
   -v   Be verbose. Give twice to see even debug messages.
UNBTSee Alsoigs


igs
This command is only available on UniFi AP devices.
igs  add   bridge  <bridge>
     del   bridge  <bridge>
     list  sdb     <bridge>
     list  rtport  <bridge>
     show  stats   <bridge>
Example

The following example shows how to display IPMG statistics for a bridge interface.

# igs show stats br0
IgmpPkts        IgmpQueries     IgmpReports     IgmpV2Reports   IgmpLeaves
62430           7318            10              29530           2227
IgmpNotHandled  McastGroups     McastMembers    MemTimeouts
23488           4               30              0
[_/su_spoiler]


info

Display device information.

info
Example: UniFi AP AC (UAP-ACv2)

The following example shows how to display device information.

# info
Model:       UAP-ACv2
Version:     3.2.12.2920
MAC Address: 04:18:d6:d0:50:00
IP Address:  192.168.1.153
Hostname:    UBNT
Uptime:      58474 seconds

Status:      Connected (http://unifi:8080/inform)
[_/su_spoiler]
Example: UniFi Switch 48 750W (USW-48P-750)

The following example shows how to display device information.

# info
Model:       USW-48P-750
Version:     3.3.5.3734
MAC Address: 04:18:d6:83:10:00
IP Address:  192.168.1.119
Hostname:    UBNT
Uptime:      42170 seconds

Status:      Connected (http://unifi:8080/inform)
[_/su_spoiler]


init

Init is the parent of all processes.

init


initap.sh

Initialize AP shell script.

initap.sh


insmod

Load the specified kernel modules into the kernel.

insmod [OPTIONS] MODULE [symbol=value]...

        -f      Force module to load into the wrong kernel version
        -k      Make module autoclean-able
        -v      Verbose
        -q      Quiet
        -L      Lock to prevent simultaneous loads of a module
        -m      Output load map to stdout
        -o NAME Set internal module name to NAME
        -x      Do not export externs


iostat

Report CPU and I/O statistics.

iostat [-c] [-d] [-t] [-z] [-k|-m] [ALL|BLOCKDEV...] [INTERVAL [COUNT]]

        -c      Show CPU utilization
        -d      Show device utilization
        -t      Print current time
        -z      Omit devices with no activity
        -k      Use kb/s
        -m      Use Mb/s
Example: UniFi AP AC (UAP-ACv2)

The following example shows how to display CPU and I/O statistics.

# iostat
Linux 2.6.22 (UBNT)     07/17/15

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.67    0.00    5.04    0.00    0.00   94.29

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
mtdblock4         0.28        10.01         0.00      10066          0
mtdblock6         0.96       123.50         0.00     124160          0
[_/su_spoiler]
Example: UniFi Switch 48 750W (USW-48P-750)

The following example shows how to display CPU and I/O statistics.

# iostat
Linux 3.6.5 (UBNT)      07/17/15        _armv7l_        (1 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          17.11    0.00   53.31    0.00    0.00   29.57

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
mtdblock6         0.01         0.98         0.00     864640          0
[_/su_spoiler]


ip
       ip [ OPTIONS ] OBJECT { COMMAND | help }
       ip [ -force ] -batch filename
where  OBJECT := { link | addr | addrlabel | route | rule | neigh | ntable |
                   tunnel | tuntap | maddr | mroute | mrule | monitor | xfrm |
                   netns | l2tp | tcp_metrics | token }
       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
                    -f[amily] { inet | inet6 | ipx | dnet | bridge | link } |
                    -4 | -6 | -I | -D | -B | -0 |
                    -l[oops] { maximum-addr-flush-attempts } |
                    -o[neline] | -t[imestamp] | -b[atch] [filename] |
                    -rc[vbuf] [size]}
ABCDEFGHIJKLMNOPQRSTUVWXYZ
⇐ BackPageNext ⇒

Ubiquiti UniFi Command-Line Interface Reference

Please share with your friends...
  • 2
  • 1
  •  
  •  
  • 1
  • 1
  •  
  •  
  •  
  •  
    5
    Shares
Tagged on:                     

Leave a Reply