Gathering files on the bigfix client machine

  1. First, what I want to realize is below.
  • I want to collect (upload) files on the IBM Endpoint Manager client to the IBM Endpoint Manager relay
  1. Next, we are now able to achieve the following.
  • Execute the action script from the IBM Endpoint Manager console.

Action script contents
// Enter your action script here
//manual upload settings
setting “_BESClient_ArchiveManager_OperatingMode”=“2” on “{now}” for client
//upload the file
archive now

  • Archive the file to be uploaded (test.zip) with Archive Manager.

  • Pass Archive Manager’s archived file to Upload Manager.

Excerpt from C: \ Program Files (x86) \ BigFix Enterprise \ BES Client \ __ BESData \ __ Global \ Logs

At 16:46:30 +0900 - 
   GatherHashMV command received.
At 16:46:31 +0900 - mailboxsite (http://mkdlqiem01.iem.snijp.local:52311/cgi-bin/bfgather.exe/mailboxsite5516137)
   Downloaded 'http://shun055_nim:52311/mailbox/files/e5/a4/e5a42d5c8314926cb8f1c2d380e48464dcdc50c5' as 'Action 40595.fxf'
   Gather::SyncSiteByFile adding files - count: 1
At 16:46:31 +0900 - 
   Successful Synchronization with site 'mailboxsite' (version 17) - 'http://mkdlqiem01.iem.snijp.local:52311/cgi-bin/bfgather.exe/mailboxsite5516137'
At 16:46:32 +0900 - 
   Processing action site.
At 16:46:33 +0900 - mailboxsite (http://mkdlqiem01.iem.snijp.local:52311/cgi-bin/bfgather.exe/mailboxsite5516137)
   Relevant - 【テスト】uploadテスト_20171031 (fixlet:40595)
At 16:46:33 +0900 - 
   ActionLogMessage: (action:40595) Action signature verified for Execution
   ActionLogMessage: (action:40595) starting action
At 16:46:34 +0900 - actionsite (http://mkdlqiem01.iem.snijp.local:52311/cgi-bin/bfgather.exe/actionsite)
   Command succeeded setting "_BESClient_ArchiveManager_OperatingMode"="2" on "Tue, 31 Oct 2017 16:46:34 +0900" for client  (action:40595)
At 16:46:34 +0900 - 
   Encryption: optional encryption with no certificate; archive transit in the clear
At 16:46:34 +0900 - actionsite (http://mkdlqiem01.iem.snijp.local:52311/cgi-bin/bfgather.exe/actionsite)
   Command succeeded archive now  (action:40595)
At 16:46:34 +0900 - 
   ActionLogMessage: (action:40595) ending action
At 16:46:34 +0900 - mailboxsite (http://mkdlqiem01.iem.snijp.local:52311/cgi-bin/bfgather.exe/mailboxsite5516137)
   Not Relevant - 【テスト】uploadテスト_20171031 (fixlet:40595)
At 16:46:36 +0900 - 
   Starting upload of file 'a000138a11e852b17db70e6812e9a1ea3ac641e1' of size 2717
   Successfully uploaded file 'C:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\__Global\Upload\sha1\a000138a11e852b17db70e6812e9a1ea3ac641e1'
  1. Finally, I would like to confirm the following. Could you tell me?
  • How can I return the uploaded file (a000138a11e852b17db70e6812e9a1ea3ac641e1) to the file (test.zip) before being archived?
    If you check the configuration guide of IBM Endpoint Manager, it will be possible to do with PostFile, but I do not know the specific procedure.

If you want to retrieve files on the server, you do not need to deal with archive files. The files archived will be placed under BES Server\UploadManagerData\BufferDir\sha1\xx\yyyyxx folder. As indicated by https://www.ibm.com/support/knowledgecenter/SSQL82_9.5.0/com.ibm.bigfix.doc/Platform/Config/c_postfile.html, folder is named with computer id and last two digits of computer id so when you gather files from more than one computer, you will need to know the computer id of each computer (you can get by relevance computer id). If you archive more than one files of the same extension, you will need to look into index file to find out original name of files in the folder.

In case you want to deal with the archive file itself for some reason, you should be able to extract archive file with BFArchive utility. BFArchive utility can be found at https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Tivoli%20Endpoint%20Manager/page/BFArchive%20Tool.