Adding Sybase Instances Using the Commvault Command Line Interface

Applies to: Sybase, Sybase IntelliSnap

Use XML to add Sybase 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 Sybase Agent host, run the qlogin command to log on to the CommServe computer.

  2. Download the CreateInstance_Template.xml file to the computer where you will run the command.

  3. Open the CreateInstance_Template.xml file, add your specific parameters, and save the file.

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

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

    qoperation execute -af CreateInstance_Template.xml -appName 'Sybase'-clientName '<client_name>' -instanceName '<dbname>' -sybaseHome '<sybase_home>' -sybaseASE '<sybase_ase_dir>' -sybaseOCS '<sybase_ase_dir>' -configFile '<config_file>' -sharedMemoryDirectory '<shared_memory_directory>' -sybaseBlockSize '<block_size>' -backupServer 'server' -defaultDatabaseStoragePolicy/storagePolicyName '<data_sp>' -localAdministrator/userName '<admin_user>' -localAdministrator/password '<password>' -saUser/UserName '<sa_user>' -saUser/password '<password>' -enableAutoDiscovery '<true_false>'

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

Examples

Creating an Instance

qoperation execute -af CreateInstance_Template.xml -appName 'Sybase' -clientName 'sybserver2' -instanceName 'S155syb2' -sybaseHome '/sybase/syb155' -sybaseASE 'ASE-15_0' -sybaseOCS 'OCS-15_0' -configFile '/sybase/syb155/ASE-15_0/S155syb2.cfg' -sharedMemoryDirectory '/sybase/syb155/ASE-15_0/lib' -backupServer 'S155syb2_BS' -defaultDatabaseStoragePolicy/storagePolicyName 'sp_sybase_test' -localAdministrator/userName 'sybase_user' -localAdministrator/password 'password' -saUser/UserName 'sa_user' -saUser/password 'sa_password' -sybaseBlockSize '4096' -enableAutoDiscovery 'true' -description 'ServicePack Testing'

Loading...