ubus

OpenWrt system message bus client

TLDR

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

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

INSTALL

nix profile install nixpkgs#ubus

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)