onmode -we: Export a file that contains current configuration parameters

Use the onmode -we command to create and export a configuration file that is a snapshot of your current configuration parameters.

>>-onmode-- -we--path_name-------------------------------------><
Element Description Key Considerations
path_name The full or relative path name of the configuration file. Do not add an extension.


The onmode -we command automatically creates an ASCII file, assigning it the name that you specified in the command. The format of the file is the same as the format of the onconfig.std file.

If you changed any values dynamically during the current session, the exported file contains the changed values instead of the values that are permanently saved in the onconfig file.

After you export the configuration file, you can import it and use it as your configuration file.

If run the onmode -we command and specify a file that was previously exported, the command exports the new version of the file, overwriting the previous exported file.

The onmode -we command is equivalent to the SQL administration API function that has the onmode and export arguments.


The following command exports all configuration parameters and their current values to the onconfig3 file in the /tmp directory:
onmode -we /tmp/onconfig3