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


⇐ BackPageNext ⇒
Commands

H

ABCDEFGHIJKLMNOPQRSTUVWXYZ


halt

Halt the system.

halt [-d SEC] [-n] [-f]

        -d SEC  Delay interval in seconds before halting
        -n      No call to sync()
        -f      Force halt (don't go through init)
Issuing a halt command without arguments will cause an immediate execution halt, requiring a power cycle to resume normal operation.


head

Print first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.

head [OPTIONS] [FILE]...

        -n NUM  Print first NUM lines instead of first 10
        -c NUM  Output the first NUM bytes
        -q      Never output headers giving file names
        -v      Always output headers giving file names
Example

The following example shows how to display the first 10 lines from standard input.

# dmesg | head
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.6.5 (build-unifi@ubnt-builder3) (gcc version 4.7.2 (GCC) ) #1 SMP Thu Apr 16 10:51:05 PDT 2015
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Broadcom iProc
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] BUG: mapping for 0x18000000 at 0xf0000000 out of vmalloc space
[    0.000000] BUG: mapping for 0x19000000 at 0xf1000000 out of vmalloc space
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c0cfe480, node_mem_map c0d13000
[_/su_spoiler]


hexdump

Display file(s) or standard input in a user specified format.

hexdump [-bcCdefnosvxR] FILE...

        -b              One-byte octal display
        -c              One-byte character display
        -C              Canonical hex+ASCII, 16 bytes per line
        -d              Two-byte decimal display
        -e FORMAT STRING
        -f FORMAT FILE
        -n LENGTH       Interpret only LENGTH bytes of input
        -o              Two-byte octal display
        -s OFFSET       Skip OFFSET bytes
        -v              Display all input data
        -x              Two-byte hexadecimal display
        -R              Reverse of 'hexdump -Cv'
Example

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

# uname | hexdump -C
00000000  4c 69 6e 75 78 0a                                 |Linux.|
00000006
[_/su_spoiler]


hostapd
This command is only available on UniFi AP devices.

User space daemon for IEEE 802.11 AP management, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.

hostapd [-hdBKtv] [-P <PID file>] <configuration file(s)>

   -h   show this usage
   -d   show more debug messages (-dd for even more)
   -B   run daemon in the background
   -P   PID file
   -K   include key data in debug messages
   -t   include timestamps in some debug messages
   -v   show hostapd version


hostapd_cli
This command is only available on UniFi AP devices.

User space daemon for IEEE 802.11 AP management, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.

hostapd_cli [-p<path>] [-i<ifname>] [-hvB] [-a<path>] [-G<ping interval>] [command..]

Options:
   -h           help (show this usage text)
   -v           shown version information
   -p<path>     path to find control sockets (default: /var/run/hostapd)
   -a<file>     run in daemon mode executing the action file based on events
                from hostapd
   -B           run a daemon in the background
   -i<ifname>   Interface to listen on (default: first interface found in the
                socket path)

Commands:
   mib                  get MIB variables (dot1x, dot11, radius)
   sta <addr>           get MIB variables for one station
   all_sta              get MIB variables for all stations
   new_sta <addr>       add a new station
   deauthenticate <addr>  deauthenticate a station
   disassociate <addr>  disassociate a station
   help                 show this usage help
   interface [ifname]   show interfaces/select interface
   level <debug level>  change debug level
   license              show full hostapd_cli license
   quit                 exit hostapd_cli


hostid

Print out a unique 32-bit identifier for the machine.

hostid


hotplug2
hotplug2


htb

Control the use of the outbound bandwidth on a given link.

htb start|stop []


httpd
This command is only available on UniFi AP devices.

Listen for incoming HTTP requests.

httpd [-ifv[v]] [-c CONFFILE] [-p [IP:]PORT] [-u USER[:GRP]] [-r REALM] [-h HOME] or httpd -d/-e/-m STRING

        -i              Inetd mode
        -f              Do not daemonize
        -v[v]           Verbose
        -c FILE         Configuration file (default httpd.conf)
        -p [IP:]PORT    Bind to ip:port (default *:80)
        -u USER[:GRP]   Set uid/gid after binding to port
        -r REALM        Authentication Realm for Basic Authentication
        -h HOME         Home directory (default .)
        -m STRING       MD5 crypt STRING
        -e STRING       HTML encode STRING
        -d STRING       URL decode STRING


hwclock

Query and set hardware clock (RTC).

hwclock [-r] [-s] [-w] [-t] [-l] [-u] [-f FILE]

        -r      Show hardware clock time
        -s      Set system time from hardware clock
        -w      Set hardware clock from system time
        -t      Set in-kernel timezone, correct system time
                if hardware clock is in local time
        -u      Assume hardware clock is kept in UTC
        -l      Assume hardware clock is kept in local time
        -f FILE Use specified device (e.g. /dev/rtc2)
ABCDEFGHIJKLMNOPQRSTUVWXYZ
⇐ BackPageNext ⇒

Ubiquiti UniFi Command-Line Interface Reference

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

Leave a Reply