Name

repubBatch

Synopsis

repubBatch nodeURL -[hsntpV] [-b startTime] [-l logPublishPath] [-e endTime] [-d logDirectory] deviceID [deviceID...]

Description

The repubBatch utility is a wrapper for logPublish that enables republishing SIAM packets to the Shore Side Data System (SSDS) in batch mode.
It is typically used to republish all data from a SIAM node during a period when the connection between the SIAM node and SSDS was unavailable.

It uses the same options as the logPublish utility; the same options are used for all device IDs specified.
In addition, it adds a verbose output mode (for debugging) and an option to specify an alternative logPublish version (if there are multiple SIAM versions installed).

Options

Option Description Values
nodeURL IP address or host name of SIAM node e.g. 134.89.88.1, mooring.moos.mbari.org
-d logDirectory Path to log files Uses current working directory by default
-h Print usage message -
-l logPublishDirectory Path to logPublish utility Uses version in current path by default
-s Sticky - record last sequence number in file (1). On subsequent sticky calls, publish sequence numbers -
-n No wrap - do not use Exportable wrapper -
-t Test mode, i.e., do everything but publish -
-p Print, i.e., print packets (w/ -test only) -

-b startTime

-e endTime

Publish packets from within the specified time window. startTime and endTime are date/time strings using the format:
mm/dd/yyyy[Thh:mm[:ss]]
The time should be specified in UTC(?)
04/01/2010, 03/15/2009T11:34
deviceID

long (64-bit) integer uniquely identifying the instrument service

filter utilities use deviceIDs instead of instrument ports to specify an instrument
14533,997,1003, etc.
-V Verbose output -

Example output:

					none
					

Environment

The following environment variables must be set:

Variable Description Example
JAVA_HOME location of Java installation
/j9, /opt/java/jdk1.3.1, etc.
JAVA Path to JVM command For MMC
$JAVA_HOME/bin/j9

For Sun JVM (e.g. linux, win32, mac OS)
$JAVA_HOME/bin/java
SIAM_HOME top of the SIAM directory tree -
SIAM_CLASSPATH Path including all SIAM and supporting classes For MMC
$JAVA_HOME/lib/jclMax/classes.zip:$JAVA_HOME/lib/prsnlmot.jar:$JAVA_HOME/lib/RXTXcomm.jar:$SIAM_HOME/classes

For linux/win32
$SIAM_HOME/classes

See Also