Copying files using action script

copying files using action script

You are likely being limited by the default maximum size for an archive. You will likely have to increase the _BESClient_ArchiveManager_MaxArchiveSize setting on the Client (can be done as part of your actionscript above).

Depending on the size of the file in question, you may also have to increase the max sizes on the Relays and the Root Server as well:

_BESRelay_UploadManager_BufferDirectoryMaxSize and _BESRelay_UploadManager_CompressedFileMaxSize

See the following links for reference:
https://www.ibm.com/support/knowledgecenter/en/SS6MER_9.5.0/com.ibm.bigfix.doc/Platform/Config/c_archive_manager_settings.html
https://www.ibm.com/support/knowledgecenter/en/SS6MER_9.5.0/com.ibm.bigfix.doc/Platform/Config/c_upload_manager_settings.html

1 Like

Thanks Aram.

Can i use below action script

setting “_BESClient_ArchiveManager_OperatingMode”=“2” on “{now}” for client
setting “_BESClient_ArchiveManager_FileSet-sq”=“C:\app*.zip” on “{now}” for client
setting “_BESClient_ArchiveManager_SendAll”=“1” on “{now}” for client
setting “_BESClient_ArchiveManager_MaxArchiveSize”=Exceeded
archive now

You’ll have to set the MaxArchiveSize to an actual integer value. If your file is actually 1GB, perhaps something like:

setting "_BESClient_ArchiveManager_MaxArchiveSize"="1342177280" on "{parameter "action issue date" of action}" for client

(Please validate the size ahead of time, and provide yourself a bit of a buffer).

Also, as noted above, you’ll likely need to increase the UploadManager’s BufferDir settings on Relays and the Root Server as well (I’d suggest doing this first).