Posted on β07-09-2019 07:25 AM
I don't use the cli tools often, and when trying to check something today, I'm being prompted for the configuration password but none of my documented passwords are being accepted.
Is there a quick and simple way to delete the cli configuration and set a new password? I believe the only thing I had set was a scheduled backup, which appears to have not been running correctly, so attempting to get in there to check it but unable to do so at the moment.
Posted on β07-09-2019 11:32 AM
$ jamf-pro config encrypt forgot-password
Is what you are looking for.
This can happen on older versions of the CLI tools incorrectly calculating the key if none where set. You may want to also try upgrading to the latest using the package managers as described in Using the Jamf Pro Server Tools Command-Line Interface
Posted on β07-15-2019 02:36 PM
Just wanted to say a belated "thank you" @brandon.roehl . Finally got some time to get back to it, and worked like a charm.
Posted on β02-24-2022 11:41 AM
I ran into a situation in which resetting the password would work until the following time you launched server-tools.jar. Not sure what the cause was, but have seen it happen during upgrade--very annoying. I contacted support about it and was given this info, which really fixes it for me:
If you want create a new configuration password you'll need to delete the yaml.tool file otherwise it not work.
( https://docs.jamf.com/technical-articles/Configuring_the_CLI.html )
On Windows, the configuration file is stored in the following locations:
User-based location (default): %LOCALAPPDATA%\Jamf\tools.yaml A typical path is: C:\Users\<username>\AppData\Local\Jamf\tools.yaml
Global location (optional): %ProgramData%\Jamf\tools.yaml A typical path is: C:\ProgramData\Jamf\tools.yaml
Delete that file, re-enter the server info, and never worry about it again.
Posted on β10-07-2022 03:06 AM
Hi there,
Do I run this command and then delete the tools.yaml file? i am on a windows system, does the same command apply to that? if so do i change the path to any directory? I'm also trying to get into the CLI but unable to without the config pwd.
$ jamf-pro config encrypt forgot-password