Posted on 11-06-2015 05:07 AM
I am new to using JSS and am trying to configure my first update but it does not seem to be working. Here is what I have done so far:
Created Smart Group to find all systems without Flash or at a lower version-
Created a Policy which should install flash player on logout one time and then run a disable Flash Player Update script to the 7 computers found in my smart group-
Upon logon on the machines listed in the smart group, flash is not installed. In the management history for the specific computers I am not getting any fail error or even an attempt at applying the policy it appears. Can anyone help me with this?
Posted on 11-06-2015 05:16 AM
Hi @rharrington ,
Can you check "Check for policies triggered by login or logout" is checked in "Management Settings ---> Computer Management ---> Check-In ---> Login/Logout Hooks (Tab)
Posted on 11-06-2015 05:25 AM
Yes, that is checked off.
Posted on 11-06-2015 05:49 AM
On one of the affected computers, run
sudo jamf policy -event login
and see what happens. if it says no policies were found for the "login" trigger, then maybe check the Logs for that policy to see if it shows as a failure.
Posted on 11-06-2015 06:25 AM
This is what I get in the logs:
Executing Policy Update - Flash Player - 19.0.0.226...
Mounting JSS to /Volumes/CasperShare...
Verifying package integrity...
Installing Adobe Flash Player - 19.0.0.226...
Error: An error occurred attempting to mount the package "Adobe Flash Player - 19.0.0.226".
So I obviously have an issue there, but why would it not even try to install until I ran "sudo jamf policy -event login"
Posted on 11-06-2015 06:37 AM
Since you have the policy set for Once per computer AND it did fail once, the JSS doesn't let it try again until you purge the failure from the log.
As for why the packaged failed, you might want to make sure you're using the System Administrator package from https://www.adobe.com/products/flashplayer/distribution3.html
Posted on 11-06-2015 06:52 AM
Just to take a step back here. You can deploy Flash at any point. It doesn't need to be at log in or log out. The users will need to restart their web browsers for it to start using the new plug-in, but that's about it. Hopefully that will help you rethink the policy you've set up.
Also, be sure to signup for the system admin version of Flash here: https://www.adobe.com/products/players/flash-player-distribution.html
It's quick, simple, and free.
Posted on 11-06-2015 06:53 AM
Turns out I uploaded the DMG not the pkg, total user error...and yes I am using the system admin version.
But, on another note, the policy will only work and install when I run the command "sudo jamf policy -event login", on one specific machine, all others install during login as expected. On this specific machine the policy window in the lower right hand corner does not show up upon login or out. Any ideas?
Posted on 11-06-2015 06:57 AM
@rharrington it sounds like the jamf framework might be messed up. I would try running:
jamf manage
And then see if the machine picks up the login policies.
Posted on 11-06-2015 07:02 AM
This is what I get:
Getting management framework from the JSS...
Enforcing management framework...
Checking availability of https://blahblahblah...
The JSS is available.
Enforcing login/logout hooks...
Enforcing scheduled tasks...
Creating launch daemon...
Creating launch agent...
Checking availability of https://blahblahblah...
The JSS is available.
Posted on 11-06-2015 07:09 AM
@rharrington and afterwards are you able to get Flash to install on that machine? Is the log file even showing that the policy was attempted on that machine?
Posted on 11-06-2015 07:19 AM
No, its not showing as even trying even though it is in the smart group. It is just one machine that this is happening on, the rest are working fine now.
Posted on 11-06-2015 07:28 AM
@rharrington if you peek into /var/log/jamf.log do you see any errors in there? Does it appear that the machine is trying to install?
What is the output of jamf policy -event login
Posted on 11-06-2015 07:35 AM
It finds and installs the package fine if I run that command but not if I just login/out, it appears to not check for policy updates when I log in/out on this machine.
Checking for policies triggered by "login"...
Executing Policy Update - Flash Player - 19.0.0.226...
Mounting JSS to /Volumes/CasperShare...
Verifying package integrity...
Copying Adobe Flash Player - 19.0.0.226...
Installing Adobe Flash Player - 19.0.0.226...
Successfully installed Adobe Flash Player - 19.0.0.226.
Running script Configure Adobe Flash to not update...
Script exit code: 0
Script result:
Submitting log to https://jhgjmgh
Unmounting file server...
Posted on 11-06-2015 10:49 AM
Perhaps this is a silly question but, can you verify that the computer is connected to the network upon login? I tend not to use login/logout hooks due to the fact that it kills the users expectation of being able to login or logout quickly. However, if you're logging in and the unit is using 802.1x wireless bound to the user, they will not have an internet connection right away. That said, you may just respond back telling me that they're hard wired or such. Personally, I just use the "recurring check in" as they seems to get in the users way the least.
Posted on 11-06-2015 10:57 AM
Yes, all computers are using wired connections.
Posted on 11-06-2015 11:02 AM
It's still not clear why you need to install this during login.....
Posted on 11-06-2015 11:07 AM
@bpavlov Is "Adobe" a reason?
Posted on 11-06-2015 11:14 AM
@Chris_Hafner No it's not. Flash will install fine without a user logged in. It's actually one of their better installers.
Posted on 11-06-2015 11:50 AM
I know, I know. However, we still have to log the users in in our case, as they are not online until the user is.
Posted on 11-06-2015 11:52 AM
I agree with everyone saying to make this a recurring trigger policy, not a login one. I don't see the logic in making it a login policy, which is less likely to occur in a timely fashion.
If the goal is to mitigate risk and the update can be installed silently at any time, run it ASAP.
Posted on 11-06-2015 11:54 AM
Yep. We actually run two policies. One that's silent and based on the recurring check in, and another that is manual via self-service. It surprises me how many people are only online for a few moments and don't end up with the automated policy. In either case they are based off the same Smart group and will eventually lead to the proper installation of flash.
Posted on 11-06-2015 11:56 AM
Yep, there's just no good reason I can think of to push a Flash Player update as a login trigger. Flash is not one of those items that will stop or kill something running if applications are open. The worst case is that the old code may remain in memory until browsers are restarted. For that, you could have your policy send up a notice at the end that Flash Player was just updated and to quit Safari or whatever. In short, drop the login trigger and set it to Recurring and many of your troubles will likely go away.