Posted on 09-13-2024 03:20 AM
Hi,
Just in case anyone is struggling with the Cisco Secure Client deployment, modification of the xml file, etc etc, below is the step by step guide offered by Jamf Support, it differs slightly from the guide here - How to deploy Cisco Secure Client via JAMF (MacOS) – Cisco Umbrella ( Which is still great for the configuration profile setup )
1. Download cisco-secure-client-macos-#.#.#####-predeploy-k9.dmg from Cisco's Download site
2. Double click the DMG to mount it. You should see the items below.
3. Create a temporary folder to store files. For example:
* Click shift+command+G on the keyboard, enter /Users/Shared/, and click enter.
* Right click and select New Folder.
* Enter folder name, i.e: CiscoSecureClient
4. Drag and drop Cisco Secure Client.pkg and Profiles from mounted DMG to the folder you created in the previous step.
5.Open terminal and navigate to the folder you created above (i.e. cd /Users/Shared/CiscoSecureClient) then run the following command:
* installer -pkg Cisco\ Secure\ Client.pkg -showChoiceChangesXML > install_choices.xml
Afterwards, an install_choices.xml file will be created in the folder. Open the file in a text editor and modify the AttributeSetting integer value to 1 for any modules that you want to install and to 0 for any that should not be installed. Note that each module will have multiple entries, and you are only modifying the entry with the choiceAttribute set to selected.
6. (Optional) Navigate to the folder created in step 3 to edit the ACTransforms.xml if necessary. When this XML file is in the same folder as the installer, the installer reads this file before running the installation. The installer searches in this order to see if a modification is found.
* Modify ACTransforms.xml to look like this.<!-- Optional AnyConnect installer settings are provided below. Uncomment the setting(s) to perform optional action(s) at install time. -->
* <Transforms>
* <DisableVPN>true</DisableVPN>
* <DisableCustomerExperienceFeedback>true</DisableCustomerExperienceFeedback>
* </Transforms>
7. (Optional) If installing Umbrella, there will also be an OrgInfo.json file. Copy the OrgInfo.json file to /Users/Shared/CiscoSecureClient/Profiles/Umbrella/.
8. Open Composer and drag and drop the folder from step 3 into Composer's SOURCES on the left side.
9. Right click the package in the Sources column and select Rename CiscoSecureClient_#.#.#####. Replace #.#.##### with the version number we are deploying.
10. Click > next to the Source Name to open the settings drop down. Right click Scripts, then select postinstall under Add Shell Script.
11. Remove the following:
pathToScript=$0
pathToPackage=$1
targetLocation=$2
targetVolume=$3
12. Add the text below. If you used a different path or folder name in step 3 update the path and names.
#This will install Cisco Secure Client
/usr/sbin/installer -applyChoiceChangesXML /Users/Shared/CiscoSecureClient/install_choices.xml -pkg /Users/Shared/CiscoSecureClient/Cisco\ Secure\ Client.pkg -target /
#Cleanup the Cisco Secure Client tmp folders
/bin/rm -rf /Users/Shared/CiscoSecureClient
13. Click File from the menu bar and then click Save. Click Build as PKG.
14. Upload CiscoSecureClient_#.#.#####.pkg into Jamf Pro.
The above covers the packaging and modification of the files needed. The link for the guide covers everything else.
Posted on 09-13-2024 10:43 AM
I do my Cisco client installation a bit different. I don't package mine. I let Jamf do all the work for me with a script. After getting the choice.xml file and modifying it of what I need to install. I upload the Cisco installation package to Jamf. Then I script the installation which creates the choice xml file and then it creates the VPN profile which Cisco ISE updates once the user logs into the VPN.
When I create the policy, I add the Cisco installation package but I don't install it but cache it which resides in the waiting room. Then I add my script to the policy and deploy it.
CODE:
Posted on 09-18-2024 06:54 AM
working also with this script from @junjishimazaki, works like a charm.