Posted on 06-09-2022 05:05 AM
Since Jamf Pro lacks any useful way to generate reports, and our ability to use the API right now is limited (long story, don't ask), I need a way to generate the same list of Services that can be found in the Computer records. I thought launchctl might do it but there's a lot that's missing. I tried using ps aux | grep -v '/Applications' and that seems to be a bit closer to what I want, but it's still not the succinct format Jamf displays. Any clues?
Solved! Go to Solution.
Posted on 06-09-2022 09:13 AM
I'm pretty sure it's just something like this.
/bin/launchctl list | /usr/bin/awk '{print substr($0, index($0, $3))}' | /usr/bin/sed '1d'
It doesn't match up exactly on my Mac, but it's very close. I actually seem to list a couple of more services when I run that manually in Terminal as root vs what Jamf captures, but it mostly lines up. At least I don't think there's anything missing.
Posted on 06-09-2022 09:13 AM
I'm pretty sure it's just something like this.
/bin/launchctl list | /usr/bin/awk '{print substr($0, index($0, $3))}' | /usr/bin/sed '1d'
It doesn't match up exactly on my Mac, but it's very close. I actually seem to list a couple of more services when I run that manually in Terminal as root vs what Jamf captures, but it mostly lines up. At least I don't think there's anything missing.
Posted on 06-09-2022 09:20 AM
That's good enough for me!
Posted on 06-10-2022 03:29 AM
msc from the command prompt or by opening the start menu, typing "services" from the Start Menu and then launching the Service Manager icon that should show up right away.