Automated configuration of clients
The following commands can be used to:
Update the license key on the client
defaults write ~/Library/Preferences/com.j2anywhere.addressBookClient LicenseKey ABC-ABC-ABC-ABC
Switch to Complete mode. Other options are Auto
defaults write ~/Library/Preferences/com.j2anywhere.addressBookClient SyncMode Complete
The following command can be used to change the host address of the server to which the client connects. If you change the address you have to be certain you are not switching between different server, as this will destroy the sync sequence. You can use this command to switch between the external and internal address of the same server for example, or use it after transferring the server onto a new computer.
defaults write ~/Library/Preferences/com.j2anywhere.addressBookClient HostName http://IP-ADDRESS:8080/AddressBookService
Change the sync interval on the client. After making a change to the sync schedule you need to reload the configuration using the next two commands
defaults write ~/Library/LaunchAgents/com.addressbookserver.client.tool StartInterval 1800
Disable sync schedule
launchctl unload -S AQUA ~/Library/LaunchAgents/com.addressbookserver.client.tool.plist
Enable sync schedule
launchctl load -S AQUA ~/Library/LaunchAgents/com.addressbookserver.client.tool.plist
Change to Sync Manual on Demand rather then Auto on Change. If you want to switch to manual mode you also need to disable and re-register the client using the appropriate command for the mode.
defaults write ~/Library/Preferences/com.j2anywhere.addressBookClient SyncType ManualSyncOnDemand
Disable the client
/Library/Application\ Support/AddressBookClient/UnregisterAddressBookClient
Enable client in Manual on Demand mode. The client will sync as per sync schedule or on demand
/Library/Application\ Support/AddressBookClient/RegisterAddressBookClientInManual
Enable the client in Automatic Mode which syncs as and when changes are mode to either Address Book or iCal as well as per sync schedule or on demand
/Library/Application\ Support/AddressBookClient/RegisterAddressBookClient
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)