Skip to content

NovaStar Program Reference / Data Import / nsdataimportrpt


Overview

The nsdataimportrpt program imports time series data records. It can be run directly and is also called by the nsdataimport program. The program can be run from the NovaStar data import scheduler.

See the Data Import overview for background on importing data.

Command Line Usage

The command line syntax is:

nsdataimportrpt [options] ImportFile

nsdataimportrpt [options] < ImportFile

Optional values are shown in square brackets. Command line parameters are as follows.

nsdataimportrpt Command Line Parameters

Parameter         Description Default
-a Disable alarm checking. Alarms will be checked as data are filed.
-d [#] Increase or set the diagnostic display level. Errors are logged.
-f Force replacing reports already in database. Data are not reloaded if a matching ID and time exist.
-F fields Specify input field order using a comma-separated list of the following (no spaces):
  • StationId
  • SensorId
  • RawData
  • ScaledData
  • DateTime
  • Date
  • Time
  • Year
  • Month
  • Day
  • Hour
  • Minute
  • Second
  • Source
SensorId,RawData,Date,Time
-F inline Fields are prefixed by type: StationId=##,SensorId=##,RawData=#.##,DateTime=MM/DD/YYYY HH:MM:SS. Fields are not prefixed.
--help Print this usage.
-l # Specify the log file for output:
  • 0 - nssyslog
  • 1 - nsrecdata.log
  • 2 - nsautointer.log
0
-Oflags File data with flags:
  • A - data report alarmed
  • B - data series break
  • E - data report verified
  • M - maintenance data report
  • Q - data report questioned
  • V - data report valid
V (data from the imported source is assumed to be valid)
-q Quiet - no messages. Progress messages and errors are output.
-R #secs Interval that prevents filing of repeat reports.
-S # Source (line) number for report. None
-s #[smhd] Add time offset to report time. 0
-te DateTime Stopping date/time for data filing. Time when program is run.
-ts DateTime Starting time for data filing. DateTime is:
  • MM/DD/YYYY-HH:MM:SS - where / can be /+-., and : can be any non-digit
  • YYYY/MM/DD-HH:MM:SS where / can be /+-., and : are any non-digit.
  • +#[smhd...] - time offset that is added to the current time.
  • -#[smhd...] - time offset subtracted from the current time.
01/01/1980
--version Print the program version.

Examples

Scheduling

The program can be run as a data import on a schedule.

NovaStar Administrator Interface

Troubleshooting

See Also