Topics | QScripts | How To | Troubleshoot | Support | Related Topics
QCommands:
|
|
QCommands provide access to several basic functions through the command line, and can be integrated into your own scripts and scheduling programs. You can write scripts using the commands listed below. Note that scripts can also be generated through the CommCell Console for some features using the Save as Script option. All commands have consistent output in all situations to facilitate easier script writing.
Although several command line options are supported, it must be noted that the CommCell Console is the recommended method to manage your CommCell as it provides comprehensive support for all options available in the software. See CommCell Console for more information.
|
English is the only language that is supported across all qcommands.
|
No special configuration is required to use the command line interface. The commands are integrated with the Base package, and are therefore available on all computers which have any CommServe, MediaAgent, or Agent software installed.
In order for the commands to function, the Bull Calypso Commands Manager service should be up and running on the CommServe. The Bull Calypso Commands Manager is a service that is installed with the CommServe, and is responsible for handling command line requests and forwarding them to the Event Management Service of the target CommServe. See Services for more information.
For non-root Unix users to have access to command line interface, the following two conditions must be met:
Using the Qlogin command, you can start a User login session, removing the need to log in for every command. Once the Qlogin command is successful, the login session for all computers remain valid until you explicitly log out using the Qlogout command. This is true for all command sessions, not just the one for which the login took place.
On a 64-bit Unix computer, the qlogin command must be executed under the <software_installation_directory>/Base directory instead of the <software_installation_directory>/Base64 directory. |
Some commands can read command line arguments from a file. This is useful for complex commands that require many arguments. If a command can accept an argument file, an Argument File section will appear under Options in the command documentation below.
You can provide this file as an input to the command through the -af <filename> option. Command lines can accept both the input file, as well as command line arguments. However, when both exist, arguments provided through the input file will overwrite the command line options.
The input file contains a list of options and their value(s). Both options and values should always start on a new line (white space at the beginning and end of each line is ignored). Options are surrounded by "[" and "]", and they must always be written in lower-case letters. Any line that begins with "[" and ends with a "]" is treated as an option. An option can take more than one value, and each value should be specified in a separate line. All lines that start with "#" are treated as comments and are ignored.
# Sample input file which has three options option1,
option2 and option3.
# option1 takes one value "value1"
# option2 takes two values "value2" and "value3"
# option3 takes one value "value4"
[option1]
value1
[option2]
value2
value3
[option3]
value4
Several argument file samples are available in the <software install folder>\QCommands-Samples. They are:
For commands in which a time must be specified, the time must be entered in the following format:
mm/dd/yyyy hh:mm[:ss]
Example:
08/30/2005 05:58
Or
08/30/2005 05:58:15
The commands do not support time zones. Any time specified using the command line is assumed to be in the CommServe time zone. |
All errors from qcommands are logged in the following locations:
In the Client computer:
<software_install_folder>\Log Files\qcommand.log
In the CommServe computer:
<software_install_folder>\Log Files\QSDK.log
Data Protection, Recovery, Auxiliary Copy, Disaster Recovery Backup, and Data Aging operations and their selected options can be saved as script files using the CommCell Console, which can later be executed from the command line. See Command Line Interface - Save a Job as a Script for more information.
|
Consider the following before you save a job as a script:
If a script with same name exists, you can decide if the existing script must be overwritten. In addition, you can decide the extension of the save as script file.
You can also save a script remotely.
To save the script on a remote computer, you must enter the path and file extension. For e.g., .bat, .sh, etc.A save a job as script file can run as a pre/post process only if you include the absolute path of the associated input file in the script file. Therefore, be sure to include this path in the script file.
When writing or editing scripts, note the following:
For the File Archiver with Data Classification, the DataClassSet is represented internally as an archive set, and the DataClassSet subclient is represented internally as a subclient. |
E:\commandline>qoperation backup -c COMPUTERNAME -a Q_WINFS_MIG -b BACKUPSET -s SUBCLIENT -t Q_FULL
To archive data for a DataClassSet and a DataClassSet subclient, the command might appear as follows:
E:\commandline>qoperation backup -c BERRY -a Q_WINFS_MIG -b department01 -s department01 -t Q_FULL
The options within an argument file are always enclosed within "[" and "]", and they must always be written in lower-case letters (e.g., [client]).
Argument values that you use in a command string or
arguments file are case-sensitive. Some argument values that are available for use in both a command string and an arguments file may not work in a command string; however, these values should always work when included in an arguments file. Therefore, use argument files as appropriate. |
This command creates an entity based on the specified command.
Usage:
qcreate command <command-options-arguments> [-h]
Supported Commands:
This command creates a backup set under the given agent or instance with the specified name.
Usage:
qcreate backupset -c client -a dataagenttype -i instance -n backupset [-sp storagepolicy] [-t NORMAL|DEFAULT|ONDEMAND] [-af Argument Filepath] [-h]
Description:
This command creates a new backup set with the given backup set name under the specified client and agent. An instance name is required for those agents that allow backup sets under instances. This command also allows the user to create default backup sets and on-demand backup sets. The default subclient created under the backup set can also be associated with a storage policy (the subclient will remain unassigned if the storage policy name is not passed).
Upon successful completion, qcreate backupset displays the message "Created backupset successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "backupset: Error errorcode: errordescription"
Options:
Command Line
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name, required for a few agents | ||
-n | Name of the backup set to be created | ||
-t | Type of backup set (NORMAL, DEFAULT, or ONDEMAND) | ||
-sp | Storage policy name to which default subclients are to be associated | ||
-af | Reads arguments from a file | ||
-h | Displays help |
Argument File
client | Client computer name | ||
dataagent | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
backupset | Backup set name to be created | ||
sp | Storage policy name to be associated with all subclients in the backup set | ||
backupsettype | Backup set type (NORMAL, DEFAULT, or ONDEMAND) | ||
compressionat | Compression at client or MediaAgent (CLIENT|MA) | ||
networkagents | Number of network agents | ||
prebackup | Prebackup command name | ||
postbackup | Postbackup command name | ||
prescan | Prescan command name | ||
postscan | Postscan command name |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Create a backup set with name bs1 under client client1 and
Agent Q_WIN2K_FS.
E:\commandline>qcreate backupset -c client1 -a Q_WIN2K_FS
-n bs1
This command creates an instance under the given agent.
Usage:
qcreate instance -c client -a iDataAgent -n instance -dsp defaultstoragepolicy -csp cmdlinestoragepolicy -lsp logstoragepolicy [-o overrideCSSettings] [-lsa localsysaccount] [-su SQLUser] [-p SQLpassword] [-hu Host User Windows|Unix)] [-ntu ntuser] [-ntp ntpas sword] [-oh oracleHome] [-ocu connectUser] [-ocp connectPassword] [-ocs connectService] [-ct usecatalog] [-ctu catalogUser] [-ctp catalogPassword] [-cts catalogService] [-du DB2user] [-dp DB2password] [-dh DB2Home][-af argsfile] [-h]
Description:
This command creates an instance under the specified agent. Instance creation for the following agents is supported:
All the instances require the client name, agent name and the name of the instance for the agent.
The Data Path parameter is not supported in the Command Line Interface unlike in the CommCell Console, where the parameter is supported. |
In order to create an instance for Oracle on Unix client on a Windows CommServe, you need to use the QCreate Instance command with an input file. This is because "/" is an argument separator in Windows and hence cannot be used for paths. |
Three types of authentication are supported:
Encryption is taken per its default values and is not supported. |
Upon successful completion, qcreate instance displays the "Created instance successfully" message on the CommCell Console. In case of an error, an error code and the error description are displayed in the following format: "Instance: Error errorcode: errordescription".
Options:
Command Line
-c | [string] Client computer name | ||
-a | [string] Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-n | [string] Name of the instance to be created for the agent | ||
-dsp | [string] Default storage policy name [SQL, DB2, Oracle] | ||
-csp | [string] Command line storage policy name [DB2, Oracle] | ||
-lsp | [string] Log storage policy name [SQL, DB2, Oracle] | ||
-du | [string] DB2 User Name [DB2] | ||
-dp | [string] DB2 Password (in plain text) [DB2] | ||
-dh | [string] DB2 Home [DB2] | ||
-ntu | [string] NT User Name [Oracle] | ||
-hu | [string] Host User Name [Oracle] | ||
-ntp | [string] NT Password (in plain text) [Oracle] | ||
-oh | [string] Oracle Home [Oracle] | ||
-ocu | [string] Connect User [Oracle] | ||
-ocp | [string] Connect Password [Oracle] | ||
-ocs | [string] Connect Service [Oracle] | ||
-ct | [string] Use Catalog [yes|no] [Oracle] | ||
-ctu | [string] Catalog User [Oracle] | ||
-ctp | [string] Catalog Password [Oracle] | ||
-cts | [string] Catalog Service [Oracle] | ||
-o | [string] Overrides the CommServe settings (yes|no) [SQL] | ||
-lsa | [string] Local System Account (yes|no) [SQL] | ||
-su | [string] SQL USER Name [SQL] | ||
-p | [string] Password (in plain text) [SQL] | ||
-af | [string] Reads arguments from a file | ||
-h | [string] Displays help |
Argument File
General
client | [string] Client computer name | ||
dataagent | [string] Agent type installed on client computer
instance (see Argument Values - Agent Types)
|
||
instance | [string] Instance name as reflected in the agent or On Demand instance | ||
defaultsp | [string] Default storage policy name | ||
logsp | [string] Log storage policy name |
DB2
cmdlinesp | [string] Command line storage policy name |
ntuser | [string] NT - User Name |
ntpassword | [string] NT - Password |
dbuser | [string] DB2 User |
dbpassword | [string] DB2 Password |
dbhome | [string] DB2 Home |
compressionat | [string] Compression at [CLIENT|MA] |
networkagents | [number] Number of Network Agents |
networkbandwidth | [number] Network Bandwidth |
Oracle
cmdlinesp | [string] Command line storage policy name |
ntuser | [string] NT - User Name |
ntpassword | [string] NT - Password |
oraclehome | [string] Oracle Home |
oracleconnectuser | [string] Oracle Connect User |
oracleconnectpassword | [string] Oracle Connect Password |
oracleconnectservice | [string] Oracle Connect Service |
usecatalog | [string] Use Catalog [yes|no] |
cataloguser | [string] Catalog connect string, user name |
catalogpassword | [string] Catalog connect string, password |
catalogservice | [string] Catalog connect string, service name |
tns | [string] TNS Admin Folder |
blocksize | [number] Block size(>0) |
logstreamcount | [string] Log Stream Count (>0) |
compressionat | [string] Compression at [CLIENT|MA] |
networkbandwidth | [number] Network Bandwidth |
SQL
sqluser | [string] SQL User Name |
password | [string] SQL Password |
local | [string] Local machine authentication [yes|no] |
override | [string] Override client group and CommServe settings [yes|no] |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Create an instance with name CLIENT1\BullCalypso
under client Client1 and
Agent Q_MSSQL.
C:\calypso\Base\qcreateinstance
-c Client1 -a Q_MSSQL
-n -CLIENT1\BullCalypso -dsp SP1 -lsp SP1 -o no
Created instance successfully.
Create an On Demand instance under client rman10g and Agent Q_ORACLE.
C:\calypso\Base\qcreate instance
-c
rman10g -a Q_ORACLE -n -"On Demand Instance"
Created instance successfully.
Create an Oracle instance for agent Q_ORACLE
C:\calypso\Base\qcreate instance -c rdlab04 -a Q_ORACLE -n DB1 -dsp ora_data -csp Lin_mag -lsp ora_log -hu oracle -oh "/export/home/oracle/oracle10" -ocu sys -ocp sys -ocs DB1 -ct yes -ctu rdlabdb1 -ctp rdlabdb1 -cts rcat10g2
Created instance successfully.
This command creates a replication set under the given agent or instance with the specified name.
Usage:
qcreate repset -rp repset policy -c client -a idataagent -n repset name [-h]
Description:
This command creates a new Replication Set which is similar in concept to a Backup Set which is used by some Agents, and represents a logical grouping of Replication Pairs. This allows you to configure certain properties and activities at the Replication Set level, and thus control all the included Replication Pairs together.
Ensure your Replication Policy is created first prior to running qcreate repset. The associated replication set policy will determine whether the replication set is for the ContinuousDataReplicator, Remote Backup or MediaAgent Replication. |
Upon successful completion, qcreate repset displays the message "Created replication set successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "sp: Error errorcode: errordescription"
Options:
Command Line
-rp | Replication set policy | ||
-c | Client computer name | ||
-a | iDataAgent type installed on client
computer (Q_FILE_REPLICATION)
|
||
-n | Replication set name | ||
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Create a repset with name rd1 and replication set policy rp_policy1 under client client1 and agent
Q_FILE_REPLICATION.
E:\commandline>qcreate repset -rp rp_policy1 -c client1
-a Q_FILE_REPLICATION -n rd1
This command creates a new storage policy (for data protection).
Usage:
qcreate sp -sp storagepolicy -m mediaagent -l library -d drivepool -srp scratchpool [-isp incstoragepolicy] [-h]
Description:
This command creates a new storage policy for data protection. The drive pool name to which the backup data of Primary copy is directed, the incremental storage policy name, and the scratch pool from which the copy obtains new media can also be specified.
Upon successful completion, qcreate sp displays the message "Created storage policy successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "sp: Error errorcode: errordescription"
Options:
-sp | Storage policy name to be created |
-m | MediaAgent name |
-l | Media library name |
-d | Drive pool name to which backup data of Primary copy is directed |
-srp | Name of the scratch pool from which the copy obtains new media |
-isp | Incremental storage policy name to be associated with the new storage policy name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Create a copy with name copy1 for storage policy sp1, MediaAgent
magent1, library maglib1.
E:\commandline>qcreate sp -sp sp1 -m magent1 -l maglib1
This command creates a new secondary copy (synchronous) for the specified storage policy.
Usage:
qcreate spcopy -sp storagepolicy -n copy -m mediaagent -l library -d drivepool -srp scratchpool [-h]
Description:
This command creates a new secondary copy of the specified storage policy. The new copy will be a synchronous copy, which means that everything from the primary copy (including full, differential, and incremental backups) are copied to the secondary copy. By default, the new copy is enabled for media reads/writes. The drive pool name to which the backup data of the Primary copy is directed, as well as the scratch pool from which the copy obtains new media, can also be specified.
Upon successful completion, qcreate spcopy displays the message "Created storage policy copy successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "qcreate spcopy: Error errorcode: errordescription"
Options:
-sp | Storage policy name for which a new copy is to be created |
-n | Secondary copy name |
-m | MediaAgent name |
-l | Media library name |
-d | Drive pool name to which backup data of the Primary copy is directed |
-srp | Name of the scratch pool from which the copy obtains new media |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Create a copy with name copy1 for storage policy sp1, MediaAgent
magent1, library maglib1.
E:\commandline>qcreate spcopy -n copy1 -sp sp1 -m magent1
-l maglib1
This command creates a subclient under the given backup set or instance with the specified storage policy and content.
Usage:
qcreate subclient -c client -a dataagenttype -b backupset -i instance -n subclient -sp storagepolicy -f content [-wc y|n] [-af argsfilepath] [-h]
Description:
This command creates a new subclient with the given subclient name and content under the specified client and agent. The instance name and backup set name are required for certain agents, and should be specified when applicable. The new subclient will be associated with the specified storage policy. If you want to enable de-duplication, create the [singleinst] section in the Argument file and specify whether de-duplication should be performed in the MediaAgent or the Client.
Upon successful completion, qcreate subclient displays the message "Created subclient successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "subclient: Error errorcode: errordescription"
Options:
Command Line
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-b | Backup set name, required for certain agents | ||
-i | Instance name, required for certain agents | ||
-n | Name of the subclient to be created | ||
-sp | Name of the storage policy to be associated with the subclient | ||
-f | File/Directory Path to be included as content in the new subclient | ||
-wc | Does File/Directory Paths have wildcards (y|n) | ||
-af | Reads arguments from a file | ||
-h | Displays help |
Argument File
client | Client computer name | ||
dataagent | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
backupset | Backup set name | ||
subclient | Subclient name to be created | ||
datareaders | Number of data readers | ||
sp | Storage policy name to be associated with the subclient. | ||
content | Subclient content (list of files/directories). | ||
compressionat | Compression at client or MediaAgent (CLIENT|MA) | ||
networkagents | Number of Network Agents | ||
prebackup | PreBackup command name | ||
postbackup | PostBackup command name | ||
prescan | Prescan command name | ||
postscan | PostScan command name | ||
wildcard | Wildcard characters | ||
singleinst | MediaAgent or Client | ||
description | User-defined description |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example 1:
Create a subclient with name sc1 under client client1, iDataAgent Q_WIN_FS and backup set bs1 with content c:\ and storage policy sp1. E:\commandline>qcreate subclient -c client1 -a Q_WIN_FS -b bs1 -n sc1 -f "c:\" -sp sp1
Example 2:
Create a subclient with name sc1 under client client1, iDataAgent
Q_MSSQL and backup set bs1 with content c:\ and storage policy
sp1.
E:\commandline>qcreate subclient -c client1 -a Q_MSSQL -b
bs1 -n sc1 -f "c:\" -sp sp1
Example 3:
Create a subclient with name sc1 under client client1, iDataAgent
Q_SHAREPOINT_SERVER and backup set bs1 with content c:\ and storage policy
sp1.
E:\commandline>qcreate subclient -c client1 -a Q_SHAREPOINT_SERVER -b bsl
-n sc1 -f "c:\" -sp sp1
This command creates a user account.
Usage:
qcreate user -u username [-p password] [-fn fullname] [-desc description] [-e email] [-en loginEnabled] [-pa agepassword] [-ug usergroups] [-af argsfile] [-h]
Description:
This command creates a new user account with the supplied user name and password. If the password is not specified at the command line, it will be prompted. The other options are optional.
By default, the login is enabled when there is no input specified for the [-en loginEnabled] option. Also, by default, the user belongs to the View All group when there is no input specified for the [-ug usergroups] option.
Upon successful completion, qcreate user displays the message "Created a new user successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "user: Error errorcode: errordescription"
Options:
-u [string] | User name |
-p [string] | Password (in plain text) |
-fn [string] | Full name |
-desc [string] | Description |
-e [string] | Email ID |
-en [string] | Login enable (y|n) |
-pa [number] | Password aging (number of days) |
-ug [string] | User groups |
-af [string] | Reads arguments from a file |
-h | Displays help |
Argument File:
user [string] | User name |
password [string] | Password |
fullname [string] | Full name |
description [list of strings] | Description |
email [string] | Email ID |
loginenable [string] | Y|N |
passwordaging [number] | Password aging - number of days |
description | User-defined description |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Create a user user1 with password password1.
E:\commandline>qcreate user -u user1 -p password1
This command deletes an entity based on the specified command.
Usage:
qdelete command <command-options-arguments> [-h]
Supported Commands:
This command deletes a given backup set.
Usage:
qdelete backupset -c client -a dataagenttype -b backupset [-af ArgumentFilepath] [-h]
Description:
This command allows you to delete a given backup set.
Upon successful completion, qdelete backupset displays the message "Deleted backupset successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "backupset: Error errorcode: errordescription"
Options:
Command Line
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-b | Name of the backup set to be deleted | ||
-af | Reads arguments from a file | ||
-h | Displays help |
Argument File
client | Client computer name | ||
dataagent | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
backupset | Backup set name to be deleted |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Delete a backupset with name bs1 under client client1 and Agent
Q_WIN2K_FS.
E:\commandline>qdelete backupset -c client1 -a Q_WIN2K_FS
-b bs1
This command either deconfigures a given client or both deletes and deconfigures the client.
Usage:
qdelete client -c client [-deconfigure][-y] [-h]
Description:
This command either:
By default, this command asks for confirmation before deletion but this prompting can be suppressed by using the -y option.
Upon successful completion, qdelete client displays the message "Deleted the client successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "client: Error errorcode: errordescription"
Options:
-c | Client computer name |
-d | Deconfigure a client but do not delete it |
-y | Delete without confirmation |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Examples:
Delete a client with name client1.
E:\commandline>qdelete client -c client1
This command deconfigures and deletes a client, do you want to continue (y/n)?
[n]
Deconfigure, but do not delete, a client with name client1 without any
confirmation .
E:\commandline>qdelete client -c client1 -deconfigure
-y
NOTES
This command either deconfigures a given iDataAgent or both deletes and deconfigures the iDataAgent.
Usage:
qdelete dataagent -c client -a iDataAgent [-deconfigure] [-y] [-h]
Description:
This command either:
By default, this command asks for confirmation before deletion but this prompting can be suppressed by using the "-y" option.
Upon successful completion, qdelete dataagent displays the message "Deleted the iDataAgent successfully" on the console. In case of an error, an error code and the error description are displayed in the following format: "dataagent: Error errorcode: errordescription"
Options:
-c | Client computer name | ||
-a | iDataAgent to be deleted (see
Argument Values - Agent Types)
|
||
-d | Deconfigure the iDataAgent but do not delete it | ||
-y | Delete without confirmation | ||
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Examples:
Delete an iDataAgent Q_ORACLE
under client client1.
E:\commandline>qdelete dataagent -c client1 -a Q_ORACLE
This command deconfigures and deletes an iDataAgent, do you want to configure
(y/n)
Deconfigure an iDataAgent Q_ORACLE
under client client1 without any confirmation.
E:\commandline>qdelete client -c client1 -a Q_ORACLE
-deconfigure - y
This command deconfigures and deletes a given Mediaagent.
Usage:
qdelete mediaagent -m mediaagent [-y] [-h]
Description:
This command deconfigures and deletes a Mediaagent. By default, this command asks for confirmation before deletion but this prompting can be suppressed by using the "-y" option.
Upon successful completion, qdelete mediaagent displays the message "Deleted the MediaAgent successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "mediaagent: Error errorcode: errordescription"
Options:
-m | Mediaagent name |
-y | Delete without confirmation |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Delete a MediaAgent with name M_Agent .
E:\commandline>qdelete mediadataagent -m
M_Agent
NOTES
This command deletes a given storage policy.
Usage:
qdelete sp -sp storagepolicy [-h]
Description:
This command allows you to delete a given storage policy.
Upon successful completion, qdelete sp displays the message "Deleted storage policy successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "sp: Error errorcode: errordescription"
Options:
-sp | Storage policy name to be deleted |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Delete a storage policy with name sp1.
E:\commandline>qdelete sp -sp sp1
This command deletes a given storage policy copy.
Usage:
qdelete spcopy -sp storagepolicy -spc copy [-h]
Description:
This command allows you to delete a given storage policy copy.
Upon successful completion, qdelete spcopy displays the message "Deleted storage policy successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "spcopy: Error errorcode: errordescription"
Options:
-sp | Storage policy name |
-spc | Storage policy copy name to be deleted |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Delete a storage policy copy with name spc1 under storage policy sp1.
E:\commandline>qdelete spcopy -sp sp1 -spc spc1
This command deletes a given subclient.
Usage:
qdelete subclient -c client -a dataagenttype -b backupset -s subclient [-af ArgumentFilepath] [-h]
Description:
This command allows you to delete a given subclient.
Upon successful completion, qdelete subclient displays the message "Deleted subclient successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "subclient: Error errorcode: errordescription"
Options:
Command Line
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-b | Name of the backup set | ||
-s | Name of the subclient to be deleted | ||
-af | Reads arguments from a file | ||
-h | Displays help |
Argument File
client | Client computer name | ||
dataagent | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
backupset | Backup set name | ||
subclient | Subclient name to be deleted |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Delete a subclient with name sc1 under client client1 and Agent
Q_WIN2K_FS and backupset bs1.
E:\commandline>qdelete subclient -c client1 -a Q_WIN2K_FS
-b bs1 -s sc1
This command performs various drive operations.
Usage:
qdrive command <command-options-arguments> [-h]
Supported Commands:
This command cleans a given drive.
Usage:
qdrive clean -dr drive -l library [-h]
Description:
This command allows you to clean a drive.
Upon successful completion, qdrive clean displays the message "Request successful" in the console. In case of an error, an error code and the error description are displayed in the following format: "Clean: Error errorcode: errordescription"
Options:
Command Line
-dr | Drive name |
-l | Library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Clean a drive Drive1 in
library Library1.
E:\commandline>qdrive clean -dr Drive1 -l library1
This command disables a given drive.
Usage:
qdrive disable -dr drive -l library [-h]
Description:
This command disables a drive in a specified library.
Upon successful completion, qdrive disable displays the message "Request successful" in the console. In case of an error, an error code and the error description are displayed in the following format: "disable: Error errorcode: errordescription"
Options:
Command Line
-dr | Drive name |
-l | Library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Disable a drive Drive1 in library Library1.
E:\commandline>qdrive disable -dr Drive1 -l Library1
This command enables a given drive.
Usage:
qdrive enable -dr drive -l library [-h]
Description:
This command enables a drive in a specified library
Upon successful completion, qdrive enable displays the message "Request successful" in the console. In case of an error, an error code and the error description are displayed in the following format: "enable: Error errorcode: errordescription"
Options:
Command Line
-dr | Drive name |
-l | Library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Enable a drive Drive1 in the library Library1.
E:\commandline>qdrive enable -dr Drive1 -l Library1
This command resets a given drive.
Usage:
qdrive reset -dr drive -l library [-h]
Description:
This command allows you to reset a drive for a specified library.
Upon successful completion, qdrive reset displays the message "Request successful" in the console. In case of an error, an error code and the error description are displayed in the following format: "reset: Error errorcode: errordescription"
Options:
Command Line
-dr | Drive name |
-l | Library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Reset a drive Drive1 for
library Library1.
E:\commandline>qdrive reset -dr Drive1 -l Library1
This command unloads a given drive.
Usage:
qdrive unload -dr drive -l library [-h]
Description:
This command allows you to unload a drive for the specified library.
Upon successful completion, qdrive unload displays the message "Request successful" in the console. In case of an error, an error code and the error description are displayed in the following format: "unload: Error errorcode: errordescription"
Options:
Command Line
-dr | Drive name |
-l | Library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Unloads a drive Drive1 for library Library1.
E:\commandline>qdrive unload -dr Drive1 -l Library1
This command labels media.
Usage:
stampmedia -dr drive -l library -b barcode [-h]
Description:
This command labels media associated with the standalone drive.
Upon successful completion, qdrive stampmedia displays the message "Request successful" in the console. In case of an error, an error code and the error description are displayed in the following format: "unload: Error errorcode: errordescription"
Options:
Command Line
-dr | Drive name |
-l | Library name |
-b | Barcode |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Unloads a drive Drive1 for library Library1.
E:\commandline>qdrive stampmedia -dr Drive1 -l Library1
-b Barcode1
This command displays the error description of a given error number.
Usage:
qgeterrorstring error number [-h]
Description:
If the specified error number is valid, the error description for the error code is displayed. Otherwise, an error code and the error description are displayed in the following format: "qgeterrorstring: Error errorcode: errordescription"
Options:
-h Displays help
Diagnostics: Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
This command displays information about an entity.
Usage:
qinfo command <command-options-arguments> [-h]
Supported Commands:
This command displays information about a backup set.
Usage:
qinfo backupset -c client -a dataagenttype -i instance -b backupset [-desc] [-h]
Description:
This command displays information about a given backup set in the specified client and iDataAgent. If the iDataAgent supports instances above backup sets, only those backup sets under the specified instance are listed.
In case of an error, an error code and the error description are displayed in the following format: "backupset: Error errorcode: errordescription"
Options:
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name, required for a few agents | ||
-b | Backup set name | ||
-desc | Displays description provided by the user | ||
-h | Displays help |
To display only the entire user description (if it was provided) and no other information for the backup set, be sure to include the -desc option when you run the command. Otherwise, all the requested information along with only a "curtailed" (partial) description will be displayed. |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Display information about a backup set defaultBackupSet in client client1
and Agent Q_WIN_FS.
E:\commandline>qinfo backupset -c client1 -a Q_WIN_FS
-b
defaultBackupSet
Name Default Ondemand Description |
: defaultBackupSet : Yes : No : Backup Set description |
Display only user description for a backup set defaultBackupSet in client
qsdk
and Agent Q_WIN_NET32_FS.
E:\commandline>qinfo backupset -c qsdk -a Q_WIN_NET32_FS
-b defaultBackupSet [-desc]
This is the XPATH pattern used to identify the nodes to be processed as rows. Indicates the mapping that should be used between the XML data and the relational rowset and also how the spillover column should be filled. Input parameter 'flags is optional, and it can be one of the following values.
This command displays information about an instance under the given client and iDataAgent.
Usage:
qinfo instance -c client -a dataagenttype -i instancename [-h]
Description:
This command displays information about a given instance in the specified client and iDataAgent. If the iDataAgent does not support instances, the default instance name is returned. This command is mainly used for instances in Oracle agents where command line and log storage policy are displayed. For other instances, just the name is displayed.
In case of an error, an error code and the error description are displayed in the following format: "instance: Error errorcode: errordescription"
Options:
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name, required for a few agents | ||
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Display information about an instance OEMREP in client client1
and Agent Q_ORACLE.
E:\commandline>qinfo instance -c client1 -a Q_ORACLE
-i OEMREP
Name Commandline storage policy Log storage policy |
: OEMREP : battra_t(battra)-DP(2) : battra_t(battra)-DP(2) |
This command displays information about a given media.
Usage:
qinfo media -b barcode [-desc] [-h]
Description:
This command displays information about a given media.
In case of an error, an error code and the error description are displayed in the following format: "media: Error errorcode: errordescription"
Options:
-b | Barcode |
-desc | Displays description provided by the user |
-h | Displays help |
To display only the entire user description (if it was provided) and no other information for the media, be sure to include the -desc option when you run the command. Otherwise, all the requested information along with only a "curtailed" (partial) description will be displayed. |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Display information about a media O10010WW.
E:\commandline>qinfo media -b 010010WW
Name
:10010WW
Storage policy :battra_t(battra)-DP(2)
Copy
:Primary
Location
:slot2
Library
:Library1
Status
:Idle
Description :Media description
This command displays information about a subclient under the given instance or backup set.
Usage:
qinfo subclient -c client -a dataagenttype -i instance -b backupset -s subclient [-desc] [-h]
Description:
This command displays information about a subclient in the specified client, iDataAgent, and backup set/instance. The backup set name and instance name should be specified based on the iDataAgent, as certain agents place subclients under backup sets, and others place them under the instance.
In case of an error, an error code and the error description are displayed in the following format: "subclient: Error errorcode: errordescription"
Options:
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name, required for a few agents | ||
-b | Backup set name, required for a few agents | ||
-s | Subclient name | ||
-desc | Displays description provided by the user | ||
-h | Displays help |
To display only the entire user description (if it was provided) and no other information for the subclient, be sure to include the -desc option when you run the command. Otherwise, all the requested information along with only a "curtailed" (partial) description will be displayed. |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Display information about a subclient sc1 in the client client1
Agent Q_WIN_FS and backup set bs1
E:\commandline>qinfo subclient -c client1 -a Q_WIN_2KFS
-b bs1 -s sc1
Name Default Storage policy Description |
: sc1 : Yes : battra_t(battra)-DP(2) : Subclient description |
This command performs several library related operations.
Usage:
qlibrary command <command-options-arguments> [-h]
Supported Commands:
This command disables a given library.
Usage:
qlibrary disable -l library [-h]
Description:
This command disables a given library. In case of an error, an error code and the error description are displayed in the following format: "disable: Error errorcode: errordescription"
Options:
Command Line
-l | Library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
disable a given library Library1
E:\commandline>qlibrary disable -l Library1
This command discovers new media in a given library.
Usage:
qlibrary discover -l library -srp scratchpool -mt mediatype [-h]
Description:
This command discovers new media in a given library. If the library is available and discovered, it will be moved into the specified scratch pool and assigned the specified media type name.
Options:
-l | Library name |
-srp | Scratch pool name |
-mt | Media type name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
disable a given library Library1
E:\commandline>qlibrary discover -l STK9730 ACSLS -srp
spares for 4000 -mt DLTape IV
This command enables a given library.
Usage:
qlibrary enable -l library [-h]
Description:
This command enables a given library.
In case of an error, an error code and the error description are displayed in the following format: "enable: Error errorcode: errordescription"
Options:
-l | Library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
enable a given library Libary1.
E:\commandline>qlibrary enable -l Library1
This command performs a fullscan on a given library.
Usage:
qlibrary fullscan -l library [-h]
Description:
This command performs a fullscan of a given library.
In case of an error, an error code and the error description are displayed in the following format: "fullscan: Error errorcode: errordescription"
Options:
-l | Library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Perform a fullscan on a given library Library 1
E:\commandline>qlibrary fullscan -l Library1
This command imports media into a given library.
Usage:
qlibrary import -l library [-h]
Description:
This command imports media into a given library. On successful completion, qlibrary import displays the message "After all the media have been moved into the slots, the library finishes its initialization without errors. Please use "Discover" option to identify the new media." in the console.
In case of an error, an error code and the error description are displayed in the following format: "import: Error errorcode: errordescription"
Options:
Command Line
-l | Library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Import media into given library Library1.
E:\commandline>qlibrary import -l Library1
This command resets a given library.
Usage:
qlibrary reset -l library [-h]
Description:
This command resets a given library.
In case of an error, an error code and the error description are displayed in the following format: "reset: Error errorcode: errordescription"
Options:
-l | Library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Resets a given library Library1.
E:\commandline>qlibrary reset -l Library1
This command lists down various entities based on the specified command.
Usage:
qlist command <command-options-arguments> [-h]
Supported Commands:
This command lists all of the backup sets under the given client, agent and instance (if applicable).
Usage:
qlist backupset -c client -a dataagenttype -i instance [-h]
Description:
This command lists the names of all the backup sets in the specified client and agent. If the agent supports instances above the backup set level, then only those backup sets under the specified instance are listed. When more than one backup set is found, the backup sets are listed one backup set per line, and are displayed in the console. No message is displayed when backup sets are not found.
In case of an error, an error code and the error description are displayed in the following format: "backupset: Error errorcode: errordescription"
Options:
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name, required for certain agents | ||
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the Backup sets in the client client1, Agent Q_WIN_FS.
E:\commandline>qlist backupset -c client1 -a Q_WIN2K_FS
defaultBackupSet
bs1
This command lists all of the client computers configured in the CommCell.
Usage:
qlist client [-h]
Description:
This command lists names of all the client computers configured in the CommCell. In addition to the client name, the operating system and installation state are also displayed. When more than one client is found, the clients are listed one client per line, and are displayed in the console. No message is displayed when clients are not found.
In case of an error, an error code and the error description are displayed in the following format: "client: Error errorcode: errordescription"
Options:
-h Displays help
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the clients configured in the CommCell.
E:\commandline>qlist client
NAME | OS | ACTIVE |
---- | -- | ------ |
spock | Windows Server 2003 | Yes |
caput | AIX | Yes |
ursa_major | Windows XP | Yes |
metal | Windows 2000 | Yes |
virgo | SunOS | Yes |
aries | HP-UX | Yes |
chara | NetWare | Yes |
copper-Irina | Windows Server 2003 | No |
Microsoft Windows x64 platform information may not be displayed correctly for x64 clients on which a 32-bit component is installed. |
This command lists all of the clientgroups configured in the CommCell.
Usage:
qlist clientgroup [-h]
Description:
This command lists names of all the clientgroups configured in the CommCell. When more than one clientgroup is found, one clientgroup per line are listed, and are displayed in the console. No message is displayed when clients are not found.
In case of an error, an error code and the error description are displayed in the following format: "clientgroup: Error errorcode: errordescription"
Options:
-h Displays help
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the clientgroups configured in the CommCell.
E:\commandline>qlist clientgroup
This command lists all of the agents installed on the given client computer.
Usage:
qlist dataagent -c client [-h]
Description:
This command lists all of the agents installed on the specified client computer. For a list of possible agents that qlist dataagent can return, see Argument Values - Agent Types. When more than one agent is found, the agents are listed one agent per line, and are displayed in the console. No message is displayed in the console when no agents are found.
In case of an error, an error code and the error description are displayed in the following format: "dataagent: Error errorcode: errordescription"
Options:
-c | Client computer name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the agents configured in the client client1.
E:\commandline>qlist dataagent -c client1
NAME ---- Q_HPUX_FS |
DESCRIPTION -- File System |
ACTIVE ------ Yes |
This command lists the names of the drives under the specified library.
Usage:
qlist drive -l library [-h]
Description:
This command lists the names of the drives under the specified library. When more than one drive is found, the drive are listed as one drive per line, and are displayed in the console. No message is displayed in the console when drive are not found.
In case of an error, an error code and the error description are displayed in the following format: "drive: Error errorcode: errordescription"
Options:
-l | Media library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the drives configured in the library library1
E:\commandline>qlist drive -l library1
drive1
drive2
This command lists all the drive pools under the specified master drive pool.
Usage:
qlist drivepool -m mediaagent -l library -md masterdrivepool [-h]
Description:
This command lists the names of all the drive pools available under the specified MediaAgent, library and master drive pool. When more than one drive pool is found, the drive pools are listed as one drive pool per line, and are displayed in the console. No message is displayed in the console when drive pools are not found.
In case of an error, an error code and the error description are displayed in the following format: "drivepool: Error errorcode: errordescription"
Options:
-m | MediaAgent name |
-l | Media library name |
-md | Master drive pool name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the drive pools available in the MediaAgent client1, media library
maglib1 and master drive pool MasterPool_Magnetic_33.
E:\commandline>qlist drivepool -m client1 -l maglib1
-md
MasterPool_Magnetic_33
DrivePool_Magnetic_33
This command lists all the globalfilters configured for the specified subclient.
Usage:
qlist globalfilter -t filter type [-h]
Description:
This command lists the names of all the globalfilters configured on the specified subclient type under the commcell. When more than one globalfilter is found, they are listed as one globalfilter per line, and are displayed in the console. No message is displayed in the console when globalfilters are not found.
In case of an error, an error code and the error description are displayed in the following format: "globalfilters: Error errorcode: errordescription"
Options:
-t | Filter type Windows|Unix|Netware |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the globalfilters configured in the commcell under Windows
subclients.
E:\commandline>qlist globalfilter -t Windows
C:\dell
D:\programfiles
This command lists all of the instances under the given client and agent.
Usage:
qlist instance -c client -a dataagenttype [-h]
Description:
This command lists names of all the instances in the specified client and agent. If the agent does not support instances, the default instance name is returned. When more than one instance is found, the instances are listed as one instance per line, and are displayed in the console. No message is displayed in the console when instances are not found.
In case of an error, an error code and the error description are displayed in the following format: "instance: Error errorcode: errordescription"
Options:
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-h | Displays help |
Diagnostics: Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the Instances in the client client1, Agent Q_WIN_FS.
E:\commandline>qlist instance -c client1 -a Q_WIN2K_FS
defaultInstanceName
This command lists job details of "a given job ID" OR "all active jobs under a given "client/agent/instance/backupset/subclient".
Usage:
qlist job [-co i|o|s|p|r|d] [-j jobid] [-jt jobtype] [-js Running|Suspended|Waiting|Pending] [-c client] [-a iDataAgent Type] [-i instance] [-b backupset] [-s subclient] [-h]
Whenever you run this command, it is recommended that you use the [-jt jobtype] option to specify the job type output you want to generate. This will prevent generating output regarding administration jobs. |
Description:
This command displays job details such as job ID, type, phase, status, failure reason, and user-defined description. When a job ID is specified, its details are displayed irrespective of the job status. Only active jobs are displayed when you query jobs based on client, agent, instance, backup set, or subclient. This commands displays all active jobs in the CommServe when no option is specified. Additionally, you can filter the jobs based on the job type or status. Only those jobs with the specified type/status are displayed in the console. When more than one job is found, the jobs are listed one job per line, and are displayed in the console. The system displays a message "No jobs to display" when there are no jobs.
In case of an error, an error code and the error description are displayed in the following format: "job: Error errorcode: errordescription"
Options:
-co | Columns to display (i|o|s|p|r|d) | ||
-j | Job ID | ||
-jt | Filter by job type (Backup|Restore) | ||
-js | Filter by job status (Running|Suspended|Waiting|Pending) | ||
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name | ||
-b | Backup set name | ||
-s | Subclient name | ||
-h | Displays help |
Whenever you run qlist job with no options specified (to display all the active jobs), a "curtailed" (partial) user-defined description is displayed for each job for which a description was provided. Similarly, a curtailed description is displayed under the same scenario for a specific job if you run the qlist job -j jobid command or a variation of this command that includes option -co with value d (description) and other valid options/values (e.g., qlist job -j jobid -co iod). However, to display the entire user-defined description for one specific job, you must run the correct form of the following command: qlist job -j jobid -co d. |
Column Codes:
Column codes are used to filter the columns that are displayed by the command. Only those columns that are set using the "-co" option are displayed.
i | Job ID |
o | Job type |
s | Job status |
p | Job phase |
r | Failure/pending reason |
By default, i, o, s, p columns are enabled.
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
This command displays the backup job history under a specified subclient.
Usage:
qlist jobhistory -c client -a iDataAgent -i instance -b backupset -s subclient [-js jobstatus] [-st start time] [-et End time] [-h]
Description:
This command displays the backup job history under the specified subclient with the given job status and the time range specified. When more than one backup job is found, the jobs are listed one per line and displayed on the console. When no job history is found, a message is displayed on the console in the following format: "No job history found"
In case of an error, an error code and the error description are displayed in the following format: "jobhistory: Error errorcode: errordescription"
Options:
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name | ||
-b | Backup set name | ||
-s | Subclient name | ||
-js | Completed|Failed|Killed | ||
-st | Start time | ||
-et | End time | ||
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List the backup jobhistory under a subclient.
E:\commandline>qlist jobhistory -c client1 -a
Q_WIN2K_FS -b bs1 -s SC_1
JOBID STATUS
SUBCLIENT STORAGEPOLICY
101 Completed SC_1
SP_12
102 Completed SC_1 SP_12
This command displays summary of the jobs in the CommServe.
Usage:
qlist jobsummary [-c client] [-a iDataAgent] [-i instance] [-b backupset] [-s subclient] [-h]
Description:
This command displays the summary of all the jobs currently active in the CommServe. Jobs are classified into Running, Suspended, Pending, Queued and Waiting states. You can filter the jobs by limiting them to a client, agent, instance, backup set or subclient.
In case of an error, an error code and the error description are displayed in the following format: "media: Error errorcode: errordescription"
Options:
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name | ||
-b | Backup set name | ||
-s | Subclient name | ||
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Display job summary of all jobs of client cl1.
E:\commandline>qlist jobsummary -c cl1
RUNNING PENDING WAITING QUEUED SUSPENDED TOTAL
1 10 0
4 1
16
This command displays the summary of the last backup job under the specified subclient.
Usage:
qlist lastjob -c client -a iDataAgent -i instance -b backupset -s subclient[-js Completed|Failed|Killed] [-h]
Description:
This command displays the summary of the last backup job under the specified subclient with a given job status. When more than one job is found, the jobs are listed one per line and displayed on the console. When no job history is found, a message is displayed on the console in the following format: "No job found".
In case of an error, an error code and the error description are displayed in the following format: "lastjob: Error errorcode: errordescription"
Options:
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name | ||
-b | Backup set name | ||
-s | Subclient name | ||
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Display the last backup job under a subclient. START TIME
E:\commandline>qlist lastjob -c client1
JOBID
-----
101
STATUS
------
Completed
STORAGEPOLICY
-------------
Sp_12
APPTYPE
-------
Filesystem
BACKUPSET
---------
defaultBackupSet
SUBCLIENT
---------
SC_1
INSTANCE
--------
<default>
----------
01/01/2004 01:20:55
This command lists all of the media libraries under the specified MediaAgent.
Usage:
qlist library [-m mediaagent] [-h]
Description:
This command lists the names of all types of media libraries configured in the specified MediaAgent. If a MediaAgent is not specified, all libraries are listed. When more than one library is found, the libraries are listed one media library per line, and are displayed in the console. No message is displayed when media libraries are not found.
In case of an error, an error code and the error description are displayed in the following format: "library: Error errorcode: errordescription"
Options:
-m | MediaAgent name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the media libraries configured in the MediaAgent client1.
E:\commandline>qlist library -m client1
maglib1
This command lists all of the locations (both transit and stationary) configured in the CommCell.
Usage:
qlist location [-h]
Description:
This command lists all stationary and transit locations configured in the CommCell. Location name and type (stationary/transit) are displayed for each location. When more than one location is found, the locations are listed one location per line, and are displayed in the console. No message is displayed in the console when no locations are configured.
In case of an error, an error code and the error description are displayed in the following format: "location: Error errorcode: errordescription"
Options:
-h Displays help
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the locations.
E:\commandline>qlist location
NAME TYPE
stat1 Stationary
trans1 Transit
This command lists all of the master drive pools under the specified MediaAgent and media library.
Usage:
qlist masterdrivepool -m mediaagent -l library [-h]
Description:
This command lists the names of all the master drive pools available under the specified MediaAgent and library. When more than one master drive pool is found, the drive pools are listed one master drive pool per line, and are displayed in the console. No message is displayed in the console when master drive pools are not found.
In case of an error, an error code and the error description are displayed in the following format: "masterdrivepool: Error errorcode: errordescription"
Options:
-m | MediaAgent name |
-l | Media library name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the master drive pools available in the MediaAgent client1 and
media library maglib1.
E:\commandline>qlist masterdrivepool -m client1 -l maglib1
MasterPool_Magnetic_33
This command displays media used by a given job/library/location/storage policy.
Usage:
qlist media -j jobid [-sp storagepolicy [-spc copy]] -l library [-srp scratchpool] -loc exportlocation -sp storagepolicy [-spc copy][-h]
Description:
This command displays information about all the media on the basis of a given job ID, storage policy, storage policy copy, and library. Barcode, location, library, storage policy name, and copy name are displayed for each media. Since barcodes are not applicable for magnetic libraries, CV_MAGNETIC is displayed if the job uses a magnetic library. If more than one media is used by a job, the media are listed one per line. A message "No media have been allocated for this job" will be displayed in cases where there is no media used by the job.
In case of an error, an error code and the error description are displayed in the following format: "media: Error errorcode: errordescription"
Options:
-j | Job ID |
-sp | Storage policy name |
-spc | Storage policy copy name |
-l | Library name |
-srp | Scratch pool name |
-loc | exportlocation |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
This command lists all of the MediaAgents configured in the CommCell.
Usage:
qlist mediaagent [-h]
Description:
This command lists the names of all the MediaAgents configured in the CommCell. When more than one MediaAgent is found, the MediaAgents are listed one MediaAgent per line, and are displayed in the console. No message is displayed in the console when MediaAgents are not found.
In case of an error, an error code and the error description are displayed in the following format: "mediaagent: Error errorcode: errordescription"
Options::
-h Displays help
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the MediaAgents configured in the CommCell.
E:\commandline>qlist mediaagent
client1
This command lists media required to restore data associated with a client, iDataAgent, backup set, or subclient.
Usage:
qlist quickmedia [-co e|b|c|l|t|p|o|s|r] -c client [-a iDataAgent] [-i instance ] [-b backupset] [-s subclient] [-bf browsefrom] [-bt browseto] [-syp syncprecedence] [-sep selprecedence] [-h]
Description:
This command lists all the media and related information, based on the input provided. The following information is displayed for each media:
1. export location
2. barcode
3. container name
4. library name
5. media type
6. storage policy name
7. copy name
8. subclient name
9. copy precedence number
If more than one media is listed, they are displayed one per line. The message "No media information to display" will be displayed in cases where there is no media.
In case of an error, an error code and the error description are displayed in the following format: "quickmedia: Error errorcode: errordescription"
Options:
-co | Columns to display (e|b|c|l|t|p|o|s|r) | ||
-c | Client computer name | ||
-a | Agent type installed on the client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name | ||
-b | Backup set name | ||
-s | Subclient name | ||
-bf | Browse From | ||
-bt | Browse To | ||
-syp | Synchronous copy precedence | ||
-sep | Selective copy precedence | ||
-h | Displays help |
If -c (client computer name) is the only option specified, then all the media used by backups in the last backup cycle (latest backup option) from all application types installed on the client will be displayed. |
Column Codes:
Column codes are used to filter the columns that are displayed by the command. Only those columns that are set using the "-co" option are displayed.
b | Barcode of the media |
c | Container |
l | Library |
p | Storage policy |
o | Copy name |
s | Subclient |
e | Export location |
t | Media type |
r | Copy precedence |
By default, b, c, l, p, o, s columns are enabled.
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List the media on the client battra.
E:\commandline>qlistquickmedia -c battra
BARCODE CONTAINER LIBRARY STORAGEPOLICY COPYNAME SUBCLIENT
------- --------- ------- ------------- ------------------------
T:\ Dummy battra_t battra_t(battra)-DP(2) Primary Cursors
T:\ Dummy battra_t battra_t(battra)-DP(2) Primary default
This command lists all the replication pairs for a replication set for a client.
Usage:
qlist replicationpair [-c client] [-rsn repset] [-h]
Description:
This command lists all the replication pairs for a replication set for a client.
In case of an error, an error code and the error description are displayed in the following format: "replicationpair: Error errorcode: errordescription"
Options:
-c | Client computer name |
-rsn | Repset name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List the replication pairs for repset repset1 in client client1.
E:\commandline>qoperation replicationpair -c client1 -rsn repset1
This command lists all the replication sets for a client.
Usage:
qlist replicationset [-c client] [-h]
Description:
This command lists all the replication sets for a client.
In case of an error, an error code and the error description are displayed in the following format: "replicationset: Error errorcode: errordescription"
Options:
-c | Client computer name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the replication sets for client client1.
E:\commandline>qoperation replicationset -c client1
This command lists weekly and daily schedules for a given day or hour in a week.
Usage:
qlist schedule [-day weekday] [-hour hour] [-h]
Description:
This command lists weekly and daily schedules for a given day or hour in a week. No message is displayed when a schedule is not found. In case of an error, an error code and the error description are displayed in the following format: "schedule: Error errorcode: errordescription"
Options:
-day | Week day (0- Sunday .....6-Saturday) |
-hour | Hour(0-23) |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List the schedule
E:\commandline>qlist schedule
TIME BACKUPJOBS RESTOREJOBS ADMINJOBS
Sun 12:30:45 0
0
4
Mon 12:30:45 0 0 4
Tue 12:30:45 0 0 4
Wed 12:30:45 0 0 4
Thu 12:30:45 0 0 4
Fri 12:30:45 0 0 4
Sat 12:30:45 0 0 4
This command lists the schedule policies configured in the commcell. It can also list schedule policies associated with a client, iDataAgent, instance or subclient.
Usage:
qlist schedulepolicy [-c client] [-a iDataAgent] [-i instance] -backupset] [-s subclient] [-h]
Description:
This command lists the schedule policies configured in the commcell. It can also list schedule policies associated with a client, iDataAgent, instance or subclient. When more than one schedule policy is found, they are listed one schedule policy per line, and are displayed in the console. No message is displayed when schedule policy are not found.
In case of an error, an error code and the error description are displayed in the following format: "schedulepolicy: Error errorcode: errordescription"
Options:
-c | Client computer name | ||
-a | Agent type installed on the client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name | ||
-b | Backup set name | ||
-s | Subclient name | ||
-hh | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List the schedule policy.
E:\commandline>qlist schedulepolicy
Test11
Test2
Test3
This command lists all the scratchpools under a specified library.
Usage:
qlist scratchpool -l library [-m mediaagent] [-h]
Description:
This command lists the names of all the scratchpools configured in the specified library. The MediaAgent name is optional. When more than one scratchpool is found, they are listed one scratchpools per line, and are displayed in the console. No message is displayed when scratchpools are not found.
In case of an error, an error code and the error description are displayed in the following format: "scratchpool: Error errorcode: errordescription"
Options:
-l | Library name |
-m | MediaAgent Name |
-h | Displays help |
-h Displays help
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the scratchpools configured in library library1.
E:\commandline>qlist scratchpool -l library1
Scratchpool_1
This command lists all storage policies (of all types) available in the CommCell.
Usage:
qlist sp [-h]
Description:
This command lists the names of all the storage policies available in the CommCell. All types of storage policies (i.e., "iDataAgent Backup" or "Express Recovery Backup" or "Archiver") are listed by this command. When more than one storage policy is found, the policies are listed one Storage Policy per line, and are displayed in the console. No message is displayed in the console when storage policies are not found.
In case of an error, an error code and the error description are displayed in the following format: "sp: Error errorcode: errordescription"
Options:
-h Displays help
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the storage policies configured in the CommCell.
E:\commandline>qlist sp
policy1
This command lists all of the copies (primary and secondary), under the given storage policy.
Usage:
qlist spcopy -sp storagepolicy [-h]
Description:
This command lists the names of all the storage policy copies under the given storage policy. Both primary and secondary copies are returned. When more than one storage policy copy is found, the copies are listed one copy per line, and are displayed in the console. No message is displayed in the console when storage policy copies are not found.
In case of an error, an error code and the error description are displayed in the following format: "spcopy: Error errorcode: errordescription"
Options:
-sp | Storage policy name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the storage policy copies in the storage policy policy1.
E:\commandline>qlist spcopy -p policy1
Primary
copy1
This command lists all of the subclients under the given instance or backup set.
Usage:
qlist subclient -c client -a dataagenttype -i instance -b backupset [-h]
Description:
This command lists the names of all the subclients in the specified client, agent, backup set or instance. Backup set names and instance names should be specified for agents that place subclients under the backup set an/or instance level. When more than one subclient is found, the subclients are listed one subclient per line, and are displayed in the console. No message is displayed in the console when subclients are not found.
In case of an error, an error code and the error description are displayed in the following format: "subclient: Error errorcode: errordescription"
Options:
-c | lient computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name, required for certain agents | ||
-b | Backup set name, required for certain agents | ||
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the Subclients in the client client1, Agent Q_WIN_FS and
backup set bs1.
E:\commandline>qlist subclient -c client1 -a Q_WIN_2KFS
-b bs1
default
sc1
This command lists all the user groups configured in the CommCell.
Usage:
qlist usergroup [-h]
Description:
This command lists all of the user groups configured in the CommCell. Whenever more than one user group is found, the name of each user group is listed in its own line and displayed on the console. No message is displayed on the console whenever user groups are not found.
In case of an error, an error code and the error description are displayed in the following format: "usergroup: Error errorcode: errordescription"
Options:
-h Displays help
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all of the user groups configured in the CommCell.
This command lists all of the VaultTracker policies configured in the CommCell.
Usage:
qlist vtp [-h]
Description:
This command lists the names of all the VaultTracker policies configured. When more than one policy is found, the policies are listed one policy per line, and are displayed in the console. No message is displayed in the console when VaultTracker policies are not found.
In case of an error, an error code and the error description are displayed in the following format: "vtp: Error errorcode: errordescription"
Options:
-h Displays help
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
List all the VaultTracker policies configured.
E:\commandline>qlist vtp
vtp1
This command enables you to log on to the given CommServe by supplying a username and password of a CommCell user with sufficient permissions to perform the desired operations.
External Active Directory users cannot log in to the CommServe from the command line. |
Usage:
qlogin [-cs CommCell] [-u username] [-p password] [-af ArgumentFilepath][-h]
Description:
qlogin allows a user to log on to a CommServe. By default, if a CommServe name is not specified, this command logs on to the CommServe of the current host. The user name and password can be specified at the command line (specifying the password as an argument is useful only in the case of scripting because an encrypted password is required); or, the user is prompted to enter the user name and password. Encrypted user login information is written into a .qsessions file (qsessions.osuser on Windows and qsessions.osuserId on Unix) in the install directory, which can be used by other commands until a qlogout command is executed. Upon successful completion, qlogin does not display any message in the console.
For more information on cli scripting, see Script Considerations or Writing and Editing Scripts sections in this document.
In case of an error, an error code and the error description are displayed in the following format: "qlogin: Error errorcode: errordescription"
Options:
Command Line
-cs | CommServe name |
-u | User name (prompted if not specified) |
-p | Password (prompted if not specified) |
-af | Input file containing the arguments |
-h | Displays help |
Argument File
server | CommServe host name |
user | User name (prompted if not specified) |
password | Password (prompted if not specified) |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Examples:
This command enables logging off a user from a connected CommServe.
Usage:
qlogout [-h]
Description:
qlogout allows a user to log off the specified CommServe and terminates the secure connection with the CommServe established by qlogin. By default, if a CommServe name is not specified, this command logs out from the CommServe of the current host. Upon successful completion, qlogout displays user logged out successfully. The login information is removed from the list in the .qsessions file upon successful logout from the specific CommServe. The .qsessions file is deleted upon successful logout from all the CommServes.
In case of an error, an error code and the error description are displayed in the following format: "qlogout: Error errorcode: errordescription"
Options:
-cs | CommServe host name |
-all | Logout all users |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Examples:
This command performs various media related operations.
Usage:
qmedia command <command-options-arguments> [-h]
Supported Commands:
This command allows you to export a specified media.
Usage:
qmedia allowexport -b barcode [-h]
Description:
This command allows you to export the specified media that is set to "prevent export".
In case of an error, an error code and the error description are displayed in the following format: "allowexport: Error errorcode: errordescription"
Options:
-b | Media barcode |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Reset flag to allow for exporting the contents of the media with 100101WW barcode.
E:\commandline>qmedia allowexport -b 100101WW
This command deletes the contents of a given media and moves it into the specified scratchpool.
Usage:
qmedia deletecontents -b barcode -srp scratchpool [-h]
Description:
This command deletes the contents of the given media and moves it into the specified scratchpool.
In case of an error, an error code and the error description are displayed in the following format: "deletecontents: Error errorcode: errordescription"
Options:
-b | Barcode |
-srp | Scratchpool |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Delete the contents of the media with 100101WW barcode and move
to scratchpool Scratchpool_1.
E:\commandline>qmedia deletecontents -b 100101WW -srp
Scratchpool_1
This command exports specified media into a given export location.
Usage:
qmedia export -b barcode(s) -el exportlocation [-af argsfile] [-h]
Description:
This command exports specified media into a given export location.
In case of an error, an error code and the error description are displayed in the following format: "export: Error errorcode: errordescription"
Options:
Command Line
-b | List of barcodes separated by a comma (,) |
-el | Export Location name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Export multiple specified media with barcodes 100401WW and 100402WW into a given export
location Exp_Loc
E:\commandline>qmedia export -b 100401WW,100402WW
-el Exp_Loc
This command loads media into a given drive.
Usage:
qmedia load -b barcode -s mediaside -dr drivename -m mediaagent [-h]
Description:
This command loads the given media and the side specified onto the drive name given under the specified MediaAgent.
In case of an error, an error code and the error description are displayed in the following format: "load: Error errorcode: errordescription"
Options:
-b | Barcode |
-s | Media side name |
-dr | Drive name |
-m | MediaAgent name |
-hh | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Loads a media and the side specified onto the given drive under the given
MediaAgent.
E:\commandline>qmedia load -b 100101WW -s A -dr
Drive_1 -m MAgent1
This command marks specified media as appendable.
Usage:
qmedia markappend -b barcode(s) [-af argsfile] [-h]
Description::
This command marks specified media as appendable.
In case of an error, an error code and the error description are displayed in the following format: "markappend: Error errorcode: errordescription"
Options:
Command Line
-b | List of barcodes separated by a comma (,) |
-af | Input file containing arguments |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Mark specified media as appendable.
E:\commandline>qmedia markappend -b 100101WW
This command marks specified media as bad.
Usage:
qmedia markbad -b barcode(s) [-af argsfile] [-h]
Description:
This command marks specified media as bad.
In case of an error, an error code and the error description are displayed in the following format: "markbad: Error errorcode: errordescription"
Options:
-b | List of barcodes separated by a comma(,) |
-af | Input file containing arguments |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Mark specified media as bad.
E:\commandline>qmedia markbad -b 100101WW
This command marks specified media as full.
Usage:
qmedia markfull -b barcode(s) [-af argsfile] [-h]
Description:
This command marks specified media as full.
In case of an error, an error code and the error description are displayed in the following format: "markfull: Error errorcode: errordescription"
Options:
Command Line
-b | List of barcodes separated by a comma (,) |
-af | Input file containing arguments |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Mark specified media as full.
E:\commandline>qmedia markfull -b 100101WW
This command prevents the media from being exported.
Usage:
qmedia preventexport -b barcode [-et expirytime] [-h]
Description:
This command prevents the media from being exported.
In case of an error, an error code and the error description are displayed in the following format: "preventexport: Error errorcode: errordescription"
Options:
-b | Barcode |
-et | Expiration date and time in format "mm/dd/yyyy
hh:mm[:ss]" (default: Infinite) |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Prevent the given media from being exported.
E:\commandline>qmedia preventexport -b 100101WW -et
12/31/2007 00:00
This command verifies the media.
Usage:
qmedia verify -b barcode [-h]
Description:
This command verifies the specified media.
In case of an error, an error code and the error description are displayed in the following format: "verify: Error errorcode: errordescription"
Options:
Command Line
-b | Barcode |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Verifies the given media.
E:\commandline>qmedia verify -b 100101WW
This command modifies an entity based on the specified command.
Usage:
qmodify command <command-options-arguments> [-h]
Supported Commands:
This command adds or removes a client to or from a clientgroup.
Usage:
qmodify clientgroup -o add|delete -c client -cg clientgroup [-h]
Description:
This command allows to add or remove a client to or from a client group. Upon successful completion, qmodify clientgroup displays the message "qmodify clientgroup add/remove operation successful" on the console. In case of an error, an error code and the error description are displayed in the following format: "clientgroup: Error errorcode: errordescription"
Options:
-o | [string] Operation to be performed on the client group (add|delete) |
-c | [string] Client computer name |
-cg | [string] Client group name |
-af | [string] Input file containing arguments |
-h | Displays help |
Argument File
client | [string] Client computer name |
clientgroup | [string] Client Group name |
operation | [string] Operation to be performed on the Client Group (add|delete) |
description | [list<string>|multiline] Description provided by the user |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Add a client "client1" to clientgroup "clientgroup1".
E:\commandline>qmodify clientgroup -c client1 -cg clientgroup1 -o add
This command changes the password of a user for the CommCell Console.
Usage:
qmodify galaxypassword -u username [-p password] [-h]
Description:
This command allows you to change the password of a given user. The user whose password is to be changed is provided as a command line option. The user is prompted for the current password (for security purposes) and then prompted for the new password. This command also supports the option to provide the password at the command line for scripting purposes, in which case it modifies the password silently without any user intervention.
Upon successful completion, qmodify galaxypassword displays the message "Changed user password successfully" on the console. In case of an error, an error code and the error description are displayed in the following format: "galaxypassword: Error errorcode: errordescription"
Options:
-u | User name |
-p | Password |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
This command modifies globalfilter(s) for NetWare, UNIX, or Windows.
Usage:
qmodify globalfilter -o append|overwrite -t subclient type -ff filter file [-h]
Description:
This command allows you to modify globalfilter(s).
Upon successful completion, qmodify globalfilter displays the message "Updated global filters successfully" on the console. In case of an error, an error code and the error description are displayed in the following format: "globalfilter: Error errorcode: errordescription"
Options:
Command Line
-o | Operation to be performed on the globalfilter |
-t | Windows|UNIX|Netware |
-ff | Reads files, folders, and patterns to be excluded from the file. |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Append the files/directories listed in the file test.txt to the
Windows globalfilters
E:\commandline>qmodify globalfilter -o append -t
Windows -ff test.txt
This command modifies command line and log storage policies of an Oracle instance.
Usage:
qmodify instance -c client -a dataagenttype -i instance -csp cmdlinestoragepolicy -lsp logstoragepolicy [-af ArgumentFilepath] [-h]
Description:
This command allows you to modify an Oracle instance by changing its command line and log storage policies.
Upon successful completion, qmodify instance displays the message "Modified instance successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "instance: Error errorcode: errordescription"
Options:
Command Line
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name, required for certain agents | ||
-csp | Name of the command line storage policy | ||
-lsp | Name of the log storage policy | ||
-af | Input file containing arguments | ||
-h | Displays help |
Argument File
client | Client computer name | ||
dataagent | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
instance | Instance name to be modified. | ||
cmdlinesp | Command line storage policy name | ||
logsp | Log storage policy name |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Modify an instance with the name instance1 under client client1
and Agent Q_ORACLE by changing its command line storage policy to logsp2.
E:\commandline>qmodify instance -c client1 -a Q_ORACLE
-i instance1 -csp logsp2
This command allows for password administration.
Usage:
qmodify password -c client -a dataagenttype -i instance -b backupset -s subclient [-h]
Description:
This command interactively allows password administration of File System, Oracle, SQL and Exchange Agents.
In case of an error, an error code and the error description are displayed in the following format: "password: Error errorcode: errordescription"
Options:
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name, required for certain agents | ||
-b | Backup set name, required for certain agents | ||
-s | Name of the subclient | ||
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
This command associates or dissociates a given schedule from a client, iDataAgent, instance, backup set or subclient. modifies the schedule policy.
Usage:
qmodify schedulepolicy -o add|remove -scp schedulepolicy [-c client] [-a iDataAgent] [-i instance] [-b backupset] [-s subclient] [-h]
Description:
This command associates or dissociates a given schedule from a client, iDataAgent, instance, backup set or subclient. modifies the schedule policy. In case of an error, an error code and the error description are displayed in the following format: "schedulepolicy: Error errorcode: errordescription"
Options:
-o | Operation to be performed on the clientgroup | ||
-scp | SchedulePolicy name | ||
-c | Client computer name | ||
-a | Agent type installed on the client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name | ||
-b | Backup set name | ||
-s | Subclient name | ||
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Associate a schedule policy scp1 with cl1.
E:\commandline>qmodify schedulepolicy -o add -scp1 -c cl1
Associate the entity with the Schedule Policy successfully.
Dissociate a schedule policy scp1 with cl1.
E:\commandline>qmodify schedulepolicy -o remove -scp1 -c cl1
Dissociate the entity with the Schedule Policy successfully.
This command modifies the content/storage policy/description of a given subclient.
To use this command, you must ensure that the QCMD_SUPPORT_MODIFY_SUBCLIENT registry key is set to 1. |
Usage:
qmodify subclient -c client -a dataagenttype -i instance -b backupset -s subclient -sp storagepolicy -f content [-ow overwrite] [-drs datareaders] [-wc y|n] [-af ArgumentFilepath] [-h]
Description:
This command modifies a subclient by changing the assigned storage policy, content, or user-defined description. New content is added to the existing content.
When using the -f content option, you must verify that the subclient content is in the correct format path. This command does not enforce the content format, and any path (including an incorrect path) can be specified. This may result in incorrect content being assigned to a file system subclient and a "pending" subclient scan. |
Upon successful completion, qmodify subclient displays the message "Modified subclient successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "subclient: Error errorcode: errordescription"
Options:
Command Line
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name, required for a few agents | ||
-b | Backup set name, required for a few agents | ||
-s | Name of the subclient to be modified | ||
-sp | Name of the storage policy to be associated with the subclient | ||
-f | File/Directory Path to be added to the existing content | ||
-wc | Do file/directory paths have wildcards (y|n) | ||
-ow | If the contents needs to be overwritten (0:1) | ||
-drs | Number of data readers | ||
-af | Input file containing arguments | ||
-h | Displays help |
Argument File
client | Client computer name | ||
dataagent | Agent type installed on source client computer
(see Argument Values - Agent Types)
|
||
instance | Instance name to which the subclient belongs, required for certain agents | ||
backupset | Backup set name to which the subclient belongs, required for certain agents | ||
subclient | Name of the subclient to be modified | ||
sp | New storage policy for the subclient | ||
content | List of files/directories to be added to the existing content | ||
datareaders | Number of data readers | ||
wildcard | Do file/directory paths have wildcards (y|n) | ||
description | User-defined description |
The content option is supported only for file system agents. However, changing the storage policy association of a subclient is supported for all agents. |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Modify a subclient with name sc1 under client client1 and
Agent Q_WIN2K_FS and backup set bs1 by changing its storage policy
to sp2.
E:\commandline>qmodify subclient -c client1 -a Q_WIN2K_FS
-b bs1 -s sc1 -sp sp2
This command performs an operation based on the specified command.
Usage:
qoperation command <command-options-arguments> [-h]
Supported Commands:
This command adds an existing commcell user to an existing commcell user group.
Usage:
qoperation adduser -u user -ug group [-h]
Description:
This command adds an existing commcell user to an existing commcell user group.
Upon successful completion, qoperation adduser displays the message "Added user to the group successfully" in the console. In case of an error, an error code and the error description are displayed in the following format: "adduser: Error errorcode: errordescription"
Options:
-u | User name |
-ug | User group name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Add a user user1 to group group1.
E:\commandline>qoperation adduser -u user1 -ug group1
This command performs a data aging operation, prunes multiple jobs using a text file, and prunes a single job using the command line
Usage: qoperation agedata -delbyjobid -j jobid -sp storagepolicy -spc copy -ft [-cs CommCell][-af ArgumentFilepath][-h]
Description: This command starts a data aging operation when the -delbyjobid option is not specified. The Job ID is returned and displayed in the CommCell Console if the data aging job was successfully initiated by the CommServe. When the -delbyjobid option is specified, the list of jobs or specified job is pruned based on the storage policy, storage policy copy and the file type. The CommServe name is optional. When the CommServe name is not specified, the default CommCell value of the current CommServe is accepted.
The list of jobs can be provided in a text file. For example:
[jobid]
1123
1124
1156
Using file type (-ft) option Q_LOG will prune only log files for a specified job; using file type option Q_DATA will prune only data files for a specified job; and using file type option Q_DATA_LOG will prune both data files and log files for the specified job.
In case of an error, an error code and the error description are displayed in the following format: "agedata: Error errorcode: errordescription"
Options:
Command Line
-delbyjobid | Flag to delete jobs by job ID |
-j | Job ID |
-sp | Name of the storage policy |
-spc | Name of the storage policy copy |
-ft | Q_LOG|Q_DATA|Q_DATA_LOG |
-cs | CommCell name is also CommServe Client name |
-af | Reads arguments from a file |
-h | Displays help |
Argument File
jobid | Job ID |
sp | Name of the storage policy |
spcopy | Name of the storage policy copy |
filetype | Q_LOG|Q_DATA|Q_DATA_LOG |
server | CommServe host name |
Diagnostics: Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing
argument.
2 - Any other failure.
Example:
Start Data Aging.
E:\commandline>qoperation agedata
175
Start Data Aging for job-based pruning.
E:\commandline>qoperation agedata -delbyjobid -j 23453
-sp StoragePolicy1 -spc Primary -ft Q_LOG
This command will prune Job 23453 for file type "log" from the primary copy of
StoragePolicy1.
This command performs an automatic update operation (including automatic upgrade) on the specified client from the CommServe.
This is not to be confused with the InstallUpdates command, which is used to manually install the updates from the command line in a non-interactive mode from the client computer. For more information, see Silent Updates.
Usage:
qoperation automaticupdate -c client [-h] -reboot -upgrade
Description:
This command starts an automatic update operation on a specified client, MediaAgent, or CommServe. The Job ID is returned and displayed in the console if the update job was successfully initiated by the CommServe. Automatic upgrade are only applicable to specific client or MediaAgent.
In case of an error, an error code and the error description are displayed in the following format: "automaticupdate: Error errorcode: errordescription"
Options:
-c | Client name |
-h | Displays help |
-reboot | Reboot specified client (if required) after update or upgrade has completed. |
-upgrade | Automatically upgrade specified client. |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Start update on client client1.
E:\commandline>qoperation automaticupdate -c client1
175
Start update on client client2. If necessary, reboot the system after
update is installed.
E:\commandline>qoperation automaticupdate -c client2
-reboot
176
Start upgrade on client client3.
E:\commandline>qoperation automaticupdate -c client3
-upgrade
177
Start upgrade on client client4. If necessary, reboot the system after
upgrade.
E:\commandline>qoperation automaticupdate -c client4
-upgrade -reboot
178
Reboots are only necessary when updating driver-based platforms. If reboot command is not included, but required, an error will occur with the operation. |
This command performs an auxiliary copy operation on the specified storage policy and secondary copy.
Usage:
qoperation auxcopy -sp storagepolicy [-spc copy] [-af ArgumentFilepath] [-h]
Description:
This command starts an auxiliary copy job on the specified storage policy and secondary copy. The secondary copy must be created before running auxcopy. The Job ID is returned and displayed in the console if the auxiliary copy job was successfully initiated by the CommServe.
In case of an error, an error code and the error description are displayed in the following format: "auxcopy: Error errorcode: errordescription"
Options:
Command Line
-sp | Storage policy name |
-spc | Secondary copy name |
-af | Reads arguments from a file |
-h | Displays help |
Argument File
sp | Storage policy name |
spcopy | Storage policy copy name |
priority | Job priority |
exportlocation | Export Location |
transitlocation | Transit Location |
usevms | Use VMS Flag (0/1) |
mediastatus | Media status |
startnewmedia | Start new media flag (0/1) |
alert | Alert name |
startsuspended | Start job in suspended state (0/1) |
retryno | Number of times to retry the job |
retrytime | Number of hours to retry the job |
jobdescription | User-defined comments regarding the job |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Start auxcopy for storage policy policy1 and copy copy1.
E:\commandline>qoperation auxcopy -sp policy1 -spc copy1
175
This command performs an immediate backup operation (full, incremental, or differential) on a given subclient.
Usage:
qoperation backup [-cs commserve] -c client -a dataagenttype -i instance -b backupset -s subclient -t Q_FULL|Q_INC|Q_DIFF|Q_SYNTH [-scid subclientId][-af argsfile][-h]
Description:
This command starts an immediate backup operation on the specified subclient. You can perform the backup operation by specifying the subclient ID or the subclient name. When providing the subclient name, you also need to provide the client computer name, agent type, instance name and backup set name to identify the subclient. The instance name and backup set name are not applicable to some agents. The type of backup suggests whether it is a full, incremental, differential, or synthetic backup. The backup command can also accept the arguments from a file using the -af option. This file can accept all the arguments supported through the command line, and it also accepts advanced backup options.
The argument file also supports a data path option. The data path option accepts a list of MediaAgents, libraries, drive pools, and scratch pools. The drive pool and scratch pool should be provided with the name of the library to which the pools belong followed by a slash (/) and then the respective pool name. The data path options are optional and can be used in the argument file as needed.
The Job ID is returned and displayed on the console if the backup job was successfully initiated by the CommServe.
In case of an error, an error code and the error description are displayed in the following format: "backup: Error errorcode: errordescription"
NOTES
Options:
Command Line
-cs | CommServe name | ||
-c | Client computer name | ||
-a | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name, required for a few agents | ||
-b | Backup set name, required for a few agents | ||
-s | Name of the subclient to be backed up | ||
-scid | ID of the subclient to be backed up | ||
-t | Type of backup | ||
-af | Input file containing the arguments | ||
-h | Displays help |
Argument File (Options used by all iDataAgents except Oracle)
client | Client computer name | ||
dataagent | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
instance | Instance name, required for a few agents | ||
backupset | Backup set name, required for a few agents | ||
subclient | Name of the subclient to be backed up | ||
backuptype | Type of backup (See Supported Backup Types) | ||
options | Backup options (see Argument Values - Backup Options) | ||
priority | Job priority | ||
exportlocation | Export location | ||
transitlocation | Transit location | ||
usevms | Use VMS | ||
mediastatus | Media status | ||
inclevel | Incremental level | ||
cumulative | Cumulative option for QR agents | ||
qrexechostid | QRExec host name for QR agents | ||
transportablesnap | Transportable snap option for QR agents | ||
vssimportmap | VSS import Map for QR agents | ||
retryno | Number of times to retry the job | ||
ondemandinputfile | Input file for on-demand backups | ||
alert | alert name | ||
alertid | alert ID (used by save as script) | ||
srctodest | source to destination pairs | ||
retrytime | Number of minutes to retry the job | ||
mediaagent | Name of the MediaAgent | ||
library | Name of the library | ||
drivepool | List of names of drive pools (format: lib/dpool) | ||
scratchpool | List of names of scratch pools (format: lib/spool) | ||
jobdescription | User-defined comments regarding the job | ||
subclientid | ID of the subclient to be backed up |
Options used by the Oracle iDataAgent
bkuparchlogtype | Back up archive logs based on options (see Argument Values - Backup Options) | ||
bkuparchlogolderthan | Number of days | ||
bkuparchlognotolderthan | Number of days | ||
bkuparchlogstarttime | Log Start Time | ||
bkuparchlogendtime | Log End Time | ||
bkuparchlogstartlsn | Start Log Sequence Number | ||
bkuparchlogendlsn | End Log Sequence Number | ||
bkuparchlogstartscn | Start System Change Number | ||
bkuparchlogendscn | End System Change Number | ||
bkuparchloglikeexp | Like expression | ||
bkuparchlogdestination | Destination of the archive logs | ||
backuptype | Type of backup (See Supported Backup Types) | ||
client | Client computer name | ||
dataagent | Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
delarchlogtype | Delete archive logs based on options (see Argument Values - Backup Options) | ||
delarchlogolderthan | Number of days | ||
delarchlognotolderthan | Number of days | ||
delarchlogstarttime | Log Start Time | ||
delarchlogendtime | Log End Time | ||
delarchlogstartlsn | Start Log Sequence Number | ||
delarchlogendlsn | End Log Sequence Number | ||
delarchlogstartscn | Start System Change Number | ||
delarchlogendscn | End System Change Number | ||
delarchloglikeexp | Like expression | ||
delarchlogdestination | Destination of the archive logs | ||
drivepool | List of names of drive pools (format: lib/dpool) | ||
instance | Instance name, required for a few agents | ||
inclevel | Incremental level | ||
jobdescription | User-defined comments regarding the job | ||
subclient | Name of the subclient to be backed up | ||
rmandiskratio | RMAN Disk Ratio | ||
retryno | Number of times to retry the job | ||
retrytime | Number of minutes to retry the job | ||
maxcorruptions | Maximum Corruption Threshold | ||
mediaagent | Name of the MediaAgent | ||
options | Backup options (see Argument Values - Backup Options) | ||
oracledatascript | Oracle data script name for an RMAN backup | ||
oraclelogscript | Oracle log script name for an RMAN backup | ||
priority | Job priority | ||
datastreamcount | Data stream count for an RMAN backup | ||
library | Name of the library | ||
logstreamcount | Log stream count for an RMAN backup | ||
scratchpool | List of names of scratch pools (format: lib/spool) | ||
rmanlogfile | Location and name of RMAN backup output file | ||
subclientid | ID of the subclient to be backed up |
Backup Type | Description |
Q_FULL | Full Backup |
Q_INC | Incremental Backup |
Q_DIFF | Differential Backup (use for DB2 delta backups) |
Q_SYNTH | Synthetic Backup |
Q_PRESELECT | Preselected Backup (used for Exchange DB) |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Start a Full backup on the subclient sc1 under client client1,
agent Q_WIN_FS and backup set bs1.
E:\commandline>qoperation backup -c client1 -a Q_WIN_FS
-b bs1 -s sc1 -t Q_FULL
171
NOTES
Multiple Streams for Oracle Third-Party Command Line Backups - Third-Party command line backups can utilize multiple streams. However, when all streams do not have resources available, the streams which do not have resources will fail. Since each backup stream has a separate job ID in the Job Manager, and the Job Controller window displays a separate job for each process, the streams that have resources will report as successful, while the streams that do not have resources will be placed in a pending state, and will eventually fail if the condition is not corrected. If this problem is encountered, the backup will not be complete; rerun the backup after determining the availability of adequate resources for all the streams. If you cannot determine the availability of resources for all the streams, run the backup with one stream. Keep in mind that single-stream backups will also fail if the required media resource is unavailable.
Oracle 10g - for third-party command line backups utilizing multiple streams, if resources are not available for any stream, it will be placed in a pending state, and eventually in a failed state. Despite that, when another stream for which resources are available has completed, its resources will then be utilized for the stream that was in the pending/failed state, and the job will complete successfully. (Note that under such circumstances, it is necessary to check the RMAN status of the job to determine that it did complete successfully.) Thus, Oracle 10g backup streams will be automatically serialized when lack of resources makes it impossible for them to run in parallel. |
This command captures the client information into a database.
Usage:
qoperation capture -c client -dfn dumpfile [-dbn databasename] [-afn answerfile] [-st starttime] [-et endtime] [-u username] [-p password] [-rp alternate database path][-af argsfile] [-h]
Description:
This command captures information from a single client or multiple clients and stores the information in the form of a database on the CommServe. An answer file is also created which can be edited by an user during the merge operation. This answer file can be created either on the CommServe or on the local client machine. If the database file path is an UNC path, then the command line operation will prompt the user for impersonation details. On successful completion, qoperation capture displays the message Capture Successful in the console.
In case of an error, an error code and the error description are displayed in the following format:
capture: Error errorcode: errordescription
Options:
Command Line
-c | Name of the client to capture |
-dfn | Full path and the dump file name on the CommServe |
-dbn | Name of the database from which you wish to capture data.
(This is useful when you want to capture data from a database other than the current CommServe.) |
-afn | Full path and the answer file name on the local Client |
-st | The start date and time from which data will be captured. The Start date and time must be in Unix time format. |
-et | The end date and time until which data must be captured. The end date and time must be in Unix time format. |
-u | User name, if database location is an UNC path |
-p | Password, if database location is an UNC path |
-rp | Alternative database restore path. This option is useful when migrating clients in the clustered environment. In a cluster, the CommServe binaries are installed on the physical server and the database is located on the shared disk resource. As the capture and merge operations are executed on the physical server that hosts the binaries, the -rp option provides a way to specify the path to the shared disk resource in which the database resides. (if this option is not specified, the command will by default look for the database in the same drive in which the binaries reside and the operation will fail.) |
-af | Reads arguments from a file |
-h | Displays help |
Dependent jobs of any of the jobs within the specified time range (-st and -et) will also be captured, irrespective of whether they fall in the range or not. |
Argument File
clients | [list] List of clients to capture |
dumpfilename | [string] Full path and the dump file name on the CommServe |
databasename | [string] Name of the database from which you wish
to capture data. (This is useful when you want to capture data from a database other than the current CommServe) |
answerfile | [string] Full path and the answer file name on the local Client |
startime | [time] Start date and time from which data will be captured |
endtime | [time] End date and time until which data must be captured |
user | [string] User name, if database location is an UNC path |
password | [string] Password, if database location is an UNC path |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing
argument.
2 - Any other failure.
Example:
Capture a client with the name client1, save the information in a dump
file at c:\capturedb on the CommServe computer, and save the answer file
at C:\afile on the local client.
E:\commandline>qoperation capture -c client1 -dfn c:\capturedb
-dbn db -afn c:\afile
This command generates a report about the client connectivity in html format.
Usage:
checkready [-cs commserver] -c client [-sm summary] [-dt detail] [-h]
Description:
This command generates a report to show if the client is accessible. It allows to check network for client connectivity. Summary report is the default report displayed. You can use the -dt option with this command for a detailed report.
Options:
Command Line
-cs | Commserver host name |
-c | Client computer name |
-sm | Displays summary of check readiness |
-dt | Displays detailed report on check readiness |
-h | Displays help |
Example:
Checks if the client is accessible and displays a summary report in html
format.
E:\commandline>qoperation checkready -c shr90_2
-sm>"E:\detail.html"
Checks if the client is accessible and displays a detailed report in html
format.
E:\commandline>qoperation checkready -c shr90_2
-dt>"E:\detail.html"
This command confirms the registration of a client on a CommServe before or after a decoupled install. It is assumed that this registration has already been completed using either the qoperation register command or the Register a New Client Wizard in the CommCell Console.
Usage:
qoperation dock -c client_display_name [-roaming y/n][-h]
Description:
This command confirms the registration of a client on a CommServe before or after a decoupled install. It is assumed that this registration has already been completed using either the qoperation register command or the appropriate field in the CommCell Console. This registration should be confirmed before any data management jobs are run.
Options:
Command Line
-c | Client name |
-roaming (y/n) | Designates a client with the Workstation Backup Agent as a roaming client |
-h | Displays help |
Example:
Confirm registration of client ranger on its
associated CommServe.
E:\commandline>qoperation dock -c ranger
Confirmed client registration successfully.
This command performs a disaster recovery backup operation.
Usage:
qoperation drbackup -t Q_FULL|Q_DIFF [-af ArgumentFilepath][-h]
Description:
This command starts a disaster recovery backup operation. The Job ID is returned and displayed in the console if the disaster recovery backup job was successfully initiated by the CommServe.
In case of an error, an error code and the error description are displayed in the following format: "drbackup: Error errorcode: errordescription"
Options:
Command Line
-t | Backup type (Q_FULL|Q_DIFF) |
-af | Reads arguments from a file |
-h | Displays help |
Argument File
backuptype | Backup type (Q_FULL|Q_DIFF) |
alert | Alert name |
retryno | Number of times to retry the job |
retrytime | Number of hours to retry the job |
jobdescription | User-defined comments regarding the job |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Start a full disaster recovery backup.
E:\commandline>qoperation drbackup -t Q_FULL
175
This command executes the Qscripts available on the CommServe computer.
Usage:
qoperation execscript [-cs commserver] -sn scriptname [-si scriptparam] [-p1 password] [-p2 password] [-p3 password] [-file outFile] [-format outputFormat] [-h]
Description:
This command can be used to execute the QScripts available on the CommServe computer using the QCommand, either from the CommServe computer or from a Client computer. The script name and the parameters for executing the script are provided as inputs to the command. In addition, you can provide the file name to which the output will be redirected, and the format in which the output will be displayed. The output could be obtained in three formats: xml|xls|csv (where .xls is tab separated and .csv is comma separated.) By default, the output is displayed in xls format. Refer QScripts to view the list of available qscripts.
When you provide a file name to redirect the output, if there is any failure in creating the file, the script is executed successfully and the user is intimated of the problem and the output is displayed on the CommCell Console in the specified format. If you do not provide any file name, by default, the output is displayed on the CommCell Console.
WARNING: QScripts are recommended for advanced users only. QScripts can be directly executed using qoperation execscript qcommand. Therefore caution is recommended while using them since the operations performed using the QScripts do not have the same safety protocols that are available with other options from the CommCell Console. |
Note the following when using the qoperation execscript qcommand:
Refer to the readme associated with the respective
QScript for information on the available options and parameters that can
be used to execute the specific script. The readmes use the following
naming convention: readme_<scriptname>.txt For example, the readme associated with GetSubclients.sql script is readme_GetSubclients.txt. |
Options:
Command Line
-cs | CommServe Name |
-sn | (String) Name of the script to be executed. |
-si | (String) Inputs to the script.
Note that the -si option must precede every input parameter to the script. |
-p1 | Password to be encrypted using V1 Encryption |
-p2 | Password to be encrypted using V2 Encryption |
-p3 | Password to be encrypted using V3 Encryption |
-file | File where the output is to be written. |
-format | Output Format xml|xls|csv (where xls:tab, csv:comma separated.) |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example 1:
The usage information for the GetSubclients script in the associated readme file (readme_GetSubclients.txt) provides the following information:
qoperation execscript -sn GetSubclients.sql -si client_name
Substituting the client_name with the actual name of the client computer (e.g., purple.company.com) the command would be similar to the following:
E:\commandline>qoperation exescript -sn GetSubclients.sql -si purple.company.com
This command allows you to perform a wildcard search of the client backup.
Usage:
qoperation find -af argsfile [-rf resultfile][-h]
Description:
This command allows you to perform a wildcard search of the client backup. Before you run this command, you must first save a restore job as a script from the CommCell Console. When you do this, the appropriate script file and argument (input) file are generated. Thereafter, you must edit the script file to include the appropriate form of the qoperation find command, which includes the name of the argument file, and you must edit the argument file to include the correct wildcard pattern for searching the client backup along with the other options as appropriate. Once you do this, you can run the command. You can have the output either displayed in the command window or saved to a file. For step-by-step instructions on setting up the qoperation find command, see Set up the qoperation find command.
Options:
Command Line
-af | Reads arguments from an input file |
-rf | Saves results to a file |
-h | Displays help |
Argument File
server | CommServe host name | ||
user | User name (prompted if not specified) | ||
password | Password (prompted if not specified) | ||
sourceclient | List of source client computer names | ||
dataagent | Agent type installed on source client computer
(see Argument Values - Agent Types)
|
||
backupset | Backup set name | ||
destinationclient | Destination client computer name | ||
sourcepaths | File/Directory to be restored (using wildcard characters) | ||
filterpaths | Filter paths | ||
level | Number of source path levels to strip or preserve. Use QR_STRIP_LEVEL option to to strip paths (see Argument Values - Restore Options). Use QR_PRESERVE_LEVEL option to preserve paths | ||
copyprecedence | Copy precedence | ||
streamcount | Stream count | ||
priority | Job priority | ||
backuplevel | Backup level | ||
jobstatus | Job status | ||
useageddata | Use aged data flag | ||
devfileasreg | Treat device files as Regular | ||
mapfile | Map file name | ||
nomapdata | No map data flag | ||
suffix | Rename restored file | ||
startsuspended | Starts the job in suspended state | ||
precmd | PreRestore command | ||
postcmd | PostRestore command | ||
retryno | Number of times to retry the job | ||
retrytime | Number of hours to retry the job | ||
destinationpath | Destination client computer name, for cross-client
restores (Optional) By default, data is restored to the source client computer |
||
options | Restore options (see Argument Values - Restore Options) |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Search client backup using script file find03.bat
and write the results to output file out_find03.bat.
E:\commandline>qoperation find -af C:\find03.bat -rf
C:\out_find03.txt
This command allows you to control (kill/suspend/resume/changepriority) of a single job or multiple jobs.
Usage:
qoperation jobcontrol -o kill|suspend|resume|changepriority|setpercentcomplete[-j jobid] - all [-m mediaagent] [-c client] [-a dataagenttype] [-i instance] [-b backupset] [-s subclient] [-p priority] [-tfx total files to transfer] [-fx files transferd [-ifx files transferd since last update] [-tbx total bytes to transfer][-h]
Description:
This command allows you to kill, resume, suspend, change or set percentage complete of a given job(s). To operate on a single job, you need to specify the Job ID. By specifying the client/MediaAgent name, the operation can be applied to more than one job (e.g., on all jobs running on the specified client). To further filter the jobs, you can specify additional levels such as agent, instance, backup set and/or subclient. The -all option can be used to suspend/resume all the jobs.
If the operation is successful, no message is displayed in the console. In case of an error, an error code and the error description are displayed in the following format: "jobcontrol: Error errorcode: errordescription"
Options:
-o | Operation to be performed on the job (kill, suspend, resume, changepriority or setpercentcomplete) | ||
-j | Job ID | ||
-all | All jobs | ||
-m | MediaAgent name | ||
-c | Client computer name | ||
-a | iDataAgent type installed on client computer (see Argument Values - Agent Types)
|
||
-i | Instance name | ||
-b | Backup set name | ||
-s | Subclient name | ||
-p | Job priority | ||
-tfx | Total files to transfer | ||
-fx | Files transferd | ||
-ifx | Files transferd since last update | ||
-tbx | Total bytes to transfer | ||
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Examples:
This command retains/does not retain a given job.
Usage:
qoperation jobretention -j jobid -sp storagepolicy -spc copy -rtn true|false [-rd infinite or mm/dd/yyyy hh:mm:ss or yyyy/mm/dd hh:mm:ss]
Description:
This command allows you to retain or not retain a given job. If you do not retain a job, its data becomes eligible for Data Aging. You can specify how long to retain a job. If you retain a job and specify how long to retain it, its data will become eligible for Data Aging once the specified time has expired. However, if you retain a job and do not specify how long to retain it, the data for the job will theoretically be retained to infinity and will therefore never become eligible for Data Aging. Along with the job ID, you must specify the storage policy and copy names.
In case of an error, an error code and the error description are displayed in the following format: "jobretention: Error errorcode: errordescription"
Options:
-j | Job ID |
-sp | Storage policy name |
-spc | Storage policy copy name |
-rtn | Job to be retained (true) or not (false) |
-rd | Date until which job is to be retained (-rd infinite or mm/dd/yyyy hh:mm:ss or yyyy/mm/dd hh:mm:ss) |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Retain to infinity a job with job ID 175, storage policy sp1 and
storage policy copy copy1.
E:\commandline>qoperation jobretention -j 175 -rtn true
-sp
sp1 -spc copy1
This command allows you to export media from a library.
Usage:
qoperation media -o export -b barcode(s) -l library -el exportlocation -m mediaagent [-v] [-h]
Description:
This command exports a single or multiple media from a library. If there are multiple media, they should be separated by a comma.
In case of an error, an error code and the error description are displayed in the following format: "media: Error errorcode: errordescription"
Options:
-o | Operation to be performed on the media |
-b | Barcode list (separate each barcode with a comma) |
-l | Library name |
-el | Export location name |
-m | MediaAgent name |
-v | Verify OML before export (0/1) |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Export media.
E:\commandline>qoperation media -o export -b 127126 -l
lib1 -el loc1 -m med1 -v 1
This command merges a captured client database into a target CommCell.
Usage:
qoperation merge -dfn dumpfile [-afn answerfile] [-u username] [-p password] [-cl y|n] [-rt y|n] [-rp alternate database path] [-af argsfile] [-h]
Description:
This command merges a given captured database into a target CommCell. The database should reside on the CommServe and the user should supply the database name and the location.
This command also supports an option to read the answer file for the merge configuration. If the database file path is an UNC path, then the command line prompts the user to enter the impersonation details. You can specify whether or not to consume a license during this merge.
Upon successful completion, qoperation merge displays the message "Merge Successful" in the console.
In case of an error, an error code and the error description are displayed in the following format: "merge: Error errorcode: errordescription"
Options:
Command Line
-dfn | Path and Dump file name on the CommServe |
-afn | Answer file name (with the path) on the client that was generated during capture |
-u | User name, if database location is an UNC path |
-p | Password, if database location is an UNC path |
-cl | y or n - This option determines whether a licenses is consumed or not for the merged client. |
-rt | y or n - This option determines whether or not to mark the media as
reusable in the new CommCell.
|
-rp | Alternative database restore path. This option is useful when migrating clients in the clustered environment. In a cluster, the CommServe binaries are installed on the physical server and the database is located on the shared disk resource. As the capture and merge operations are executed on the physical server that hosts the binaries, the -rp option provides a way to specify the path to the shared disk resource in which the database resides. (if this option is not specified, the command will by default look for the database in the same drive in which the binaries reside and the operation will fail.) |
-af | Reads arguments from a file |
-h | Displays help |
Argument File
dumpfilename | [string] Path and Dump file name on the CommServe |
answerfile | [string] Answer file name (with the path) on the client that was generated during capture |
consumelicense | [y|n] This option determines whether a licenses is consumed or not for the merged client. |
reusetapes | [y|n] This option determines
whether or not to mark the media as reusable in the new CommCell.
|
user | [string] User name |
password | [string] Password |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing
argument.
2 - Any other failure.
Example:
Merge using dump file c:\capturedump.dmp on the CommServe,
and read the answer file at C:\test.xml on the local client.
E:\commandline>qoperation merge -dfn c:\capturedump.dmp
-afn c:\test.xml
Usage:
qoperation move -sc sourceclient -a iDataAgent -i instance -dc destinationclient [-af argsfile] [-h]
Description:
This command moves an Oracle instance from one or more clients to a single destination client.
Ensure that the source and destination clients have the same operating system before moving an instance of Oracle. See the qlist client command. |
Upon successful completion, qoperation move displays the message "Move operation successful" in the console. In case of an error, an error code and the error description are displayed in the following format: "move: Error errorcode: errordescription"
Options:
Command Line
-sc | Source client computer name | ||
-a | Agent type installed on source client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name to be moved | ||
-dc | Destination client name | ||
-af | Reads arguments from a file | ||
-h | Displays help |
Argument File
sourceclient | List of source client computer names | ||
dataagent | Agent type installed on source client computer
(see Argument Values - Agent Types)
|
||
instance | Instance name to be moved | ||
destinationclient | Destination client computer name |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Move an instance rman901 from source clients sc1 or sc2
to a destination client dc1.
E:\commandline>qoperation move -sc sc1 -sc sc2 -a Q_ORACLE
-i rman901 -dc dc1
This command and the qoperation dock command register a new client computer with the CommServe before or after a decoupled install.
Usage:
qoperation register [-hn client host name] [-port Bull Calypso Communications Service port number] [-file path of XML file] [-ocn Display name override][-ohn Host name override] [-dock yes/no] [-roaming yes/no] [-af argsfile] [-h]
This command registers a new client computer with the CommServe before or after a Decoupled Install. The associated qoperation dock command can be used to confirm this registration. Alternatively, you can confirm this registration by using the appropriate command line option (-dock) or argument file option (dock) with the qoperation register command.
To register a client, you can create and use an XML file or just edit/use an existing such file and identify this file in the command line. This file includes the essential fields and values to register the client with the CommServe. An XML file called PreImageModeFile.xml is automatically created after a decoupled install, and it is typically housed in the Base directory. To use a new or existing version of this file, you must copy the file to the CommServe. See XML Input File for Decoupled Install for more information. If you use this file, you must run the qoperation register command from the CommServe.
Alternatively, you can forego using the XML file and register the client by providing the client-related parameters in the command line and then running the command.
You can include an XML file path along with other eligible parameters in the command line. However, if you include the file path along with a client host name override (identified by -ohn) and the Bull Calypso Communications Service port number on the client used by the server to connect to and get the XML file (identified by -port), the values in the XML file take precedence.
In case of an error, an error code and the error description are displayed in the following format: report: Error errorcode: errordescription
Options:
Command Line
-hn | Complete host name and IP address of the client being registered |
-port | Bull Calypso Communications Service port number on the client used by the server to connect to and get the PreImageModeFile.xml file created by the installer during the decoupled install. Default value is 8400. |
-file | Path of the XML file on the CommServe. This option can be used if the PreImageModeFile.xml file is copied to the CommServe. |
-ocn | Client display name override (used instead of the name in the PreImageModeFile.xml file if both are specified) |
-ohn | Client host name override (not used if the XML file is specified because the name in this file will take precedence) |
-dock (y/n) | Flag to confirm client registration immediately after the client is registered |
-roaming (y/n) | Flag to identify client with the Workstation Backup Agent as a roaming client |
-af | Reads arguments from a file |
-h | Displays help |
Argument File
hostname | Complete host name and IP address of the client being registered |
port | Bull Calypso Communications Service port number on the client used by the server to connect to and get the PreImageModeFile.xml file created by the installer during the decoupled install. Default value is 8400. |
file | Path of the XML file on the CommServe. This option can be used if the PreImageModeFile.xml file is copied to the CommServe. |
overridename | Client display name override (used instead of the name in the PreImageModeFile.xml file if both are specified) |
overridehostname | Client host name override (not used if the XML file is specified because the name in this file will take precedence) |
dock | Flag to confirm client registration immediately after the client is registered |
roaming | Flag to identify client with the Workstation Backup Agent as a roaming client |
Examples:
Register client sales01 with the CommServe using a PreImageModeFile.xml file.
E:\commandline>qoperation register -file \hold\PreImageModeFile.xml
Register client sales01 with the CommServe foregoing an XML file, using port 8400, and providing client override display name appliances; then immediately confirm this registration.
E:\commandline>qoperation register -hn sales01 -port 8400 -ocn appliances -dock yes
Register client sales01 with the CommServe using an XML file, providing client override display name appliances, and providing client override host name sales01_tally (which does not take effect) ; then immediately confirm this registration.
E:\commandline>qoperation register -file \hold\PreImageModeFile.x -ocn appliances -ohn sales01_tally -dock yes
This command performs replication operations on a replication pair or replication set. This command is only applicable for ContinuousDataReplicator. This command does not apply to Remote Backup and MediaAgent Replication.
Usage:
qoperation replication [-c client] [-rsn repset name] [-rpi repset pair id] [-h]
Description:
This command can be used to start replication operations with Smart and Full Sync. It can also be used to stop, suspend and resume replication activity. Upon successful completion, qoperation replication displays the message "Replication operation successful" on the CommCell Console.
In case of an error, an error code and the error description are displayed in the following format: "replication: Error errorcode: errordescription"
Options:
Command Line
-c | [list] Client computer name |
-rsn | [list] Repset name |
-rpi | [list] Replication pair ID |
-o | [list] Type of operations set (start|startfullsync|abort|forceabort|suspend|resume) |
-h | [nil] Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Examples:
Starting replication on repset repset1, replication pair with pair id 150 on client client1
E:\commandline>qoperation replication -c client1 -rsn repset1 -rpi 150 -o start
This command generates a job summary report.
Usage:
qoperation report -rt reporttype [-jt jobtype] [-t backuptype] [-c client] [-cg clientgroup][-a iDataAgent] [-js job status] [-st Start time] [-et endtime] [-lh lasthours] [-dpath destinationpath] [-opfrmt reportformat] [-j jobid] [-af argsfile] [-h]
Description:
This command generates a job summary report. Reports can be saved only as a file in HTML/text formats. This command also supports filtering of report output by job type, backup type, job status, client, and agent, and start and end times. Upon successful completion, the command displays the message Report generated successfully on the CommCell Console. In case of an error, an error code and the error description are displayed in the following format: report: Error errorcode: errordescription
By default, when no filters are specified, the report is generated for all job types (backup, restore, and administration) for the last 24 hours.
This command provides several options worth noting:
Options:
Command Line
-rt | [string] Type of Report to be generated (jobsummary) | ||
-jt | [string] Type of job (backup|restore|admin) | ||
-t | [string] Type of backup (Q_FULL|Q_INC|Q_DIFF|Q_SYNTH) | ||
-c | [list] Client computer name(s) | ||
-cg | [list] Client computer group name(s) | ||
-a | [list] Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
-js | [string] Job status (completed|failed|killed|partsuc|running|delayed|nobackup|norun) | ||
-st | [time] Start time | ||
-et | [time] End time | ||
-lh | [int] Last hours | ||
-dpath | [string] Destination path where the report needs to be saved (supports only local paths, not UNC paths) | ||
-opfrmt | [string] Format of report to be saved (html|text) | ||
-af | [string] Reads arguments from a file | ||
-j | [int] Job ID | ||
-h | [nil] Displays help |
Argument File
client | [list] Client computer name(s) | ||
clientgroup | [list] Client computer group name(s) | ||
jobtype | [string] Type of job (backup|restore|admin) | ||
backuptype | [string] Type of backup (Q_FULL|Q_INC|Q_DIFF|Q_SYNTH) | ||
dataagent | [list] Agent type installed on client computer
(see Argument Values - Agent Types)
|
||
diagtype | [list] Type of diagnostic for the job (freason|jobattempts|assoevents) | ||
contenttype | [string] Content type (scf|protobj|failobj|cifail) | ||
storagetype | [string] Type of storage (media|drive|sp|ma) | ||
jobinfo | [string] Job information (jobopts|user) | ||
jobstatus | [string] Job status (completed|failed|killed|partsuc|running|delayed|nobackup|norun) | ||
starttime | [list] Start time | ||
endtime | [string] End time | ||
lasthours | [int] Last hours | ||
destinationpath | [string] Destination path where the report needs to be saved (supports only local paths, not UNC paths) | ||
outputformat | [string] Format of report to be saved (html|text) | ||
jobid | [number] Backup job ID | ||
description | [list<string> | multiline] User-defined comments regarding the job |
Note the following when using [description]
parameter.
|
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Examples:
Generate a job summary report and save it at e:\targetdir.
E:\commandline>qoperation report -rt jobsummary -dpath e:\targetdir -jt backup -j 10
Report generated successfully
This command enables a subclient level or file level recovery within or across client computers.
Usage:
qoperation restore -sc sourceclient -a dataagenttype -i instance -b backupset -spath sourcepath -j jobid [-dc destinationclient] [-dpath destinationpath] [-af ArgumentFilepath][-h]
Description:
This command starts a restore job immediately on the subclient/source path specified. In cases where the subclient name is specified, the content of that subclient will be restored. If a file path is specified, the content of that directory that has been backed up will be restored. Both Data and ACLs are restored, where appropriate. Out of place restores can be achieved by specifying the destination path and destination client computer name. By default, data is restored to the source path and source client computer. The restore command can also accept the arguments from a file though -af option. This file can accept all the arguments supported through command line, as well as restore options. For the list of supported Restore options refer to Argument Values - Restore Options.
The argument file also supports a data path option. The data path option accepts a list of MediaAgents, libraries, drive pools, and scratch pools. The drivepool and scratchpool names can be given along with the library name followed by a backslash (/) or itself alone. The data path options are optional and can be used in the argument file as needed.
The Job ID is returned and displayed in the console if the restore job was successfully initiated by the CommServe.
In case of an error, an error code and the error description are displayed in the following format: "restore: Error errorcode: errordescription"
In case the user wants to use command line to restore FPolicy and Network File Share Subclient of the File Archiver for Windows Agent, the -af option must be provided.
Options:
Command Line
-sc | Source client computer name from which data has to be restored | ||
-a | Agent type installed on source client computer
(see Argument Values - Agent Types)
|
||
-i | Instance name to which subclient belongs, required for a few agents. If an iDataAgent supports instances, this option is mandatory. | ||
-b | Backup set name to which subclient belongs, required for a few agents. If an iDataAgent supports backup sets, this option is mandatory. | ||
-spath | File/Directory to be restored. For NAS restores on Unix, the path values must be surrounded by single quotes (for example, -spath '/abc/def'). For NAS restores on Windows, the path values must be \UNC-NT_<filer>\<volume_name>\<folder>. | ||
-dc | Destination client computer name, for cross-client
restores (Optional) By default, data is restored to the source client computer |
||
-dpath | Destination path to which backed up data will
be restored (Optional) By default, data is restored to the source paths |
||
-af | Input file containing the arguments | ||
-h | Displays help |
Argument File (Options used by all iDataAgents except Oracle)
sourceclient | Source client computer name from which data has to be restored | ||
dataagent | Agent type installed on source client computer
(see Argument Values - Agent Types)
|
||
instance | Instance name to which subclient belongs to, required for a few agents | ||
backupset | Backup set name to which subclient belongs to, required for a few agents | ||
subclient | Name of the Subclient to be restored | ||
sourcepaths | File/Directory to be restored | ||
filterpaths | Filter paths | ||
destinationclient | Destination client computer name, for cross-client
restores (Optional) By default, data is restored to the source client computer |
||
destinationpath | Destination path to which backed up data will
be restored (Optional) By default, data is restored to the source paths |
||
options | Restore options (see Argument Values - Restore Options) | ||
jobid | Job ID for Restore | ||
level | Number of source path levels to strip or
preserve Use QR_STRIP_LEVEL option to strip paths (see Argument Values - Restore Options) Use QR_PRESERVE_LEVEL option to preserve paths |
||
currentuserid | Current User ID | ||
copyprecedence | Copy precedence | ||
streamcount | Stream count | ||
fromtime | Restore from time (Captures the "relative" time for index-free restores) | ||
totime | Restore to time (Captures the "relative" time for index-free restores) | ||
browsefrom | Browse from time | ||
browseto | Browse to time | ||
jobstatus | Job status | ||
backuplevel | Backup Level | ||
useageddata | Use aged data flag | ||
devfileasreg | Treat device files as Regular | ||
suffix | Rename restored file | ||
destinationdataagent | Destination dataagent name | ||
priority | Job priority | ||
alert | Alert name | ||
ondemandinputfile | On demand restore input file | ||
mapfile | Map file name | ||
nomapdata | No map data flag | ||
onetouch | Onetouch restore flag | ||
fullida | Full iDA restore flag | ||
ntuser | Windows user name for impersonation | ||
ntpassword | Windows password for impersonation | ||
precmd | PreRestore command | ||
postcmd | PostRestpre command | ||
prepostuser | Pre-Post user name | ||
prepostpassword | Pre-Post password | ||
destinstancename | Destination instance name (required for SQL iDataAgent) | ||
startsuspended | Starts the job in suspended state | ||
sourcepathsfile | Source paths file (contains list of files/directories to restore) | ||
retryno | Number of times to retry the job | ||
retrytime | Number of minutes to retry the job | ||
mediaagent | Name of the MediaAgent | ||
library | Name of the library | ||
drivepool | List of names of drive pools (format: dpool or lib/dpool) | ||
scratchpool | List of names of scratch pools (format: spool or lib/spool) | ||
jobdescription | User-defined comments regarding the job | ||
restoreondevice | Raw device node to be restored (applies to UNIX file system idataagents only) |
Options used by the Oracle iDataAgent
sourceclient | Source client computer name from which data has to be restored | ||
dataagent | Agent type installed on source client computer
(see Argument Values - Agent Types)
|
||
dbname | Database name of the auxiliary instance | ||
dbclient | Client name of the auxiliary instance | ||
instance | Instance name to which subclient belongs to, required for a few agents | ||
importoption | Import option | ||
importclient | Import client Name | ||
importdbname | Import Database Name | ||
backupset | Backup set name to which subclient belongs to, required for a few agents | ||
subclient | Name of the subclient to be restored | ||
destinationclient | Destination client computer name, for cross-client restores (optional) By default, data is restored to the source client computer. | ||
retryNo | Number of times to retry the restore job | ||
retryHours | Number of hours to retry the restore job | ||
retrytime | Number of minutes to retry the job | ||
precmd | Pre restore command | ||
postcmd | Post restore command | ||
prepostuser | User impersonation details for running prepost command | ||
prepostpassword | User impersonation details for running prepost command | ||
mediaagent | Name of the MediaAgent | ||
drivepool | List of names of drive pools (format: dpool or lib/dpool) | ||
library | Name of the library | ||
scratchpool | List of names of scratch pools (format: spool or lib/spool) | ||
startsuspended | Start job in suspended state | ||
priority | Priority of the job | ||
jobdescription | User-defined comments regarding the job | ||
alert | Alert name | ||
controlfilepath | Control file name | ||
filetime | File time | ||
startlsnno | Start LSN number | ||
endlsnno | End LSN number | ||
restorefrom | Restore from time | ||
restoretime | Restore to time | ||
restoretag | Restore tag | ||
recoverfrom | Recover from time | ||
recovertime | Recover to time | ||
recoverscn | Recover SCN | ||
endlogtime | End log time | ||
controlfiletime | Control file time | ||
archivelog | Archive log | ||
logtarget | Log target | ||
redirectpaths | Redirect paths | ||
renameall | Rename all | ||
resetlogs | Reset logs | ||
duplicatetoname | Duplicate name | ||
duplicatetopfile | Duplicate file | ||
skiptablespace | Skip tablespace | ||
duplicatelogfile | Duplicate log file | ||
options | Restore options | ||
passphrase | Pass phrase | ||
pffile | Initialization parameter init<SID>.ora file for the auxiliary instance | ||
spfilepath | Specifies Oracle server parameter file name and location. | ||
stagingpath | To store datafiles for auxiliary instance and complete export table before importing | ||
cataloguser | Catalog connect string, user name | ||
catalogpassword | Catalog connect string, password | ||
catalogservice | Catalog connect string, service name | ||
oraclerestorescript | Restore script for RMAN script restore | ||
tablerestoreoptions | Table restore options | ||
tablesourcepaths | Displays selected users and tables
rmanlogfile |
Location and name of RMAN restore output
file |
|
For a scheduled data recovery operation of encrypted data to run successfully when the Client encryption Restore Access property is set to With a Pass-Phrase, prior to the start of the scheduled recovery you must have exported the file that contains the scrambled pass-phrase to the destination client(s). See Export an Encryption Pass-Phrase for more information. |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Examples:
This command runs a given VaultTracker policy.
Usage:
qoperation vaulttracker -vtp vaulttrackerpolicy [-h]
Description:
This command runs a given VaultTracker policy.
In case of an error, an error code and the error description are displayed in the following format: "vaulttracker: Error errorcode: errordescription"
Options:
-vtp | Vault tracker policy name |
-h | Displays help |
Diagnostics:
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument.
2 - Any other failure.
Example:
Run vault tracker policy vtp1.
E:\commandline>qoperation vaulttacker -vtp
vtp1