Importing an XML File at the Command Line
You can import an XML file to provide additional feature data and to update existing feature data, using the command importVendorFeatureInfo. The XML file should include a list of vendors with features. Feature information (displayName, softwareCategory, and costFactor) will be updated for the features specified in the XML file.
The properties specified in the XML file (costFactor, displayName, and/or softwareCategory) will be updated in the RPTDW tables. Properties that are not specified in the XML file will be set to NULL in the database. This way, the XML file provides the most current information about what information is in the database. For more information, see Example XML File and Impact on the Database.
Important:If the XML file lists a feature, but does not specify a value for some of the feature’s properties (costFactor, displayName, and/or softwareCategory), those properties will be set to NULL in the RPTDW table in the database.
In order for all feature information to be accurately updated, it is recommended that you run the importVendorFeatureInfo command after aggregation has finished. The XML import does not insert new features into the database; it only updates features that already exist in the database. To ensure that all features exist in the database, you must run aggregation prior to importing the XML file.
Command-Line Syntax
flexnet importVendorFeatureInfo –u<user> –p<password> –f"<filename_with_path>" [-s<server>]
For example:
flexnet importVendorFeatureInfo -uadmin -padmin -f"c:\vendorFeatureInfo.xml"
A sample XML file can be found in the following directory:
<reporting_server_installation_dir>\site\sample\VendorFeatureInfoSample.xml
Parameter |
Description |
–u<user> |
Specifies the user to run this command. The user must be assigned a role with the View And Manage Investment Planner permission in FlexNet Manager for Engineering Applications. If no such users are configured, the user admin can be specified. |
–p<password> |
Specifies the password for the user. |
–f<filename_with_path> |
Specifies an XML file containing the vendors and features to be imported. If the path name contains spaces, the value must be enclosed in double quotation marks. |
–s<server> |
Specifies the URL for the FlexNet Manager for Engineering Applications Admin server. For example: http://localhost:8888/flexnet This is an optional argument. If no argument is specified, then the server URL is assumed to be: http://127.0.0.1:8888/flexnet |