ls-monitor is a command-line tool accessible through a shell on a device. ls-monitor lets you see traffic going over the webOS service bus, similar to a network sniffer that lets you observe HTTP traffic.
Note To access the device shell, you must connect to the device using the Secure Shell (SSH) protocol. For more details, see Network Setup.
Syntax
ls-monitor [OPTIONS...]
Note Pressing the CTRL + C key breaks out of the monitoring.
Options
Option
Parameter
Description
-h, --help
None
Displays the help.
-f, --filter
SERVICE_NAME
Filters by service name (or unique name).
e.g. -f com.webos.foo or --filter=com.webos.foo
-l, --list
None
Lists all luna services connected to a hub.
-s, --subscriptions
None
Lists all subscriptions in the system.
-i, --introspection
SERVICE_NAME
Lists service methods and signals.
e.g. -i com.webos.foo or --introspection=com.webos.foo
-v, --api-version
SERVICE_NAME
Displays the version of the service.
e.g. -v com.webos.foo or --api-version=com.webos.foo
-m, --malloc
None
Lists memory allocation data from all services in the system.
-d, --debug
None
Prints extra output for debugging monitor.
Caution Be careful of unbounded memory growth when using the debug option.
-c, --compact
None
Prints compact output to fit terminal. The followings indicate the symbols in the message printed in the Console.
>* : Signal
>| : Cancel method call
> : Method call
< : Reply
e.g. TX c.w.s.activemanage >| TX c.w.s.activemanage/private/cancel
Note This option takes precedence over the debug option.
-j, --json
None
Prints JSON-formatted output for easy parsing.
Note This option takes precedence over the debug option.
List all service methods and signals registered by ‘com.webos.service.settings’.
$ ls-monitor -i com.webos.service.settings
METHODS AND SIGNALS REGISTERED BY SERVICE 'com.webos.service.settings' WITH UNIQUE NAME 'ypFkyFme' AT HUB
"/":
"getCurrentSettings": {"provides":["all","settings.read","settings"]}"resetSystemSettingDesc": {"provides":["all","settings"]}"getSystemSettings": {"provides":["all","settings.read","settings"]}"setSystemSettingDesc": {"provides":["all","settings"]}"setSystemSettingFactoryValue": {"provides":["all","settings"]}"setSystemSettingFactoryDesc": {"provides":["all","settings"]}"deleteSystemSettings": {"provides":["all","settings"]}"batch": {"provides":["all","settings"]}"getSystemSettingValues": {"provides":["all","settings.read","settings"]}"setSystemSettingValues": {"provides":["all","settings"]}"getSystemSettingFactoryValue": {"provides":["all","settings.read","settings"]}"setSystemSettings": {"provides":["all","settings"]}"getSystemSettingDesc": {"provides":["all","settings.read","settings"]}"resetSystemSettings": {"provides":["all","settings"]}"/internal":
"getCurrentSubscriptions": {"provides":["all","settings"]}"instrument": {"provides":["all","settings"]}
Filter by service name ‘com.webos.service’ and searches for the logs including ‘com.webos.service.setting’ in the results without case-sensitivity restrictions.