tioreg
Manage registry of MAE I/O resources.
tioreg option
The tioreg utility is for managing the mapping of MAE I/O resources to actual I/O resources, which may be from a MAE spoke. MAE maintains a unique resource name that is used to reference the resource. The resource name must contain no spaces; it is case sensitive. The resource is specified using a URL-style parameter.
An I/O resource may be a file, directory, socket, (pseudo) tty, udp service, tcp service, serial device, or web page.
Option |
Description |
-list [spoke] |
List of I/O resources (perhaps for a specific spoke) |
-add name url |
Add an I/O resource with type, spoke, path and params from URL. If name begins with / then it is part of the MAE filesystem. |
-view name |
View a specific I/O resource |
-rm name |
Remove an I/O resources |
-status [spoke] |
Status I/O resources (perhaps for a specific spoke) |
-change name url |
Specify new type, spoke, path and params from URL |
-start name |
Start an I/O resources |
-stop name |
Start an I/O resources |
-spokes |
List of spokes with I/O resources |
-fs |
List of filesystem files and directories |
-ls [path] |
Filesystem I/O resources at the path |
-find text |
Find a filesystem I/O resource containing the text |
A resource URL takes the general form: type:[//spoke]/path[?param=value[¶m2=value2[&...]]]
The spoke may be omitted if the resource is hosted by the root commhub system. Otherwise, spoke must be a known and connected commhub spoke.
The path is interpreted based upon the type.
One or more optional parameters may be specified. Use %26 in place of & in the value since & is the parameter separator.
Type |
Path |
Parameters | ||||||||||||||||||||
file |
Filesystem path and filename for this static regular file. It is static in that it is not monitored for change; if a change occurs, an update is not sent to any listening apps. Upon reaching EOF, the listening app will receive EOF. |
|||||||||||||||||||||
dfile |
Filesystem path and filename for this dynamic regular file that may change. It is monitored for additional appended text (like a log file) or for replacement (new inode). It is not monitored for internal change. Upon reaching EOF, the listening app will not receive EOF since newly detected additional text will be relayed. |
| ||||||||||||||||||||
dir |
Filesystem path of the directory. A directory can be queried for its files. Files that do not have resource names may be accessed in this directory. This is useful for filenames that change, such as logfile.1. |
n/a | ||||||||||||||||||||
pipe |
Filesystem path and filename for this pipe (Unix filesystem pipe/fifo). |
n/a | ||||||||||||||||||||
socket |
Filesystem path and filename for this socket (Unix socket). |
n/a | ||||||||||||||||||||
ptty |
Path ignored. |
| ||||||||||||||||||||
exec |
Path ignored. |
| ||||||||||||||||||||
udp |
The path takes the form address/port.
|
query=query Text to send to the UDP port to prompt the response. | ||||||||||||||||||||
tcp |
The path takes the form address/port.
|
| ||||||||||||||||||||
serial |
Filesystem filename for this serial port under /dev, e.g. ttyS0. |
| ||||||||||||||||||||
usb |
Filesystem filename for this raw USB port under /dev, e.g. hiddev0. |
| ||||||||||||||||||||
http |
Base URL to query with spoke name prefixed. For example: http://spoke//server/path or http:////server/path for root. |
Parameters are per URL convention, but any parameters that start with $ will be used as headers instead, e.g. $AuthToken=SeCrEt becomes the header AuthToken: SeCrEt. | ||||||||||||||||||||
https |
Base URL to query with spoke name prefixed. For example: http://spoke//server/path or http:////server/path for root. |
Parameters are per URL convention, but any parameters that start with $ will be used as headers instead, e.g. $AuthToken=SeCrEt becomes the header AuthToken: SeCrEt. |
iogw, IORegistry database table