kc9wwh / macOSUpgrade

Workflow for doing in-place upgrades.
Other
418 stars 103 forks source link

Update Inventory #55

Closed mpermann closed 5 years ago

mpermann commented 6 years ago

The update inventory doesn't appear to be working for me in the workflow. Is anyone else having issues with the jamf recon not running for them?

Hacksore commented 6 years ago

In my experience with this it could be related to the system trying to fire the recon before it has network access. I've added a sleep of 30 seconds before the recon so that there is sufficient time for the device to connect.

Do you think that could be happening in your environment?

kc9wwh commented 6 years ago

If its network that is causing it, I can look at adding something like this into that script...

checkJSSConnection() {
    /usr/local/bin/jamf checkJSSConnection >> /dev/null
    while [ "$?" != "0" ]; do
        /bin/echo "Connection to Jamf Pro - Not Available"
        /bin/echo "    Waiting 30 seconds and trying again..."
        sleep 30
        /usr/local/bin/jamf checkJSSConnection >> /dev/null
    done
    /bin/echo "Connection to Jamf Pro - Successful"
}

Once available, I can then trigger the jamf recon.

mpermann commented 6 years ago

This sounds good. Thanks for your willingness to add this and I look forward to testing it.

kenchan0130 commented 5 years ago

@kc9wwh Is this issue solved by this?

https://github.com/kc9wwh/macOSUpgrade/blob/1cfafc68a27b616cf6e5177249a77c59a95ad1cc/macOSUpgrade.sh#L286

kenchan0130 commented 5 years ago

Close because it is probably resolved. If you still have problems, please reopen.