Posted on 07-30-2012 08:10 AM
As most of you know, the MacBook Pro's and Air's dont use a CMOS battery, so the system clock relies on the battery to be fully charged. We have been seeing in our organization where the users lets their battery drain down and then of course the system clock resets itself.
Since we manage the time thru JAMF Preferences, the user is stuck. The machine no longer communicates of course with the JSS, so the user is in a stuck state.
Our only resolution has been to remove the machine's JAMF framework and running commands to remove the managed preferences. We know dont set any time/manage any time settings but we are seeing the issue reoccur still.
Has anyone else run into this time issue and have a better fix?
Posted on 07-30-2012 08:29 AM
we have this problem too, we ssh into the box and manually reset the box.
Posted on 07-30-2012 08:41 AM
I occasionally have to reset time as well on some machines. This works well via ARD or SSH and because we use our own time server:
systemsetup -setusingnetworktime off
systemsetup -setusingnetworktime on
Posted on 07-30-2012 09:30 AM
we have this issue too. I normally just SSH into the box and reset it, but it becomes an issue when the user is a remote user, because someimes they can't get onto the VPN at that point...
Posted on 07-30-2013 09:05 AM
I snuck a "Reset Clock" policy in our Help section of Self Service. The policy actually sets the time zone to our default (Central), configures the system to use Apple's time clock, then enables location services and then resets the clock based on the timezone if detected.
I can run it via remote or have the users run it on their own.
I don't remember where I found this script, but it's handy at any rate.
#!/bin/sh
# Use "/usr/sbin/systemsetup -listtimezones" to see a list of available list time zones.
TimeZone="America/Chicago"
TimeServer="time.apple.com"
############# Pause for network services #############
/bin/sleep 10
#################################################
/usr/sbin/systemsetup -setusingnetworktime off
#Set an initial time zone
/usr/sbin/systemsetup -settimezone $TimeZone
#Set specific time server
/usr/sbin/systemsetup -setnetworktimeserver $TimeServer
# enable location services
/bin/launchctl unload /System/Library/LaunchDaemons/com.apple.locationd.plist
uuid=`/usr/sbin/system_profiler SPHardwareDataType | grep "Hardware UUID" | cut -c22-57`
/usr/bin/defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd.$uuid LocationServicesEnabled -int 1
/usr/sbin/chown -R _locationd:_locationd /var/db/locationd
/bin/launchctl load /System/Library/LaunchDaemons/com.apple.locationd.plist
# set time zone automatically using current location
/usr/bin/defaults write /Library/Preferences/com.apple.timezone.auto Active -bool true
/usr/sbin/systemsetup -setusingnetworktime on
/usr/sbin/systemsetup -gettimezone
/usr/sbin/systemsetup -getnetworktimeserver
exit 0