Toolpack Debug Application:Tbdebug

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(What is tbdebug)
Line 1: Line 1:
 
== What is tbdebug ==
 
== What is tbdebug ==
  
Tbdebug is a debugging tool of Toolpack that is used to gather essential information about the system when reporting bugs to TelcoBridges support team.
+
Tbdebug is a debugging tool of Toolpack that is used to gather essential information about the system when reporting bugs to the TelcoBridges support team.
 
The application will capture the following information:
 
The application will capture the following information:
 
*Logs of the Toolpack applications
 
*Logs of the Toolpack applications
Line 7: Line 7:
 
*Configuration and status of all TMedia units of the system
 
*Configuration and status of all TMedia units of the system
 
*Configuration database
 
*Configuration database
It can also capture the following information
+
It can also capture the following information:
 
*IP capture from IP interfaces of the TMedia units (except RTP packets)
 
*IP capture from IP interfaces of the TMedia units (except RTP packets)
 
*Recording of calls
 
*Recording of calls
All that information is gathered and archived into a .tgz file that can be downloaded and sent to TelcoBridges support.
+
All that information is gathered and archived in a .tgz file that can be downloaded and sent to the TelcoBridges support team.
 
+
  
 
== Why is procedure to run tbdebug tool so complicated? ==
 
== Why is procedure to run tbdebug tool so complicated? ==

Revision as of 20:28, 23 November 2010

Contents

What is tbdebug

Tbdebug is a debugging tool of Toolpack that is used to gather essential information about the system when reporting bugs to the TelcoBridges support team. The application will capture the following information:

  • Logs of the Toolpack applications
  • Configuration and status of the Toolpack system
  • Configuration and status of all TMedia units of the system
  • Configuration database

It can also capture the following information:

  • IP capture from IP interfaces of the TMedia units (except RTP packets)
  • Recording of calls

All that information is gathered and archived in a .tgz file that can be downloaded and sent to the TelcoBridges support team.

Why is procedure to run tbdebug tool so complicated?

The procedure below is relatively long. We're working on integrating this tool in Toolpack's Web Portal so it's easier to run. Unfortunately, we have not yet completed that process, and thus for now it's required to run the application from a SSH connection to the server, through the tbx_cli_tools_remote application.


How to launch tbdebug tool

  • Launch tbx_cli_tools_remote application (/lib/tb/toolpack/pkg/2.X.X/bin/release/[distribution]/tbx_cli_tools_remote)
  • Select the tboamapp application
  • Press TAB until the Application launch manager page is selected
  • Press key l (lower-case L)
  • Choose acquisition time for logs (*** see note below about acquisition time and acquisition modes)
  • Press Enter to launch the tbdebug application

If you have selected acquisition time of 0 or -1, also do the following steps:

  • Double-tap the escape key to exit the tboamapp application
  • Select the tbdebug application
  • Press a to start or stop acquisition


Download resulting capture

Once the tbdebug application has finished the acquisition, it will archive all captured files into a .tgz archive. You can download this archive from

/lib/tb/toolpack/setup/12358/2.X/apps/tbdebug/tbdebug_logs/results/tbdebug[date-time].tar.gz


Using acquisition period greater than 0

In this mode, the tbdebug application will download only the log files of Toolpack applications for that period of acquisition, and will optionally capture IP packets from TMedia, and record calls using tbstreamserver. Use this mode when you can reproduce the problem: Start tbdebug with long enough period, then reproduce the problem. This ensures that only a short and appropriate portion of the application logs is gathered, simplifying analysis of the log files by focusing on the period where the actual problem was reproduced.

Using acquisition period of -1 (infinite)

This mode will also capture logs for a period of acquisition. The duration of the period is infinite, and user has to manually stop the acquisition by pressing key a in the tbdebug applications' window (through tbx_cli_tools_remote application)

Using acquisition period of 0 (snapshot mode)

In this mode, the tbdebug application will not use an acquisition period, but will instantly gather logs of all applications for the current day, as well as other logs that are not related to an acquisition period (there will thus be no IP capture or recording in that mode). Use this mode when the bug has already occurred, and cannot be reproduced again.

Optional capture options

Additional capture parameters can be configured from the tbdebug configuration file:

/lib/tb/toolpack/setup/12358/2.X/apps/tbdebug/tbdebug_logs/tbdebug.xml

We recommend changing only the following parameters:

record_new_calls:     Enable/disable recording of new calls established during the acquisition period
record_current_calls: Enable/disable recording of calls already present at the time the acquisition period starts
trace_level:          Allows automatically changing trace level (value from 0 to 4) of all applications during the acquisition period.
                      Using "disabled" will cause trace level to remain unchanged.
                      A trace level of 4 will gather almost no traces (less verbose)
                      A trace level of 0 will gather the most information (may create big log files)
                      A trace level of 1 is generally appropriate for debugging most call-flow related bugs
Personal tools