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


⇐ BackPageNext ⇒
Commands

U

ABCDEFGHIJKLMNOPQRSTUVWXYZ


ubntbox
ubntbox <tool>

 Supported tools:
        ubntconf
        cfgmtd
        fwupdate.real
        factorytest
        wevent


ubntconf
ubntconf [options]

        -c <config file>        - Configuration file to use. (Default: /tmp/system.cfg)
        -p <config file>        - Previous config file to differ with file specified in -c option. (Default: none)
        -d <file name>  - File name for script generated from the diff. (Default: /tmp/diff.sh)
        -o <output directory>   - Directory to output scripts. (Default: /etc/sysinit)
        -i <symlink>            - Create Symlink to default configuration file.
        -h                      - This message.


uci
uci [<options>] <command> [<arguments>]

Commands:
        batch
        export [<config>]
        import [<config>]
        changes [<config>]
        commit [<config>]
        add <config> <section-type>
        add_list <config>.<section>.<option>=<string>
        show [<config>[.<section>[.<option>]]]
        get <config>.<section>[.<option>]
        set <config>.<section>[.<option>]=<value>
        delete <config>[.<section[.<option>]]
        rename <config>.<section>[.<option>]=<name>
        revert <config>[.<section>[.<option>]]

Options:
        -c <path> set the search path for config files (default: /etc/config)
        -d <str> set the delimiter for list values in uci show
        -f <file> use <file> as input instead of stdin
        -m when importing, merge data into an existing package
        -n name unnamed sections on export (default)
        -N don't name unnamed sections
        -p <path> add a search path for config change files
        -P <path> add a search path for config change files and use as default
        -q quiet mode (don't print error messages)
        -s force strict mode (stop on parser errors, default)
        -S disable strict mode
        -X do not use extended syntax on 'show'


udevtrigger
udevtrigger OPTIONS
  --verbose                       print the list of devices while running
  --dry-run                       do not actually trigger the events
  --retry-failed                  trigger only the events which have been
                                  marked as failed during a previous run
  --subsystem-match=<subsystem>   trigger devices from a matching subystem
  --subsystem-nomatch=<subsystem> exclude devices from a matching subystem
  --attr-match=<file[=<value>]>   trigger devices with a matching sysfs
                                  attribute
  --attr-nomatch=<file[=<value>]> exclude devices with a matching sysfs
                                  attribute
  --help                          print this text


udhcpc

Very small DHCP client (µDHCPc).

udhcpc [-Cfbnqtvo] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE] [-p pidfile] [-r IP] [-s script] [-O dhcp-option]... 

        -V,--vendorclass=CLASSID        Vendor class identifier
        -i,--interface=INTERFACE        Interface to use (default eth0)
        -H,-h,--hostname=HOSTNAME       Client hostname
        -c,--clientid=CLIENTID  Client identifier
        -C,--clientid-none      Suppress default client identifier
        -p,--pidfile=file       Create pidfile
        -r,--request=IP         IP address to request
        -s,--script=file        Run file at DHCP events (default /usr/share/udhcpc/default.script)
        -t,--retries=N          Send up to N request packets
        -T,--timeout=N          Try to get a lease for N seconds (default 3)
        -A,--tryagain=N         Wait N seconds (default 20) after failure
        -O,--request-option=OPT Request DHCP option OPT (cumulative)
        -o,--no-default-options Do not request any options (unless -O is also given)
        -f,--foreground Run in foreground
        -b,--background Background if lease is not immediately obtained
        -S,--syslog     Log to syslog too
        -n,--now        Exit with failure if lease is not immediately obtained
        -q,--quit       Quit after obtaining lease
        -R,--release    Release IP on quit
        -a,--arping     Use arping to validate offered address


umount

Unmount file systems.

umount [flags] FILESYSTEM|DIRECTORY 

Options:
        -a      Unmount all file systems
        -r      Try to remount devices as read-only if mount is busy
        -l      Lazy umount (detach filesystem)
        -f      Force umount (i.e., unreachable NFS server)
        -d      Free loop device if it has been used


uname

Print system information.

uname [-amnrspv]

        -a      Print all
        -m      The machine (hardware) type
        -n      Hostname
        -r      OS release
        -s      OS name (default)
        -p      Processor type
        -v      OS version
Example: UniFi AP AC (UAP-ACv2)

The following example shows how to display system information.

# uname -a
Linux UBNT 2.6.22 #1 PREEMPT Sun May 31 16:58:17 PDT 2015 mips unknown
[_/su_spoiler]
Example: UniFi Switch 48 750W (USW-48P-750)

The following example shows how to display system information.

# uname -a
Linux UBNT 3.6.5 #1 SMP Thu Apr 16 10:51:05 PDT 2015 armv7l GNU/Linux
[_/su_spoiler]


uniq

Discard duplicate lines.

uniq [-fscduw]... [INPUT [OUTPUT]] 

Options:
        -c      Prefix lines by the number of occurrences
        -d      Only print duplicate lines
        -u      Only print unique lines
        -f N    Skip first N fields
        -s N    Skip first N chars (after any skipped fields)
        -w N    Compare N characters in line


unlzma

Uncompress FILE (or standard input if FILE is ‘-‘ or omitted).

unlzma [OPTIONS] [FILE] 

Options:
        -c      Write to standard output
        -f      Force


unxz

Decompress FILE (or stdin).

unxz [-cf] [FILE]...

        -c      Write to stdout
        -f      Force


uplink-monitor
uplink-monitor


uptime

Display the time since the last boot.

uptime
Example

The following example shows how to display the time since last boot.

# uptime
 12:00:00 up  9:00, load average: 1.96, 1.80, 1.80
[_/su_spoiler]
ABCDEFGHIJKLMNOPQRSTUVWXYZ
⇐ BackPageNext ⇒

Ubiquiti UniFi Command-Line Interface Reference

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

Leave a Reply