Home

Awesome

Jamf Migrator

GitHub release (latest by date) GitHub all releases GitHub all releases GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests

Download the current release: Jamf Migrator

A tool to migrate data granularly between Jamf Pro servers

alt text

Migrate items from one Jamf server, or XML file(s), to another. If an item (based on name) within a category exists on both source and destination, the destination item will be updated with values from the source server. </br></br>

Username and password fields can be hidden/shown using the disclosure tringle on the left.

alt text

When migrating files be sure to open the 'raw' folder. alt text

Devices (computers and iOS), Groups, Policies, and Configuration Profiles can be targeted to a particular site.</br> alt text </br></br>

Servers can be removed from the (source/destination) list by holding down the option key while selecting the server. A warning will be presented to verify the removal.</br> alt text </br></br>

Limitations/requirements to be aware of:

<hr>

The Selective tab provides the ability to select a subset of (or all) items within a collection of objects. For example you might only want to transfer 4 scripts from a larger pool of existing scripts. alt text

Also, policies may have their dependencies checked/migrated using the Migrate Dependencies button. Only 'top-level' dependencies are checked. i.e. if the scope is being migrated and contains nested computer groups or groups assigned to a site that doesn't exist on the destination server the policy migration will likely fail. alt text Note: The ID of any object can be seen my hovering the mouse over the object.

Files exported using jamf-migrator can be imported into another Jamf Pro server. Be sure to open the 'raw' folder when importing.

alt text </br></br> Important: Trimmed XML files cannot be used as they are missing data required for the migration. </br></br>

Preferences:

In addition to scoping options the following are available:

** object name is used to determine whether or not it is on the destination server **

</br></br> Options to export XML from the source server are also available.

</br></br>

Options for migrating object(s) (groups, policies, and configuration profiles) to a particular site can be set.

</br></br>

The number of concurrent API operations (from 1 to 5), sticky sessions (when available), forcing basic authentication, color scheme, number of log files to retain, and number of servers can be remembered.

</br></br> Migrated computers can show as managed by setting the management account.

</br></br> Set a password for following migrated service accounts; bind, ldap, file share Read/Write, and file share Read-only.

Note, the same password will be applied if you have multiple binds, or ldap servers, or file shares coonfigured.
</br></br> Migration Summary:

Information about successes/failures can be found in the log, located in

~/Library/Containers/com.jamf.jamf-migrator/Data/Library/Logs/jamf-migrator/<date>_<time>_migration.log

If you have used jamf-migrator and saved passwords you will see the following after launching a new version.

alt text

If you'd like the new version to access existing credentials select the desired option.

Important:

Note: the app can also be used to clear out a Jamf server. Typing the following after launching the app will set it into removal mode. Items from the destination server are deleted once Go is clicked.

touch ~/Library/Containers/com.jamf.jamf-migrator/Data/Library/Application\ Support/jamf-migrator/delete

Running from the command line

Help is available by running:

/path/to/jamf-migrator.app/Contents/MacOS/jamf-migrator -help

Running the following in Terminal will export all objects (full XML) that can be migrated:

/path/to/jamf-migrator.app/Contents/MacOS/jamf-migrator -source your.jamfPro.fqdn -export -objects allobjects

In the event you have multiple entries in the keychain for a server you'll need to specify which username to use. For example:

/path/to/jamf-migrator.app/Contents/MacOS/jamf-migrator  -source dev.jamfcloud.com -destination prod.jamfcloud.com -objects "categories,buildings" -migrate -sourceUser devadmin -destUser prodadmin

Before running an export via command line at least one export from the app must be manually run saving the source username and password or client ID and secret.<br>

To migrate object(s) using the command line, something like the following can be used:

/path/to/jamf-migrator.app/Contents/MacOS/jamf-migrator -source your.jamfPro.fqdn -destination dest.jamfPro.fqdn -objects categories,buildings -migrate

If importing files, the import folder must be selected in the UI before the command line can be successfully run.

To set an ldap id of 3 on jamf user accounts and force that id (also converts local accounts to ldap) use the following:

/path/to/jamf-migrator.app/Contents/MacOS/jamf-migrator -ldapid 3 -source /Users/admin/Desktop/export/raw -migrate -objects jamfusers

This can also be accomplished using the UI by launching jamf-migrator from Terminal:

/path/to/jamf-migrator.app/Contents/MacOS/jamf-migrator -ldapid 3

<br><br>

History

v7.4.2<br> Resolve authentication impacting command line usage (issue #100) and initial token generation (issue #101).

v7.4.1<br> Resolve issue with token renewal. Resolve issue when running from the command line. Resolve issue removing policies. Resolve issue migrating self service icons.

v7.4.0<br> Resolve scrolling issue with selective migrations. Better handling of computers/mobile devices with duplicate names. Minor layout changes. Ability to sort ascending or descending object list in selective migration.

v7.3.1<br> Work to resolve issue (#91), logging in with API clients. Add option to copy only items not on the destination server - create only. Add option to copy only items currently on both source and destination servers - update only. Add option to set the number of servers/folders saved.

v7.2.2<br> Fix version lookup with Jamf Pro 11, background threading issue.

v7.2.1<br> Fix issue logging into Jamf Pro 11, issue #91. Update token refresh method.

v7.2.0<br> Add support for API client in both the UI and command line.

v7.1.1<br> Prevent configuration profiles that include a Filevault payload from migrating. Fix export of smart comuter/device groups. Fix color mismatch (issue #88)

v7.1.0<br> Command line functionality. Note, -backup has been renamed -export and allows for specific types of objects to be exported. Exported scripts no longer have characters XML encoded. Expire tokens when quitting app.

v7.0.2<br> Make disclosure triangle more visible in light mode with default color scheme Fix counter when deleting items better handling of access to previously selected folders better handling of preferences as they are changed

v7.0.1<br> prevent sleep while migrating fix token refresh

v7.0.0<br> Redesigned UI. Add ability to show/hide username and password fields. Migrate locally created classes and delete any class. Add ability to force basic authentication.

v6.3.0<br> Add ability to utilize selective migration while using exported files as the source. Fix crash (issue #80) when Site is selected. Show text while icons are being uploaded for self service policies and iOS apps. Fix issue with selective migration of policies.

v6.2.7<br> Fix crash when running on a machine for the first time (#79). Invalidate tokens when switching servers and stop token refresh once migration competes. Better user experience when working with export options and the disable export only button.

v6.2.6<br> Fix issues #77 (self service display name) and #78 (crash when checking for updates)

v6.2.5<br> Better handling of package filename/display name lookups.

v6.2.4<br>

v6.2.2<br>

v6.2.1<br>

v6.2.0<br>

v6.0.1<br>

v5.9.3<br>

v5.9.2<br>

v5.9.1<br>

v5.9.0<br>

v5.8.3<br>

v5.8.2<br>

v5.8.0<br>

v5.7.0<br>

v5.6.2<br>

v5.6.0<br>

v5.4.0<br>

v5.3.2<br>

v5.3.1<br>

v5.2.9<br>

v5.2.8<br>

v5.2.7<br>

v5.2.5<br>

v5.2.3<br>

v5.2.2<br>

v5.2.1<br>

v5.2.0<br>

v5.1.0<br>

v5.0.3<br>

v5.0.1<br>

v5.0.0<br>

v4.1.3<br>

v4.1.2<br>

v4.1.0<br>

v4.0.0<br>

v3.3.5<br>

v3.3.4<br>

v3.3.3<br>

v3.3.2<br>

v3.3.0<br>

v3.2.2<br>

v3.2.0<br>

v3.1.0<br>

v3.0.6<br>

v3.0.5<br>

v3.0.0<br>

v2.8.0<br>

v2.7.2<br>

v2.6.3<br>

v2.6.2<br>

v2.6.0<br>

v2.2.5<br>

v2.1.5<br>

v2.1.4<br>

v2.1.3<br>

v2.1.0<br>

v2.0.0<br>

v1.2.1<br>

v1.2.0<br>

…/jamf-migrator.app/Contents/MacOS/jamf-migrator –debug