sbrecord
StreamBase Recording Tool — Records data enqueued onto all Input Streams
DESCRIPTION
sbrecord records data enqueued onto all
Input Streams in a running StreamBase application. For example, the
sbrecord --name june28feedproc command
records the data enqueued onto all Input Streams and creates several files that can
be played back with the sbfeedsim command. The generated files are based on the
--name parameter. Examples: june28feedproc.sbrec, which contains the recording's configuration
properties (pointers to one or more *.csv generated
data files, one for each Input Stream, such as june28feedproc-stream1.csv and june28feedproc-stream2.csv).
If authentication is enabled for this application, the sbrecord command requires SBUser privilege.
OPTIONS
-
-hcommand,--helpcommand -
Displays help for the specified command, then exits. For example,
sbrecord -hshows a usage message for the sbrecord command. -
-uURI -
Sets the URI of the StreamBase Server. The default is
sb://localhost:10000/. The URI can also be set using the STREAMBASE_SERVER environment variable. See the sburi page of the Reference Guide (or see sburi(5) at the UNIX shell prompt) for a discussion of the URI format and its shortcuts. -
-pTCP-port -
Sets the port number only for the StreamBase Server. Useful when the server is
localhostand you only need to specify a non-default port, instead of specifying the full URI with the-uoption. The default port is10000.Note
The
-poption is not supported for StreamBase applications that have authentication enabled or are using High Availability features. -
--namerecording-name -
Required. A name used to identify the recording session. Files generated by the sbrecord command are based on the
--nameparameter. Examples:june28feedproc.sbrec, which contains the recording's configuration properties (pointers to one or more*.csvgenerated data files, one for each Input Stream, such asjune28feedproc-stream1.csvandjune28feedproc-stream2.csv). -
--outdirfile-system-path -
Optional. Sets the location of recorded data. The path must exist and be writeable. Default to the current working directory.
-
--version -
Prints version information and exits.
FILES
The sbrecord command generates a
configuration file, using the value from the --name
parameter, and uses the sbrec file extension. For
example, the sbrecord --name marketfeed
command results in a configuration file named marketfeed.sbrec, which contains pointers to one or more CSV data
files (one for each Input Stream in the running StreamBase application).
In this example, each CSV file would be named marketfeed-. There is one configuration
file (stream-name.csv*.sbrec) for each recording.
ENVIRONMENT
-
STREAMBASE_SERVER -
Optional. Contains the URI for a StreamBase Server instance. Use this variable to set a default StreamBase URI for StreamBase commands that take the
–uoption. If set, commands use the URI in this variable, overriding their built-in default URI, which issb://localhost:10000.If this variable is set, you must use the –u option to communicate with any server other than the one specified in this variable. See the sburi page in the Reference Guide for more on StreamBase URIs. -
STREAMBASE_RETITLE_TERMINALS -
Optional. If set to any value, StreamBase programs assign a terminal window title to match the name of the executable being run. By default, terminal titles are not affected.
-
STREAMBASE_LOG_LEVEL -
Optional. Sets the minimum severity of messages that StreamBase will write to syslog or stderr. Default is
0, which getsNOTICElevel messages and higher. Reasonable values are-1, to disableNOTICEmessages and only showWARN,ERRORandFATALmessages,1, which addsINFOmessages to the standard messages, and2, which addsDEBUGmessages.
