The rsdiag command-line utility captures the information about a Replication Server's configuration, its log files, and host details, and archives the information into a file that the customer can send to SAP technical support. It stores the results in XML format and provides a simple HTML file that you can view using a web browser.
rsdiag -U username [-P password] -S [server_name | host:port] [-I interfaces_file] [-L log_file] [-N num_threads] [-O output_directory] [-R resource_file] [-T feature_list] [-h] [-m message_level] [-D user_data_directory [-v]
(optional) specifies the name of the interfaces file. If <-I> is specified, rsdiag uses the <interfaces_file> and displays an error message if the file is not found. If <-I> is not specified, rsdiag first checks the LDAP server for the server entry, and if the entry is not found, rsdiag uses the default interfaces file in the directory specified by the SYBASE environment variable.
(optional) specifies the name of the log file that rsdiag creates. If the log_file is not an absolute path, the log file is created in the directory where rsdiag is executed. Whether you specify this parameter or not, rsdiag creates a default log file called rsdiag.log in the .zip output file.
(optional) specifies the maximum number of parallel threads that rsdiag executes in parallel. The default value is <5>. Do not change the default value unless you cannot execute parallel collections.
(optional) specifies the name of a local directory to store rsdiag output. If not specified, rsdiag creates the output .zip file in the directory where the command was executed. The output file is named rsdiag-<server name>-<datetime stamp>.zip.
(optional) specifies the resource file that rsdiag uses on start-up. Use this option only at the direction of SAP Technical Support.
server_name specifies the name of the Replication Server to which rsdiag connects. rsdiag looks for this name in the interfaces file or the LDAP directory. If you specify <-S> with no argument, rsdiag looks for a server named SYBASE. If you do not specify <-S>, rsdiag looks for the server specified by your DSQUERY environment variable. The host:port entry specifies the machine name and the port number.
All diagnostic data is collected if you do not specify <-T>.
By default, the error message display level is set to 4.
# source SYBASE.sh # rsdiag -Usa -PSybase123 -SD01