Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » Relay Server » Relay Server logging and log administration

 

Remote administration of the Relay Server log file

Remote administration of the Relay Server log file is provided through the AdminChannel class in rstool.jar.

Command line usage:

java ianywhere.ml.rs.AdminChannel [{options}]...

where options can be one or more of the following

Option Description
-url rsAdminUrl Points to the rs_admin extension
-uid user -pwd password Provides credentials for HTTP authentication to access rs_admin
-ping Ping the rs_admin extension
-getRSConfig Retrieve the Relay Server configuration
-setRSConfig Update and backup the Relay Server configuration
-hello Negotiate administration protocol version and ping
-archiveRSLog Truncate and archive the current online Relay Server log file
-xol outFile none | beginTime none | endTime nRegex "regex"... Extracts log lines from the archived and/or online local Outbound Enabler logs. The Relay Server does not need to be running and this function provides local extraction only.
-xrl outFile none | beginTime none | endTime nRegex "regex"...

Extracts log lines from archived and/or online Relay Server logs remotely, where:

  • *Time is the local timestamp in yyyy-MM-dd HH:mm:ss.SSS format
  • nRegex is a regular expression
? | -? | /? | -h | /h Output this usage description

For example:

java.exe -cp rstool.jar ianywhere.ml.rs.AdminChannel -url https://rs.my.com/rs16/admin/rs_admin.dll -uid me -pwd changit -hello
java.exe -cp rstool.jar ianywhere.ml.rs.AdminChannel -url https://rs.my.com/rs16/admin/rs_admin.dll -uid me -pwd changit -xrl rr.xrl none none 1 "RSR (element|header|row)"