Erm control – 2N StarGate/BlueTower v5.4 User Manual
Page 145

145
ERM Control
The
user is used for administration purposes. To log in as the erm user use the
erm
er
password. The ERM is controlled and administered by the erm utility. To
mserver
launch this utility use the following syntax (the statement values are not case
sensitive):
erm statement parameters
Statement
Action
start
Launches the ermserver service. If the service is running, it
writes out a report and terminates operation.
stop
Terminates the ermserver service. Unfinished requests, if
any, are completed.
restart
Restarts the ermserver service.
Status
Writes out the ermserver service status, i.e. whether or not
it is running.
import <db_name>
<CSV_file>
<replace_duplicates>
Imports a new record into database table:
-
<db_name>
name of the database table to be used for import.
- name of the CSV file to be used for import.
<CSV_file>
If the file is unavailable in the current directory, the full
path has to be listed. The CSV file values are separated
with a comma (0x2C). The structure of all related tables is
described in the ERM database structure section.
- sets whether duplicate lines
<replace_duplicates>
should be replaced (True) or kept (False). Example of
usage: erm import clip001 clip001.csv true
export <db_name>
<CSV_file>
Exports the database table to the CSV file.Example of
usage: erm export clip001 clip001_backup.csv
Erase <db_name>
Deletes the content of a selected database table.Example of
use: erm erase clip001
Copy
<source_db_name>
<dest_db_name>
Copies the database table:
- name
<source_db_name>
of the source table;
- name of the
<dest_db_name>
destination table.Example of usage: erm copy clip001
clip002