Import Report (importrpt) Reference

 

Name

importrpt - Report definition import tool.

Synopsis

importrpt
-databaseURL=<connection URL> -username=<user name> -passwd=<password> -grade=<number> -f=<report definition> <report
definition>

Description

Importrpt is a command-line tool for loading report definitions from a file into a database.

Options

-databaseURL=<connection URL>

    Specify the connection information that importrpt should use when loading a report definition. The connection URL is in the following format:

    • psql://servername/database:port

    In the connection URL, the servername is the host or IP address of the server where the database is running.

    • somehost.openmfg.com
    • mydb

    The database is the name of the actual database you want to connect to on the specified server. The last option, port, is optional. If included, it must follow the color and be a valid port number. If the port is not specified, the default port of '5432' is used. For example, if you wanted to connect to the database 'mydb' on the server 'somehost.openmfg.com' using the default port, you would use the following URL:

    • psql://somehost.openmfg.com/mydb

    Similarly, if you wanted to connect to the database 'dbtest' on the server '192.168.128.64' using the port 2345 you would use the following connection URL:

    • psql://192.168.128.64/dbtest:2345
-username=<password>
    The user name you are using to connect to the server and database.
-passwd=<password>
    The password for the user name you specified.
-grade=<number>
    The grade used to load a report into the database. A numeric value from 0 to 99 is valid. The default value is 0 if this option is not specified.
-f=<report definition>

    The name of the report definition file (as it appears on your disk) that you are loading into the database. Any additional arguments that are present and do not begin with a hyphen (-) will be used as the file to load.