Doesn't BF clean after itself?

(imported topic written by deschodt91)

I’ve noticed that if you remove a package from the console, the upload remains on the server it was uploaded to…

We’ve deleted a lot of packages over the years and now there is no way of tracking the uploads on the server (bu guids) and match that to what is still on the conosle vs what is gone… Do you have a tool for that by any chance ?

Am I missing an option somewhere that lets you remove the upload on the server when you delete somethign from the console ? It should clean after itself, I would think… Thanks !

(imported comment written by BenKus)

The BigFix Server uses a managed LRU cache scheme with a limit for the downloads, but for the uploads we don’t manage those directly because we don’t want to delete files you might need… but we are looking to give you more control here by letting you easily manage these files in a future version.

Here is something that might help… Run this in your presentation debugger:

(name of it, preceding text of first “continue” of following text of first “Uploads/” of script of action of it ) of bes fixlets whose (name of it contains “Software Distribution” and script of action of it contains “.tmp”)

It will return to you the name of the Fixlet and the sha1 and filename of the files related to those Fixlets… It isn’t exactly the answer that you were looking for, but hopefully it helps…

Ben

(imported comment written by deschodt91)

It’ s a good start, thanks a lot Ben !

Didn’t return as much as I thought though, does it work on all tasks too ?

(imported comment written by BenKus)

You might try removing the ‘and script of action of it contains “.tmp”’ part of the script and see if that gives you the info you want.

Ben

(imported comment written by pmorris291)

Ben,

We have been working on this for a while (on and off) - Deschodt and I work together. We have found that if the task starts with Deploy (we replaced the words Software Distribution with Deploy) we get an error (Error: Singular expression refers to nonexistent object). I can find tasks that have deploy in the name such as “Remove x and deploy y” and I renamed one task to xDeploy and it worked properly by using xDeploy in the “name of it” and I got the information. But if the name of the task starts with the word Deploy it does not work. Any Ideas?

Regards,

Paul

(imported comment written by pmorris291)

Further information for the entry above. If I use “Deploy A” it will list all of the Tasks that start with those letters. "Deploy " returns the error. It does not work for every letter though (“Deploy D” does not work).

Regards,

Paul

(imported comment written by BenKus)

Hey Paul,

The relevance I gave will throw an error if there is no action or no word “continue” in the action…

You can skip those by doing something like:

(name of it, preceding text of first “continue” of following text of first “Uploads/” of script of action of it ) of bes fixlets whose (name of it contains “Software Distribution” and script of action of it contains “.tmp” AND exists script of action of it AND script of action of it contains “continue” AND script of action of it contains “Uploads/”)

(imported comment written by pmorris291)

Thanks Ben,

I will give that a try today.

Regards,

Paul

PS: It has been a long time since the training in Rockville. :slight_smile:

(imported comment written by BenKus)

Ah yes… That was one of the last times I delivered training myself (there is a whole team these days)… Training is much more polished and better these days compared to the old days when we sort of made it up as we went along… :slight_smile:

Ben

(imported comment written by pmorris291)

That code did the trick. We are able to get the information we are looking for. As far as the training goes it was excellent (and I have a little bit of a background in training myself). Again, thanks for the information provided it was of great help.

Regards,

Paul