Sends information about errors and software usage to iAnywhere Solutions.
dbsupport [ options ] operation [ operation-specific-option ]
dbsupport configuration-options
Option | Description |
---|---|
@data |
Reads in options from the specified environment variable or configuration file. See Using configuration files. If you want to protect passwords or other information in the configuration file, you can use the File Hiding utility to obfuscate the contents of the configuration file. See File Hiding utility (dbfhide). |
-o filename | Sends output to the specified file. |
-q | Displays only critical messages. |
Operation | Description | ||||
---|---|---|---|---|---|
-e configuration-option |
Displays the setting for the specified configuration option. For example, suppose you ran the following command to configure dbsupport to prompt when possible:
When you run the command
|
||||
-is submission-ID [ -rr N ] |
Checks the status of a crash report that has been submitted to iAnywhere Solutions. For example, the following command inquires about the status of submission ID 66:
|
||||
-iu [ -r N ] |
Checks for updates to your build of SQL Anywhere. Updates include:
You can also check for updates using Interactive SQL and Sybase Central. See Checking for software updates. |
||||
-lc | Generates a list of all crash reports that have not been submitted to iAnywhere Solutions. The report names listed can be used with the -sc option. | ||||
-ls |
Generates a list of submission IDs for all reports that have been submitted to iAnywhere Solutions. For example:
This returns information similar to the following:
|
||||
-pc filename | Displays crash report information. You can use this option to view information before it is submitted to iAnywhere Solutions. | ||||
-pd | Displays the diagnostic information that has been collected. You can use this option to view information before it is submitted to iAnywhere Solutions. | ||||
-ps submission-ID |
Displays information about a specific report that has been submitted to iAnywhere Solutions. For example:
This returns information about submission 4:
|
||||
-sa [ -r number-of-submission-retries ] | Submits all crash report and diagnostic information stored in the diagnostic directory to iAnywhere Solutions. | ||||
-sc reportname [ -r number-of-submission-retries ] [ -nr | -rr N ] |
Submits a crash report and diagnostic information to iAnywhere Solutions. For example:
Use the -lc option to see a list of reports that have not been submitted. |
||||
-sd [ -r number-of-submission-retries ] |
Submits only diagnostic information to iAnywhere Solutions. For more information about the diagnostic directory, see SADIAGDIR environment variable. |
Configuration option | Description | ||||
---|---|---|---|---|---|
-cc [ autosubmit | no | promptDefY | promptDefN ] |
Changes the prompting behavior of dbsupport. You can specify one of the following options:
If you specify this option, its value becomes the default used by the Support utility. The setting is stored in the dbsupport.ini file in the diagnostic directory. The following command configures the Support utility so that it does not submit reports and never prompts the user to submit reports:
|
||||
-cd retry-delay |
Specifies the retry delay, in seconds, for submitting a report if the previous attempt is unsuccessful. The default delay is 30 seconds. If you specify this option, its value becomes the default used by the Support utility. The setting is stored in the dbsupport.ini file in the diagnostic directory. The following dbsupport command specifies that failed submissions should be retried every 3 seconds, up to a maximum of 4 times before giving up:
|
||||
-ce email-address;email-server[:port ][;user-id:password ] |
Specifies the address where an email is sent after a crash occurs. The email is sent using the email-server SMTP server. Optionally, you can specify the port that should be used, and the user-id and password used to authenticate with the SMTP server. |
||||
-cet | Test the email settings specified by the -ce option. | ||||
-ch crash-handler-program |
Specifies a program that is called when a crash occurs. If you specify this option, its value becomes the default used by the Support utility. The setting is stored in the dbsupport.ini file in the diagnostic directory. The database server supports three substitution parameters that set up information that is passed to the crash-handler-program:
You can use $F, $P, and $S as alternatives to %F, %P, and %S. Because different command shells interpret the characters % and $, both are provided. For example, on 4NT, %F is substituted with the value of the environment variable F; $F can be used to avoid this substitution. Suppose you have a crash handler program in c:\test.bat that contains the following commands:
On Windows, the following command tells dbsupport to launch c:\test.bat with two parameters when a crash occurs. If the report is being submitted, this program is called before the report is submitted.
The substituted path specified by %F is sent to c:\test.bat as the first parameter. The parameter parm2 is sent to c:\test.bat as the second parameter. Note that quotation marks must be used to specify a crash handler program that takes arguments. In the example above, additional quotes were used around the full path to the generated report file. To avoid problems accessing the report file that dbsupport is using, the crash handler program should make its own copy of the report file. |
||||
-ch- |
Removes the crash handler settings that are stored in the dbsupport.ini file. For example:
|
||||
-cid customer-id |
Specifies a string that identifies you in the submission report. If you specify this option, its value becomes the default used by the Support utility. The configuration is stored in the dbsupport.ini file in the diagnostic directory. The following examples specify a customer identification string for dbsupport:
|
||||
-cid- |
Removes the customer identification string from the dbsupport.ini file. For example:
|
||||
-cp { email-server [ :port ] | autodetect } |
Configures the HTTP proxy host and port used to submit error reports. On Windows, the syntax -cp autodetect is also supported. If you specify this option, then if a proxy server and port have been set using Internet Explorer, and they are currently enabled, dbsupport configures its proxy server and port using the system setting. You can set the proxy server and port in Internet Explorer on Windows by choosing Tools » Options » Lan Settings. |
||||
-cp- |
Removes HTTP proxy host and port settings from the dbsupport.ini file. For example:
|
||||
-cr number-of-submission-retries |
Specifies the number of times a failed submission should be retried. If you specify this option, its value becomes the default used by the Support utility. The setting is stored in the dbsupport.ini file in the diagnostic directory. The following dbsupport command specifies that failed operations should be retried every 3 seconds, up to a maximum of 4 times before giving up:
|
Operation-specific option | Description | ||
---|---|---|---|
-ac | Adds a comment to the submission. | ||
-af | Attaches a file to the submission. You can specify the -af option more than once to attach multiple files to the submission. | ||
-nr |
Specifies that dbsupport does not check the server for the status of the submission. For example, the following command submits the report, but does not check for the status of the new submission:
By default, dbsupport checks whether there is already a fix for the problem being submitted. |
||
-r number-of-submission-retries | Specifies the maximum number of times dbsupport should try to send the submission. Specifying 0 means retry indefinitely. The default value is 10. Specifying -r overrides the -cr value stored in the dbsupport.ini file, if one exists. | ||
-rd retry-delay | Specifies the number of seconds dbsupport waits between attempts to resend the report. The default value is 30. Specifying -rd overrides the -cd value stored in the dbsupport.ini file, if one exists. | ||
-rr number-of-submission-response-retries | Specifies the maximum number of times dbsupport should try to obtain a submission response. Specifying 0 means retry indefinitely. The default value is 10. |
The Support utility (dbsupport) can be used for any of the following tasks:
submit diagnostic information and crash reports to iAnywhere Solutions over the Internet
submit feature statistics
list information about submitted and unsubmitted crash reports
print information about submitted and unsubmitted crash reports
inquire about the status of a submission
inquire whether there are software updates available for your build of SQL Anywhere
configure what is to be done when a fatal error (assertion/crash) is detected by a database or MobiLink server
By default, dbsupport checks whether there is already a fix for the problem being submitted.
Information from any of the following applications can be sent as an error report if a fatal error occurs:
When a report is successfully submitted, it is assigned a unique submission ID. Reports are written to the diagnostic directory.
Platform | Default diagnostic directory location |
---|---|
Windows (except Windows Mobile) | %ALLUSERSPROFILE%\Application Data\SQL Anywhere 12\diagnostics |
Windows Mobile | Directory where the executable is running. |
Unix | $HOME/.sqlanywhere12/diagnostics |
For information about the diagnostic directory, see SADIAGDIR environment variable.
For more information about error reports and how they are submitted, see Error reporting in SQL Anywhere.
The Support utility can also be configured to perform certain actions when a problem is detected. For example, it can be configured to execute a specified handler program each time the database server submits an error report. This feature is useful for adding your own custom actions to the error handling process.
As well, the Support utility can be configured to retry certain operations. For example, when submitting a report, it could be configured to retry the operation again in 30 seconds, up to a maximum of 10 times. This feature is useful for handling the case where the service may be temporarily unavailable.
Settings for the Support utility are stored in the dbsupport.ini file in the diagnostic directory.
The operation-specific options are useful for overriding default behavior, including those that have been saved in the dbsupport.ini file.
EBF An express bug fix is a subset of the software with one or more bug fixes. The bug fixes are listed in the release notes for the update. Bug fix updates may only be applied to installed software with the same version number. While some testing has been performed on the software, you should not distribute these files with your application unless you have thoroughly tested your application with the software.
Maintenance release A maintenance release is a complete set of software that upgrades installed software from an older version with the same major version number (version number format is major.minor.patch.build). Bug fixes and other changes are listed in the release notes for the upgrade.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |