Loading...

Adding Informix Database Instances Using the SnapProtect Command Line Interface

Use XML to add Informix database instances. Run the operation from the command line, or automate configuration by combining command line operations in a script.

You can include the XML parameters in the xml file, or you can specify them on the command line when they frequently change. For more information on command line parameters and XML elements, see Command Line - Syntax.

Procedure

  1. On the Informix Agent host, run the qlogin command to log on to the CommServe computer.
  2. Download the createinformixInstance.xml file to the computer where you will run the command.
  3. Open the createinformixInstance.xml file, add your specific parameters, and save the file.

    For information on supported instance XML parameters, see Available XML Parameters for Informix Instance Configuration.

  4. On the command line, go to Software_Installation_Directory/Base and type the command.

    Windows

    qoperation execute -af createinformixInstance.xml -appName 'Informix Database' -clientName <client_name> -instanceName '<informix_instance>' -informixUser/userName '<informix_user>' -informixUser/password '<informix_password>' -informixUser/domainName '<domain_name>' -informixDir '<$INFORMIXDIR>' -onConfigFile '<onconfig.servername>' -sqlHostfile'<path_to_sqlhosts_file>' -dataBackupStoragePolicy/storagePolicyName '<Storage_Policy>' -logBackupStoragePolicy/storagePolicyName '<Storage_Policy>' -commandLineStoragePolicy/storagePolicyName '<Storage_Policy>' -enableDeduplication 'True' -generateSignature 'ON_CLIENT' -softwareCompression 'ON_CLIENT'

    UNIX

    qoperation execute -af createinformixInstance.xml -appName 'Informix Database' -clientName <client_name> -instanceName '<informix_instance>' -informixUser/userName '<informix_user>' -informixDir '<$INFORMIXDIR>' -onConfigFile '<onconfig.servername>' -sqlHostfile '<path_to_sqlhosts_file>' -dataBackupStoragePolicy/storagePolicyName '<Storage_Policy>' -logBackupStoragePolicy/storagePolicyName '<Storage_Policy>' -commandLineStoragePolicy/storagePolicyName '<Storage_Policy>' -enableDeduplication 'True' -generateSignature 'ON_CLIENT' -softwareCompression 'ON_CLIENT'

  5. Run the qlogout command to log off the CommServe computer.

Examples

Creating an Instance

Windows

qoperation execute -af createinformixInstance.xml -appName 'Informix Database' -clientName <client_name> -instanceName '<informix_instance>' -informixUser/userName '<informix_user>' -informixUser/password '<informix_password>' -informixUser/domainName '<domain_name>' -informixDir '<$INFORMIXDIR>' -onConfigFile '<onconfig.servername>' -sqlHostfile '<$INFORMIXDIR\etc\sqlhosts.xyz>' -dataBackupStoragePolicy/storagePolicyName '<Storage_Policy>' -logBackupStoragePolicy/storagePolicyName '<Storage_Policy>' -commandLineStoragePolicy/storagePolicyName '<Storage_Policy>' -enableDeduplication 'True' -generateSignature 'ON_CLIENT' -softwareCompression 'ON_CLIENT'

UNIX

qoperation execute -af createinformixInstance.xml -appName 'Informix Database' -clientName <client_name> -instanceName '<informix_instance>' -informixUser/userName '<informix_user>' -informixDir '<$INFORMIXDIR>' -onConfigFile '<onconfig.servername>' -sqlHostfile '<$INFORMIXDIR/etc/sqlhosts.xyz>' -dataBackupStoragePolicy/storagePolicyName '<Storage_Policy>' -logBackupStoragePolicy/storagePolicyName '<Storage_Policy>' -commandLineStoragePolicy/storagePolicyName '<Storage_Policy>' -enableDeduplication 'True' -generateSignature 'ON_CLIENT' -softwareCompression 'ON_CLIENT'