agape_logos

Q: Send email alert when iPads are plugged in?

Can OSX be configured to send out an email alert when an iPad is plugged in?

 

I want to receive an email alert when iPads are connected to the Mac so I can remote log-in and run updates on the iPads.

Mac mini, OS X Yosemite (10.10.5)

Posted on Feb 11, 2016 1:17 PM

Close

Q: Send email alert when iPads are plugged in?

  • All replies
  • Helpful answers

  • by rccharles,

    rccharles rccharles Feb 11, 2016 3:53 PM in response to agape_logos
    Level 6 (8,486 points)
    Classic Mac OS
    Feb 11, 2016 3:53 PM in response to agape_logos

    Could write an Applescript app called iTunes that sends you an email then invokes the real itunes.  This is a concept.  Don't know if you can get the real iTunes to work.

     

    ---------------------------

     

    The real way of doing updates is to get an mdm that supports wireless updates.

     

    MDM  -- Mobile Device Management

     

    MDMs

    Airwatch, Meraki, MobileIron, Profile Manager on OS X Server, or Zenprise

     

    For a comparison see this page:

    http://www.enterpriseios.com/wiki/Comparison_MDM_Providers

     

    Airwatch

       http://www.air-watch.com/

     

    Apple Configurator and Apple Profile Manager

     

    "Apple Configurator makes it easy for anyone to mass configure and deploy iPhone, iPad, and iPod touch in a school, business, or institution."  Limited to Macs.  Connects via USB cable.
    http://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12

      "Profile Manager lets you configure OS X and iOS devices so they�re set up to use your company or school resources and have the settings, apps, and books your organization requires. Profile Manager creates settings and preference bundles for devices and deploys them to devices via the Mobile Device Management (MDM) service."  Requires OS X server.
    http://www.apple.com/uk/support/osxserver/profilemanager/

    GroundControl is an alternative to Apple Configurator. "Enterprise-scale iOS provisioning, update, supervision, intelligent policies...all in the cloud."

        https://www.groundctl.com/

     

    Meraki -- A free MDM   [ expect lots of email and phone calls about upgrades ]

       Read the product overview.  Click on "get started now" to sign up.

         https://meraki.cisco.com/products/systems-manager/?ref=YZRzCR

       Video's on how to setup and use Meraki.

         https://meraki.cisco.com/blog/2012/08/how-to-get-the-most-from-meraki-systems-ma nager/

     

    MobileIron

       http://www.mobileiron.com/

     

    Zenprise

       http://www.zenprise.com/

  • by rccharles,Helpful

    rccharles rccharles Feb 12, 2016 12:06 PM in response to rccharles
    Level 6 (8,486 points)
    Classic Mac OS
    Feb 12, 2016 12:06 PM in response to rccharles

    Standard unix lets you monitor the console log.  Could write an app to monitor the console log.  Send email when "right" message is found.

     

    Here is what I saw in log when I plugged in my iPhone 4 7.1.2 into my mac mini running yosemite.

     

    2/11/16 6:57:51.776 PM Console[6801]:  Marker - Feb 11, 2016, 6:57:51 PM
    2/11/16 6:58:27.718 PM iTunes[6810]: Entered:_AMMuxedVersion2DeviceConnected, mux-device:2
    2/11/16 6:58:27.725 PM iTunes[6810]: tid:1803 - unable to query device capabilities
    2/11/16 6:58:27.993 PM storedownloadd[1254]: DownloadServiceDelegate: Accepting new connection <NSXPCConnection: 0x7fd461d10780> connection from pid 6810 with interface <DownloadServiceInterface: 0x7fd461d25530> (PID 6810)
    2/11/16 6:58:27.998 PM iTunes[6810]: ApplePushService: APSConnection being used without a delegate queue
    2/11/16 6:58:28.547 PM com.apple.usbmuxd[83]: LOCKDOWN_V2_BONJOUR_SERVICE_NAME is _apple-mobdev2._tcp,98640820
    2/11/16 6:58:31.010 PM com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
    2/11/16 6:58:31.418 PM Photos[6813]: Using FaceCore  version: 3.9.10
    2/11/16 6:58:31.598 PM com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.domain.pid.MediaLibraryService.6815) Path not allowed in target domain: type = pid, path = /Library/Frameworks/iTunesLibrary.framework/Versions/A/XPCServices/com.apple.iTunesLibraryService.xpc error = 147: The specified service did not ship in the requestor's bundle, origin = /System/Library/Frameworks/MediaLibrary.framework/Versions/A/XPCServices/com.apple.MediaLibraryService.xpc
    2/11/16 6:58:31.600 PM com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.domain.pid.MediaLibraryService.6815) Path not allowed in target domain: type = pid, path = /Library/Frameworks/iTunesLibrary.framework/Versions/A/XPCServices/com.apple.iTunesLibraryService.xpc error = 147: The specified service did not ship in the requestor's bundle, origin = /System/Library/Frameworks/MediaLibrary.framework/Versions/A/XPCServices/com.apple.MediaLibraryService.xpc
    2/11/16 6:58:31.714 PM cloudphotosd[1263]: New connection request from 6813
    2/11/16 6:58:31.818 PM com.apple.SecurityServer[84]: Session 100067 created
    2/11/16 6:58:31.891 PM Photos[6813]: Received changes notification alert: <LiModelChangeGroup: 0x608000a6ce40>  alert flags : Replay Complete
    2/11/16 6:58:31.946 PM com.apple.SecurityServer[84]: Session 100068 created
    2/11/16 6:58:31.946 PM com.apple.SecurityServer[84]: Killing auth hosts
    2/11/16 6:58:31.946 PM com.apple.SecurityServer[84]: Session 100064 destroyed
    2/11/16 6:58:32.784 PM com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.domain.pid.MediaLibraryService.6817) Path not allowed in target domain: type = pid, path = /Library/Frameworks/iTunesLibrary.framework/Versions/A/XPCServices/com.apple.iTunesLibraryService.xpc error = 147: The specified service did not ship in the requestor's bundle, origin = /System/Library/Frameworks/MediaLibrary.framework/Versions/A/XPCServices/com.apple.MediaLibraryService.xpc
    2/11/16 6:58:32.785 PM com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.domain.pid.MediaLibraryService.6817) Path not allowed in target domain: type = pid, path = /Library/Frameworks/iTunesLibrary.framework/Versions/A/XPCServices/com.apple.iTunesLibraryService.xpc error = 147: The specified service did not ship in the requestor's bundle, origin = /System/Library/Frameworks/MediaLibrary.framework/Versions/A/XPCServices/com.apple.MediaLibraryService.xpc
    2/11/16 6:58:32.900 PM com.apple.SecurityServer[84]: Session 100069 created
    
    
  • by agape_logos,Solvedanswer

    agape_logos agape_logos Feb 12, 2016 12:08 PM in response to rccharles
    Level 1 (0 points)
    Feb 12, 2016 12:08 PM in response to rccharles

    Thank you for the responses.  I ended up creating a cron job that ran every minute to check for new iPads plugged in.  I won't paste the entire code but in a nutshell I get the number of iPads plugged in with the following then send an email if the number has changed since the last check.

     

    ioreg -p IOUSB | grep -q iPad | wc -l | awk '{print $1}'

  • by agape_logos,

    agape_logos agape_logos Feb 12, 2016 3:27 PM in response to agape_logos
    Level 1 (0 points)
    Feb 12, 2016 3:27 PM in response to agape_logos

    Typo on grep

     

    ioreg -p IOUSB | grep iPad | wc -l | awk '{print $1}'