Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Commit

Permalink
iOS 9 GM, 9.1 Beta, New devices
Browse files Browse the repository at this point in the history
New Devices:

Apple TV 2015
iPad Mini 4th Generation
iPhone 6S
iPhone 6S Plus
iPod 6th Generation (missed this one)
  • Loading branch information
erikng committed Sep 16, 2015
1 parent 435adce commit 17903d2
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions Cacher
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This script will process Caching Server Debug Logs and e-mail the information to relevant parties
# through the use of Apple's Server Alert mechanism.
## Written by Erik Gomez with help from Google Search.
## Last Modified 09/09/2015
## Last Modified 09/16/2015

## Variables
loglocation=/Library/Server/Caching/Logs
Expand Down Expand Up @@ -159,6 +159,8 @@ egrep -o "(8.4.1)" "${tmplocation}"/Total_iOS.txt > "${tmplocation}"/iOS_8.4.1.t
### iOS 9
## Look for only "9.0" and output
egrep --only-matching -E ''9'\.(0)$' "${tmplocation}"/Total_iOS.txt > "${tmplocation}"/iOS_9.0.txt
## Look for only "9.1" and output
egrep --only-matching -E ''9'\.(1)$' "${tmplocation}"/Total_iOS.txt > "${tmplocation}"/iOS_9.1.txt

## Use wc to count the lines from each file to give you a reasonable estimate of total numbers.
### iOS 8
Expand All @@ -175,6 +177,7 @@ totalios840number=`wc -l "${tmplocation}"/iOS_8.4.txt | awk '{print $1}'`
totalios841number=`wc -l "${tmplocation}"/iOS_8.4.1.txt | awk '{print $1}'`
### iOS 9
totalios900number=`wc -l "${tmplocation}"/iOS_9.0.txt | awk '{print $1}'`
totalios910number=`wc -l "${tmplocation}"/iOS_9.1.txt | awk '{print $1}'`

## Anything containing the phrase "%model" means it is model type related. Read the merged log and output to new file
egrep -o "(\s(model\S+))" "${tmplocation}"/URL_Log-"${yesterday}".log | cut -d " " -f 2 > "${tmplocation}"/Total_models.txt
Expand All @@ -200,6 +203,8 @@ totalipodnumber=`wc -l "${tmplocation}"/Total_iPod.txt | awk '{print $1}'`
totalappletv31=`egrep -o "(AppleTV3,1)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`
## Look for "AppleTV3,2" and output
totalappletv32=`egrep -o "(AppleTV3,2)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`
## Look for "AppleTV5,3" and output
totalappletv53=`egrep -o "(AppleTV5,3)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`

## Device Identifiers iPhone (Only 3,1 and higher can run iOS 8)
## Look for "iPhone3,1" and output
Expand All @@ -222,6 +227,10 @@ totaliphone62=`egrep -o "(iPhone6,2)" "${tmplocation}"/Total_models.txt | wc -l
totaliphone72=`egrep -o "(iPhone7,2)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`
## Look for "iPhone7,1" and output
totaliphone71=`egrep -o "(iPhone7,1)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`
## Look for "iPhone8,1" and output
totaliphone81=`egrep -o "(iPhone8,1)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`
## Look for "iPhone8,2" and output
totaliphone82=`egrep -o "(iPhone8,2)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`

## Device Identifiers iPad (Only 2,1 and higher can run iOS 8)
## Look for "iPad2,1" and output
Expand Down Expand Up @@ -265,6 +274,10 @@ totalipad47=`egrep -o "(iPad4,7)" "${tmplocation}"/Total_models.txt | wc -l | aw
## Look for "iPad4,8" and output
totalipad48=`egrep -o "(iPad4,8)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`

## Look for "iPad5,1" and output
totalipad51=`egrep -o "(iPad5,1)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`
## Look for "iPad5,2" and output
totalipad52=`egrep -o "(iPad5,2)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`
## Look for "iPad5,3" and output
totalipad53=`egrep -o "(iPad5,3)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`
## Look for "iPad5,4" and output
Expand All @@ -273,6 +286,8 @@ totalipad54=`egrep -o "(iPad5,4)" "${tmplocation}"/Total_models.txt | wc -l | aw
## Device Identifiers iPod (Only 5,1 and higher can run iOS 8)
## Look for "iPod5,1" and output
totalipod51=`egrep -o "(iPod5,1)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`
## Look for "iPod5,1" and output
totalipod71=`egrep -o "(iPod7,1)" "${tmplocation}"/Total_models.txt | wc -l | awk '{print $1}'`

## Output data.
echo A total of $totaliosnumber iOS devices hit the Caching Server yesterday consisting of:
Expand All @@ -286,12 +301,14 @@ echo " $totalios820number iOS 8.2 Devices"
echo " $totalios830number iOS 8.3 Devices"
echo " $totalios840number iOS 8.4 Devices"
echo " $totalios841number iOS 8.4.1 Devices"
echo " $totalios900number iOS 9.0 [Currently in Beta] Devices"
echo " $totalios900number iOS 9.0 Devices"
echo " $totalios910number iOS 9.1 Devices [Currently in Beta]"
echo
echo Of these devices, here is the model breakdown:
echo " $totalappletvnumber Total AppleTVs"
echo " $totalappletv31 3rd Generation Apple TVs"
echo " $totalappletv32 4th Generation Apple TVs"
echo " $totalappletv53 5th Generation Apple TVs"
echo " $totaliphonenumber Total iPhones"
echo " $totaliphone31 iPhone 4 [GSM]"
echo " $totaliphone33 iPhone 4 [CDMA]"
Expand All @@ -303,6 +320,8 @@ echo " $totaliphone61 iPhone 5S"
echo " $totaliphone62 iPhone 5S [China Model]"
echo " $totaliphone72 iPhone 6"
echo " $totaliphone71 iPhone 6 Plus"
echo " $totaliphone81 iPhone 6S"
echo " $totaliphone82 iPhone 6S Plus"
echo " $totalipadnumber Total iPads"
echo " $totalipad21 iPad 2nd Generation [Wifi]"
echo " $totalipad22 iPad 2nd Generation [Wifi + GSM]"
Expand All @@ -325,8 +344,11 @@ echo " $totalipad44 iPad Mini 2nd Generation [Wifi]"
echo " $totalipad45 iPad Mini 2nd Generation [Wifi + Cellular]"
echo " $totalipad47 iPad Mini 3rd Generation [Wifi]"
echo " $totalipad48 iPad Mini 3rd Generation [Wifi + Cellular]"
echo " $totalipad51 iPad Mini 4th Generation [Wifi]"
echo " $totalipad52 iPad Mini 4th Generation [Wifi + Cellular]"
echo " $totalipodnumber Total iPods"
echo " $totalipod51 iPod Touch 5th Generation"
echo " $totalipod71 iPod Touch 6th Generation"
echo


Expand Down Expand Up @@ -368,7 +390,7 @@ echo " $total10102number OS X Yosemite 10.10.2 Devices"
echo " $total10103number OS X Yosemite 10.10.3 Devices"
echo " $total10104number OS X Yosemite 10.10.4 Devices"
echo " $total10105number OS X Yosemite 10.10.5 Devices"
echo " $total10110number OS X El Capitan 10.11.0 [Currently In Beta] Devices"
echo " $total10110number OS X El Capitan 10.11.0 Devices [Currently In Beta]"
echo


Expand Down Expand Up @@ -477,12 +499,14 @@ echo "   $totalios820number iOS 8.2 Devices" >> "${tmplocation}"/Alert
echo "   $totalios830number iOS 8.3 Devices" >> "${tmplocation}"/AlertInfo.txt
echo "   $totalios840number iOS 8.4 Devices" >> "${tmplocation}"/AlertInfo.txt
echo "   $totalios841number iOS 8.4.1 Devices" >> "${tmplocation}"/AlertInfo.txt
echo "   $totalios900number iOS 9.0 [Currently In Beta] Devices" >> "${tmplocation}"/AlertInfo.txt
echo "   $totalios900number iOS 9.0 Devices" >> "${tmplocation}"/AlertInfo.txt
echo "   $totalios910number iOS 9.1 Devices [Currently In Beta]" >> "${tmplocation}"/AlertInfo.txt
echo " " >> "${tmplocation}"/AlertInfo.txt
echo "Of these devices, here is the model breakdown:" >> "${tmplocation}"/AlertInfo.txt
echo "   $totalappletvnumber Total AppleTVs" >> "${tmplocation}"/AlertInfo.txt
echo "     $totalappletv31 3rd Generation Apple TVs" >> "${tmplocation}"/AlertInfo.txt
echo "     $totalappletv32 4th Generation Apple TVs" >> "${tmplocation}"/AlertInfo.txt
echo "     $totalappletv53 5th Generation Apple TVs" >> "${tmplocation}"/AlertInfo.txt
echo "   $totaliphonenumber Total iPhones" >> "${tmplocation}"/AlertInfo.txt
echo "     $totaliphone31 iPhone 4 [GSM]" >> "${tmplocation}"/AlertInfo.txt
echo "     $totaliphone33 iPhone 4 [CDMA]" >> "${tmplocation}"/AlertInfo.txt
Expand All @@ -494,6 +518,8 @@ echo "     $totaliphone61 iPhone 5S" >> "${tmplocation}"/Ale
echo "     $totaliphone62 iPhone 5S [China Model]" >> "${tmplocation}"/AlertInfo.txt
echo "     $totaliphone72 iPhone 6" >> "${tmplocation}"/AlertInfo.txt
echo "     $totaliphone71 iPhone 6 Plus" >> "${tmplocation}"/AlertInfo.txt
echo "     $totaliphone81 iPhone 6S" >> "${tmplocation}"/AlertInfo.txt
echo "     $totaliphone82 iPhone 6S Plus" >> "${tmplocation}"/AlertInfo.txt
echo "   $totalipadnumber Total iPads" >> "${tmplocation}"/AlertInfo.txt
echo "     $totalipad21 iPad 2nd Generation [Wifi]" >> "${tmplocation}"/AlertInfo.txt
echo "     $totalipad22 iPad 2nd Generation [Wifi + GSM]" >> "${tmplocation}"/AlertInfo.txt
Expand All @@ -516,16 +542,19 @@ echo "     $totalipad44 iPad Mini 2nd Generation [Wifi]" >>
echo "     $totalipad45 iPad Mini 2nd Generation [Wifi + Cellular]" >> "${tmplocation}"/AlertInfo.txt
echo "     $totalipad47 iPad Mini 3rd Generation [Wifi]" >> "${tmplocation}"/AlertInfo.txt
echo "     $totalipad48 iPad Mini 3rd Generation [Wifi + Cellular]" >> "${tmplocation}"/AlertInfo.txt
echo "     $totalipad51 iPad Mini 4th Generation [Wifi]" >> "${tmplocation}"/AlertInfo.txt
echo "     $totalipad52 iPad Mini 4th Generation [Wifi + Cellular]" >> "${tmplocation}"/AlertInfo.txt
echo "   $totalipodnumber Total iPods" >> "${tmplocation}"/AlertInfo.txt
echo "     $totalipod51 iPod Touch 5th Generation" >> "${tmplocation}"/AlertInfo.txt
echo "     $totalipod71 iPod Touch 6th Generation" >> "${tmplocation}"/AlertInfo.txt
echo " " >> "${tmplocation}"/AlertInfo.txt
echo "A total of $totalosxnumber OS X devices hit the Caching Server yesterday consisting of:" >> "${tmplocation}"/AlertInfo.txt
echo "   $total10100number OS X Yosemite 10.10.0/10.10.1 Devices [Cannot distinguish between builds]" >> "${tmplocation}"/AlertInfo.txt
echo "   $total10102number OS X Yosemite 10.10.2 Devices" >> "${tmplocation}"/AlertInfo.txt
echo "   $total10103number OS X Yosemite 10.10.3 Devices" >> "${tmplocation}"/AlertInfo.txt
echo "   $total10104number OS X Yosemite 10.10.4 Devices" >> "${tmplocation}"/AlertInfo.txt
echo "   $total10105number OS X Yosemite 10.10.5 Devices" >> "${tmplocation}"/AlertInfo.txt
echo "   $total10110number OS X El Capitan 10.11.0 [Currently In Beta] Devices" >> "${tmplocation}"/AlertInfo.txt
echo "   $total10110number OS X El Capitan 10.11.0 Devices [Currently In Beta] " >> "${tmplocation}"/AlertInfo.txt
echo " " >> "${tmplocation}"/AlertInfo.txt
echo "A total of $totalurlnumber files were downloaded from the Caching Server yesterday consisting of:" >> "${tmplocation}"/AlertInfo.txt
echo "   $totalepubnumber Books" >> "${tmplocation}"/AlertInfo.txt
Expand Down

0 comments on commit 17903d2

Please sign in to comment.