Skip to main content
Question

Automate push of Rapid7 on MacOS Device.


Forum|alt.badge.img+2

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.

7 replies

mickl089
Forum|alt.badge.img+11
  • Valued Contributor
  • 147 replies
  • August 3, 2023

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


Forum|alt.badge.img+2
  • Author
  • New Contributor
  • 1 reply
  • August 3, 2023
mickl089 wrote:

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. 


Forum|alt.badge.img+8
  • Valued Contributor
  • 106 replies
  • August 4, 2023

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


ogrant87
Forum|alt.badge.img+1
  • New Contributor
  • 2 replies
  • August 4, 2023
efil4xiN wrote:

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. 


Forum|alt.badge.img+8
  • Valued Contributor
  • 106 replies
  • August 6, 2023

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

 

 

 


ogrant87
Forum|alt.badge.img+1
  • New Contributor
  • 2 replies
  • August 7, 2023
efil4xiN wrote:

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. 


sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3540 replies
  • August 8, 2023
efil4xiN wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings