Skip to main content

Hello, 

 

Hope all is well. I was wondering if it's possible to get some assistance on this issue I came across. I am new to Jamf PRO. My Team Lead gave me an assignment to push Rapid7 automatically to MacOS devices in Jamf Pro. I've watched videos and read documentation but still a bit confused and was wondering if I could get some help.

For a precise answer we would need more information. Is this a normal PKG installer? Or a DMG?


For a precise answer we would need more information. Is this a normal PKG installer? Or a DMG?


Hello, yes it is a normal PKG installer. 


I just had to do this. IIRC there are two packages. One for ARM64 and one for X86. Currently traveling, but can post my script on Monday. Basically one big pkg with both of these and the option of what to install based on chip-set. aka artisan universal package


I just had to do this. IIRC there are two packages. One for ARM64 and one for X86. Currently traveling, but can post my script on Monday. Basically one big pkg with both of these and the option of what to install based on chip-set. aka artisan universal package


Thank you very much. 


Greetings,

so in my case I was given a zip file that contained about 9 files. .pem,.crt,.key., etc. I unzipped the file to /tmp. Contained within the file, there were  these files

agent_installer-arm64.sh 

agent_installer-x86_64.sh

I added the folder to composer. I then created the following postinstall script:

 

#!/bin/sh
## postinstall

ARCH=`/usr/bin/arch`

cd /private/tmp/Rapid7

if [[ "$ARCH" == arm64 ]]; then

sudo ./agent_installer-arm64.sh install_start --token us:<yourtokenkeyhere>

sleep 10


else

sudo ./agent_installer-x86_64.sh install_start --token us:<yourtokenkeyhere>

sleep 10


rm -rf /private/tmp/Rapid7/*
rm -rf /private/tmp/Rapid7*.pkg
rm -rf /private/tmp/Rapid7


fi

 

as always test on a non-prod device, because you should never just implement a script you found online by some random guy..unless its @sdagley . hth

 

 

 


Greetings,

so in my case I was given a zip file that contained about 9 files. .pem,.crt,.key., etc. I unzipped the file to /tmp. Contained within the file, there were  these files

agent_installer-arm64.sh 

agent_installer-x86_64.sh

I added the folder to composer. I then created the following postinstall script:

 

#!/bin/sh
## postinstall

ARCH=`/usr/bin/arch`

cd /private/tmp/Rapid7

if [[ "$ARCH" == arm64 ]]; then

sudo ./agent_installer-arm64.sh install_start --token us:<yourtokenkeyhere>

sleep 10


else

sudo ./agent_installer-x86_64.sh install_start --token us:<yourtokenkeyhere>

sleep 10


rm -rf /private/tmp/Rapid7/*
rm -rf /private/tmp/Rapid7*.pkg
rm -rf /private/tmp/Rapid7


fi

 

as always test on a non-prod device, because you should never just implement a script you found online by some random guy..unless its @sdagley . hth

 

 

 


Thank you very much. I am going to give this a try. Appreciate it alot. 


Greetings,

so in my case I was given a zip file that contained about 9 files. .pem,.crt,.key., etc. I unzipped the file to /tmp. Contained within the file, there were  these files

agent_installer-arm64.sh 

agent_installer-x86_64.sh

I added the folder to composer. I then created the following postinstall script:

 

#!/bin/sh
## postinstall

ARCH=`/usr/bin/arch`

cd /private/tmp/Rapid7

if [[ "$ARCH" == arm64 ]]; then

sudo ./agent_installer-arm64.sh install_start --token us:<yourtokenkeyhere>

sleep 10


else

sudo ./agent_installer-x86_64.sh install_start --token us:<yourtokenkeyhere>

sleep 10


rm -rf /private/tmp/Rapid7/*
rm -rf /private/tmp/Rapid7*.pkg
rm -rf /private/tmp/Rapid7


fi

 

as always test on a non-prod device, because you should never just implement a script you found online by some random guy..unless its @sdagley . hth

 

 

 


Nah, you'd definitely want to test it if @sdagley wrote it :-)


Reply