All commands are executed by running omg <commandName> <parameter1> <parameter2> …
command in terminal.
omg dev list
Lists all compute devices created in ombori grid.
Can be used with -l
option, i.e. omg dev list -l
to enable “long output”, in this mode organisation, app name and environment are also printed.
omg dev modules <device>
Lists all modules enabled on a device, their connection status and version. If module version is about to be changed, two versions are displayed as well.
omg dev log <device> <module>
Prints logs to a specified module running on a device. The device must be online and edgeAgent module must be running.
TODO: print timestamps
TODO: specify log limit and offset
NOTE: Log streaming is currently unsupported by a MS IoT Edge runtime. To stream logs login to a device using omg dev shell
command, and run sudo docker logs -f <moduleName>
omg dev shell <device>
Opens an interactive shell to a remote device. Device must be online and GdmAgent must be running.
...
TODO: execute a specified command on a remote machine
omg dev invoke <device> <module> <method> [<payload>]
Invokes a method on a module running on a device and print the result. Device must be online and module must be running.
...