I'm trying to set up a custom inventory Rule which identifies the machines that are using the companies own fonts. 
No Problem on Windows but i can't seem to figure out the right way on Mac OS clients. 
I've created a custom inventory rule in the Software-Library which get's pulled every time an agent connects to the K1000.
But my Shellcommands, which return the wanted data on if you try the in the terminal, don't return anything. 

ShellCommandTextReturn(find /Users -iname "fontname*" | grep -i ".ttf")

ShellCommandTextReturn(find /Users/*/Library/Fonts/ -iname "fontname*")

I use the wildcard in the fontname because we've got about 20 different Fonts. Maybe the K1000 Agent does not support them?

Anybody has got an idea how to check for this properly?

Answer Summary:
0 Comments   [ + ] Show Comments


Please log in to comment


Not sure why that wouldn't work, you might open a support ticket for it.

As an alternative, you could try using a kscript that runs your command and outputs to a file, then use a custom inventory rule to read the output file.

find /Users/*/Library/Fonts/ -iname "fontname*"
kscript:  find /Users/*/LIbrary/Fonts/ -iname "fontname*"  > /your/data/location/fonts.txt

Then, for the CIR, use something like: ShellCommandTextReturn(cat /your/data/location/fonts.txt)
find /Users/*/Library/Fonts/ -iname "fontname*"
Answered 10/31/2014 by: jknox
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity