LinuxCommandLibrary

ubus

TLDR

List available objects

$ ubus list
copy
Get system information
$ ubus call system board
copy
Subscribe to events
$ ubus subscribe [event_name]
copy
Display help
$ ubus
copy

SYNOPSIS

ubus COMMAND [OPTIONS]

DESCRIPTION

ubus is the command-line interface for interacting with the OpenWrt ubusd message bus server. It allows communication between different system services and provides access to system information and configuration.
The ubus system enables IPC (inter-process communication) on OpenWrt routers and embedded systems, allowing scripts and applications to query and control system services.

COMMANDS

list

List available ubus objects
call OBJECT METHOD
Call a method on an object
subscribe EVENT
Subscribe to event notifications
send EVENT
Send an event

CAVEATS

OpenWrt specific. Requires running ubusd daemon. Available methods depend on installed services. Output is typically JSON formatted.

HISTORY

ubus was developed as part of OpenWrt's system architecture to provide a unified IPC mechanism for the lightweight Linux distribution used on routers and embedded devices.

SEE ALSO

uci(1), opkg(1)

Copied to clipboard