Pull file from client to Bigfix root server

Dear Team,

I want to pull files(like .Zip) from all the endpoints to IBM Bigfix root server, In my environment in all the clients periodically one zip file is created like Logfiles.zip on “c:\temp\Logfiles.zip” So i need to copy/move this file to our IBM Bigfix root server “D:\Logs”

Kindly share your inputs on this and i tried upload manager method but its pull the file into local BES client folder on endpoints only.

Mr. @BenKus Please help me on this

Regards
Vicky

Upload Manager should be the way. What do you mean by " i tried upload manager method but its pull the file into local BES client folder on endpoints only" ?

@fermt means the requiered Logfiles.zip is upload on the client machine upload directory

“C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData__Global\Upload\sha1”

But from IBM Bigfix root server cant find the folder which is upload from endpoints(clients)

The Files should be uploaded to the root server, unless the size is bigger than the default allowed size.

could you show us what have you tried?

Hi @fermt

This is the action script i push into my client system

_BESClient_ArchiveManager_FileSet-(Zip) = D:\Logfile
_BESClient_ArchiveManager_FileSet-(Zip) = D:\Temp*.Zip
_BESClient_ArchiveManager_OperatingMode = 2
_BESClient_ArchiveManager_Interval_Seconds = 3600
_BESClient_ArchiveManager_SendAll = 0
_BESClient_ArchiveManager_MaxArchiveSize = 40000000 (40MB

After this i get a sha1 value folder on following location "“C:\Program Files (x86)\BigFix Enterprise\BES Client_BESData_Global\Upload\sha1”

and Zip files size is 21 MB only and where i can found the uploaded file on root server.

After that, you should use the command archive:

archive now

So the files are uploaded to the root server.

Hi @fermt

in end of the action script line or where?

If possible share the sample action script here…

This is an example to upload BES Relay Log:

parameter "UploadFile"="{pathname of file ((value of setting "_BESRelay_HTTPServer_LogFilePath" of client)  |  (if (windows of operating system) then ((value "EnterpriseServerFolder" of key "HKLM\SOFTWARE\BigFix\Enterprise Server" of registry) as string & "logfile.txt") else ("/var/log/BESRelay.log")))}"

// 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-relaylog"="{parameter "UploadFile"}" on "{parameter "action issue date" of action}" for client 

// send results 
archive now

Dear @fermt

Thanks for your help, In IBM Bigfix server where i can see the uploaded files from endpoints.

Please share the Path

Take a look into:

C:\Program Files (x86)\BigFix Enterprise\BES Server\UploadManagerData\BufferDir\sha1\XX\nnnnnnnnnn
(where nnnnnnnnnn is the computer ID of the BES Client and XX can vary)

Were you able to do this work?

XX is either the first two or last two digits of the client ID (I don’t recall which)

Dear @fermt

I face this error on client log

Encryption: optional encryption with no certificate; archive transit in the clear
At 13:26:55 +0530 - actionsite (http://192.168.0.42:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded archive now (action:88)
At 13:26:55 +0530 -
ActionLogMessage: (action:88) ending action
At 13:26:55 +0530 - mailboxsite (http://192.168.0.42:52311/cgi-bin/bfgather.exe/mailboxsite14034677)
Not Relevant - ziparchive (fixlet:88)
At 13:26:56 +0530 -
Report posted successfully
ForceRefresh command received. Version difference, gathering action site.
Successful Synchronization with site ‘actionsite’ (version 155) - 'http://192.168.0.42:52311/cgi-bin/bfgather.exe/actionsite
Gathering all operator/mailbox sites.
Successful Synchronization with site ‘mailboxsite’ (version 33) - 'http://192.168.0.42:52311/cgi-bin/bfgather.exe/mailboxsite14034677
At 13:26:57 +0530 -
Report posted successfully
[ThreadTime:13:26:57] Starting upload of file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’ of size 62735405
At 13:27:17 +0530 -
Full Report posted successfully
At 13:28:07 +0530 -
[ThreadTime:13:28:06] Error uploading file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’, restarting in 1 second(s)
At 13:28:08 +0530 -
[ThreadTime:13:28:07] Starting upload of file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’ of size 62735405
[ThreadTime:13:28:07] Error uploading file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’, restarting in 2 second(s)
At 13:28:10 +0530 -
[ThreadTime:13:28:09] Starting upload of file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’ of size 62735405
[ThreadTime:13:28:09] Error uploading file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’, restarting in 4 second(s)
At 13:28:13 +0530 -
[ThreadTime:13:28:13] Starting upload of file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’ of size 62735405
At 13:28:14 +0530 -
[ThreadTime:13:28:14] Error uploading file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’, restarting in 8 second(s)
At 13:28:23 +0530 -
[ThreadTime:13:28:22] Starting upload of file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’ of size 62735405
[ThreadTime:13:28:22] Error uploading file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’, restarting in 16 second(s)
At 13:28:39 +0530 -
[ThreadTime:13:28:38] Starting upload of file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’ of size 62735405
[ThreadTime:13:28:38] Error uploading file ‘e17b4792c1df05b26db4d3202b4437eba37808ff’, restarting in 30 second(s)

I think the size of the file e17b4792c1df05b26db4d3202b4437eba37808ff(62735405) exceeds the size of the parameter BESClientArchiveManager_MaxArchiveSize = 40000000