Topic
No replies
Rafael Rodriguez
Rafael Rodriguez
2 Posts
ACCEPTED ANSWER

Pinned topic FillDB in Linux RELAY

‏2013-06-04T07:20:59Z |

size of filldb

if (name of operating system starts with "Win") and (exist folder "C:\Program Files (x86)\BigFix Enterprise\BES Relay") then (((sum of (sizes of files of folders of folder "C:\Program Files (x86)\BigFix Enterprise\BES Relay\FillDBData\BufferDir\"))/ 1024) as string) & " KB" else (if (name of operating system starts with "Lin") and (exist folder "/var/opt/BESRelay") then (((sum of (sizes of files of it ) of folder "/var/opt/BESRelay/FillDBData/BufferDir/ForwardingBufferDir/") / 1024 ) as string & " KB") else "NO RELAY")

 

total of files

if (exists main gather service) then ((number of files of it + number of files of folders of it) of folder (if (name of operating system starts with "Win") then (value "BufferDir" of key "HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server\FillDB" of registry as string) else (key ("BufferDir") of section ("Software\BigFix\Enterprise Server\FillDB") of file "besserver.config" of parent folder of folder (value of setting "_BESRelay_HTTPServer_ServerRootPath" of client)))as string) else (if (name of operating system starts with "Lin") then ((number of files of it + number of files of folders of it) of folder "/var/opt/BESRelay/FillDBData/BufferDir/ForwardingBufferDir/") as string else "no Linux") as string