Importing Product Definitions from the Command Line

You can import product definitions contained in an XML file, from the command line. These product definitions populate the FlexNet Manager for Engineering Applications database and are displayed on the Products page.

See Product Definition XML Format for information about the XML file format and the location of .xml and .xsd sample files.

Note:To import product definition XML files from the command line, a user must have a role with the Import Products and Contracts from Command Line permission.

To import a product definition XML file from the command line:

1. Open a Command prompt and switch to the FlexNet Manager for Engineering Applications Admin directory.
2. Run the importproducts command, using the following syntax and the parameters described in the following table.

Syntax

importproducts -u<user> -p<password> -f<filename_with_path> [-s<server>]

importproducts command-line parameters

Parameter

Description

–u<user>

Specifies the user to run this command.

The user must be assigned to any role with the Bulk Import Report Logs permission. If no such users are configured, the user admin can be used.

–p<password>

Specifies the password for the user.

–f<filename_with_path>

Specifies the full path to an XML file containing the products to be imported. If the path contains spaces, the value must be enclosed in double quotes.

See Product Definition XML Format for information on formatting the product XML file.

–s<server>

Optional parameter that specifies the URL for the FlexNet Manager for Engineering Applications Admin server. This must be an https connection.

For example: https://localhost:8888/flexnet

If this parameter is not specified, then FlexNet Manager for Engineering Applications assumes the server to be: https://127.0.0.1:8888/flexnet.

Example

flexnet importproducts –uadmin -padmin -f"c:\Producer ABC Products.xml"

See Also