Applies to: Sybase, Sybase IntelliSnap
Use XML to create Sybase subclients. Run the operation from the command line, or automate configuration by combining command line operations in a script.
The XML parameters can be included in the XML file, or specified on the command line when they frequently change. For more information on command line parameters and XML elements, see Command Line - Syntax.
Procedure
-
On the Sybase Agent host, run the qlogin command to log on to the CommServe computer.
-
Download the CreateSubclient.xml file to the computer where you will run the command.
-
Open the CreateSubclient.xml file, add your specific parameters and save the file.
For information on supported subclient XML parameters, see XML Parameters for Sybase Subclient Configuration.
-
On the command line, go to Software_Installation_Directory/Base and type the following command.
qoperation execute -af xml_path\create_subclient_template.xml -appName 'Sybase' -clientName 'client_name' -instanceName 'instance_name' -subclientName 'subclient_name'
Examples
Add a subclient with the database 'db'
To add this subclient, set the sybaseContent/databaseName parameter.
qoperation execute -af create_subclient_template.xml -appName 'Sybase' -clientName 'client1' -instanceName 'instance1' -subclientName 'subclient1' -contentOperationType 'ADD' -sybaseContent/databaseName 'db1'
Add an IntelliSnap subclient that uses a dump based backup copy to a configured instance
To add this subclient, set the following parameters:
Parameter |
Value |
---|---|
isSnapBackupEnabled |
true |
useDumpBasedBackupCopy |
true |
dumpBasedBackupCopyOption/USE_CONFIGURED_SYBASE_INSTANCE |
USE_CONFIGURED_SYBASE_INSTANCE |
configuredSybaseInstance/instanceName |
The Sybase instance name. In this example, 'sybase_1' |
qoperation execute -af create_subclient_template.xml -appName 'Sybase' -clientName 'client1' -instanceName 'instance1' -subclientName 'subclient1' -contentOperationType 'ADD' -sybaseContent/databaseName 'db1'-isSnapBackupEnabled true -useDumpBasedBackupCopy true -dumpBasedBackupCopyOption USE_CONFIGURED_SYBASE_INSTANCE -configuredSybaseInstance/instanceName 'sybase_1'
Add an IntelliSnap subclient that uses a dump based backup copy with an auxiliary server
To add this subclient, set the following parameters
Parameter |
Value |
---|---|
isSnapBackupEnabled |
true |
useDumpBasedBackupCopy |
true |
dumpBasedBackupCopyOption/CREATE_AUXILIARY_SYBASE_SERVER |
CREATE_AUXILIARY_SYBASE_SERVER |
sybaseHome |
The full path to the Sybase application software In this example, ./snap_server/42'. |
sybaseASE |
The full path to the Sybase ASE (Adaptive Server Enterprise) server library path. In this example, 'ASE-15_0'.' |
sybaseOCS |
full path to the Sybase OCS (Open Client Server). In this example. ''OCS-15_0' |
sybaseUser/userName |
The Sybase database user. In this example, 'test_user_1'. |
qoperation execute -af create_subclient_template.xml -appName 'Sybase Database' -clientName 'client1' -instanceName 'instance1' -subclientName 'subclient1' -contentOperationType 'ADD' -sybaseContent/databaseName 'db1'-isSnapBackupEnabled true -useDumpBasedBackupCopy true -dumpBasedBackupCopyOption CREATE_AUXILIARY_SYBASE_SERVER -sybaseHome '/snap_server/42' - sybaseASE 'ASE-15_0' -sybaseOCS 'OCS-15_0' - sybaseUser/userName 'test_user1'