Skip to Content
Author's profile photo Former Member

Collecting BCM client logs from Windows workstation

Troubleshooting client workstation problems might be tedious task sometimes. Audio device problems, sudden network hiccups or software failures can only be traced from client logs. Collecting client logs can be automated with simple scripts. In this post I have included a couple of handy log collector utilities that could be used as part of troubleshooting process.

Log level setting

Client logs can be enabled from BCM System Configurator. It is possible to set Log level in users setting template or individually per user.

adminLogLevel.PNG

If user-level modification is not denied user may adjust the log level from CDT settings.

set_Log_level.PNG

One can start client troubleshooting after the log level is set high enough. BCM client saves log/txt files in users temp folder (%TEMP%). Typically log files starts with prefix BCM/CDT and contains local date/time in the name.

Collecting log files

In this post you can find two example utilities attached. Sendtosupport.bat* collects some system information and trace files and creates email with file attachment. Bat uses compress.vbs (from the same folder) for compressing files with Windows compression methods. This method can be replaced with your favorite compression tool.

In the beginning of sendtosupport.bat a couple of variables are defined.

mailto variable contains support mail address. This must be change to a real address. Similarly msubject and mbody (mail subject and body) can be changed (and localised if you will).

The sample tries to use a couple of versions of Outlook. One should use mail client that can be found from target environment.

Note also that these utils are only tested in Windows 7 (64bit) client with an user having admin rights.

*extract and remove txt postfix – that is only due that only text files are allowed in SCN

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Lloyd Goveia
      Lloyd Goveia

      Hi Ville,

      This is a really great post. Thank you very much for sharing.

      I would also like to reference few notes that maybe useful to our customers when logging messages in SMP.

      1753539 - Needed information and logs for troubleshooting BCM

      1753607 - How to change loglevel in SAP BCM 7.0

      1423785 - BCM 6.0 & 7.0 - Enabling debug/loglevel for CDT

      1424113 - BCM 6.0 - Changing loglevel for CEM

      Thanks once more.

      Best regards,

      Lloyd Goveia

      Support Engineer, AGS Primary Support, Global Support Center Canada

      SAP Labs Canada. 100 Consilium Place M1H 3E3 Scarborough, Toronto, ON, Canada

      SAP hotline for urgent issues - see note 560499

      SAP Community Contributor SCN:

          BCM space at SCN: http://scn.sap.com/community/bcm

          Wiki:  http://wiki.sdn.sap.com/wiki/x/uBgB

          Forum: http://wiki.sdn.sap.com/wiki/x/QRkB

          Blogs: http://www.sdn.sap.com/irj/scn/weblogs?blog=/weblogs/topic/89