How to check public IP of mac devices which is enrolled to JAMF

pradeeps
New Contributor

There is a way we can configure extension attributes in Jamf to view mac devices public IP in Jamf inventory. If your Jamf instance is integrated with Splunk then the security team can view public of mac devices on Splunk.

STEPS

1- we have to create an extension attributes on Jamf instance
2- we should use the curl command to retrieve public IP of mac machine
3-echo command to display the IP address.
4- Click on Jamf inventory and enable extension attitude.
5- Now public IP should visible in inventory.
6- If JAMF and SPLUNK integrate then public IP will be visible on Splunk.

in curl command, you can use any URL which will provide public details

Ex-

!/bin/sh

externalIP=$(curl ifconfig.me)
echo "<result>$externalIP</result>"
exit 0

0 REPLIES 0