TROUBLESHOOTING: Upload BES Relay dump files
Log In or Register to download the BES file, and more.

0 Votes

Description

In BES 7.0, first time failure data capture has been improved specifically for application exceptions by using dump files. A besrelay.dmp file will now be generated when an unexpected C++ exception is encountered by the BES Relay application.

This task detects computers that have a BES Relay dump file, and allows you to upload those files to the BES Server so it can be provided to BigFix Support. By default, the uploaded files will be placed in a subfolder under "%ProgramFiles%\BigFix Enterprise\BES Server\UploadManagerData\BufferDir\sha1" on the BES Server. The dump files are minidumps, so their size is typically less than 100kB.


Property Details

ID381
TitleTROUBLESHOOTING: Upload BES Relay dump files
CategoryTroubleshooting
Download Size0
SourceBigFix
Source ID<Unspecified>
Source Severity<Unspecified>
Source Release Date3/3/2008 12:00:00 AM
KeywordsBES Relay files dump TABLE
Added by on 10/17/2012 1:15:16 PM
Last Modified by on 10/17/2012 1:15:16 PM
Counters 5045 Views / 2 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 19 fixlets   * Results in a true/false
Show indented relevance
version of client >= "7.0"
Used in 5 fixlets   * Results in a true/false
Show indented relevance
name of operating system as lowercase contains "win"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
(exists regapp "besrelay.exe") AND (version of regapp "besrelay.exe" >= "7.0")
Used in 1 fixlet   * Results in a true/false
Show indented relevance
(exists file "besrelay.dmp" of parent folder of regapp "besrelay.exe") OR (if login account of service "BESRelay" != "LocalSystem" then exists file ((((value "Local AppData" of it as string & "\BigFix\besrelay.dmp" ) of keys "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" of keys of key "HKU" of registry)) whose (it as string does not contain "\Default User\")) else false)

Actions

Action 1 (default)

Action Link Click here to upload BES Relay dump files to the BES Server and remove the dump files from the clients.
Script Type BigFix Action Script
// create batch script to copy besrelay.dmp to c:\winnt\temp\bfdmp from relay install dir and Local AppData dir of logged in users, if they exist
delete __appendfile
delete client.bat
appendfile @ECHO OFF
appendfile mkdir "{pathname of windows folder & "\temp\bfdmp"}" > NUL 2>NUL
appendfile del "{pathname of windows folder & "\temp\bfdmp\*.dmp"}" > NUL 2>NUL
appendfile move "{(pathname of parent folder of regapp "besrelay.exe") & "\besrelay.dmp"}" "{pathname of windows folder & "\temp\bfdmp\besrelay.dmp"}"
appendfile {concatenation of ("move %22" & it & "%22 %22" & pathname of windows folder & "\temp\bfdmp\" & (preceding text of first "\" of following text of first "gs\" of it as string) & ".besrelay.dmp%22%0d%0a") of (((value "Local AppData" of it as string & "\BigFix\besrelay.dmp") of keys "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" of keys of key "HKU" of registry) whose (it as string does not contain "\Default User\")) whose (exists file it)}
move __appendfile client.bat
waithidden client.bat
// set max size to 10485760 to prevent too much data. If the zip file is to bigger than 10MBs the upload won't occur
setting "_BESClient_ArchiveManager_MaxArchiveSize"="10485760" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_OperatingMode"="2" on "{parameter "action issue date" of action}" for client
// set the entire bfdmp dir to upload
setting "_BESClient_ArchiveManager_FileSet-dmp"="{pathname of windows folder & "\temp\bfdmp\*.*"}" on "{parameter "action issue date" of action}" for client
// send results
archive now
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!