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

Errors when nothing was served yesterday #5

@fraserhess

Description

@fraserhess

I get the following errors if nothing was served yesterday, on say a Sunday.

(standard_in) 2: parse error
(standard_in) 2: parse error
(standard_in) 2: parse error
(standard_in) 2: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error
(standard_in) 1: parse error

Seems to be related to what is passed to bc:

sudo bash -x ./Cacher

  • loglocation=/Library/Server/Caching/Logs
  • tmplocation=/tmp/CacheLogs
    ++ date -j -v-1d +%Y.%m.%d
  • yesterday=2015.06.28
  • mkdir -p /tmp/CacheLogs
  • cd /Library/Server/Caching/Logs
  • for i in '*.bz2'
  • bzip2 -d '*.bz2'
    bzip2: Can't open input file *.bz2: No such file or directory.
  • grep -E '^s*2015.06.28' ./AssetCache.pid ./Debug-2015.06.23-15:20.log ./Debug-2015.06.24-15:36.log ./Debug-2015.06.25-15:49.log ./Debug-2015.06.26-16:11.log ./Debug-2015.06.27-16:56.log ./Debug.log ./LastState.plist
  • sed /Registering/d /tmp/CacheLogs/MergedLog-2015.06.28.log
  • sed /public/d
  • sed /registration/d
  • sed /peers/d
  • sed /Opened/d
  • sed /ECResponse/d
  • sed /ECAssetHandler/d
  • sed /ECAssetRequestor/d
  • sed /ECCacheReader/d
  • sed /ECCacheManager/d
  • sed /Bad/d
  • sed -n -e 's/^.*Request //p'
  • sed -n -e 's/^.*from //p'
  • sort
  • awk '!x[$1]++' FS=:
  • sed -n -e 's/^.*start: //p ' /tmp/CacheLogs/MergedLog-2015.06.28.log
  • grep -q MB /tmp/CacheLogs/Bandwidth_served.txt
  • head -n1
  • tr -d '()'
  • tail -n1
  • tr -d '()'
    ++ grep '' /tmp/CacheLogs/Bandwidth_First.txt
    ++ awk '{print $1}'
  • bwclient1=
    ++ grep '' /tmp/CacheLogs/Bandwidth_First.txt
    ++ awk '{print $6}'
  • bwserver1=
    ++ grep '' /tmp/CacheLogs/Bandwidth_First.txt
    ++ awk '{print $11}'
  • bworigin1=
    ++ grep '' /tmp/CacheLogs/Bandwidth_First.txt
    ++ awk '{print $15}'
  • bwpeer1=
    ++ grep '' /tmp/CacheLogs/Bandwidth_Last.txt
    ++ awk '{print $1}'
  • bwclient2=
    ++ grep '' /tmp/CacheLogs/Bandwidth_Last.txt
    ++ awk '{print $6}'
  • bwserver2=
    ++ grep '' /tmp/CacheLogs/Bandwidth_Last.txt
    ++ awk '{print $11}'
  • bworigin2=
    ++ grep '' /tmp/CacheLogs/Bandwidth_Last.txt
    ++ awk '{print $15}'
  • bwpeer2=
    ++ echo -
    ++ bc
    (standard_in) 2: parse error
  • clientbw1=
    ++ echo -
    ++ bc
    (standard_in) 2: parse error
  • requestedbw1=
    ++ echo -
    ++ bc
    (standard_in) 2: parse error
  • applebw1=
    ++ echo -
    ++ bc
    (standard_in) 2: parse error
  • peerbw1=
    ++ echo '*1024-'
    ++ bc
    ++ awk '{print "scale=2;"$1"/1024"}'
    ++ bc
    (standard_in) 1: parse error
  • clientbw2=
    ++ echo '*1024-'
    ++ bc
    ++ awk '{print "scale=2;"$1"/1024"}'
    ++ bc
    (standard_in) 1: parse error
  • requestedbw2=
    ++ echo '*1024-'
    ++ bc
    ++ awk '{print "scale=2;"$1"/1024"}'
    ++ bc
    (standard_in) 1: parse error
  • applebw2=
    ++ echo '*1024-'
    ++ bc
    ++ awk '{print "scale=2;"$1"/1024"}'
    ++ bc
    (standard_in) 1: parse error
  • peerbw2=
    ++ echo /1024-
    ++ bc
    ++ awk '{print "scale=2;"$1"/1024"}'
    ++ bc
    (standard_in) 1: parse error
  • clientbw3=
    ++ echo /1024-
    ++ bc
    ++ awk '{print "scale=2;"$1"/1024"}'
    ++ bc
    (standard_in) 1: parse error
  • requestedbw3=
    ++ echo /1024-
    ++ bc
    ++ awk '{print "scale=2;"$1"/1024"}'
    ++ bc
    (standard_in) 1: parse error
  • applebw3=
    ++ echo /1024-
    ++ bc
    ++ awk '{print "scale=2;"$1"/1024"}'
    ++ bc
    (standard_in) 1: parse error
  • peerbw3=
    ++ grep MB /tmp/CacheLogs/Bandwidth_First.txt
    ++ awk '{print $2}'
  • mbbf1=
    ++ grep GB /tmp/CacheLogs/Bandwidth_First.txt
    ++ awk '{print $2}'
  • gbbf1=
    ++ grep MB /tmp/CacheLogs/Bandwidth_Last.txt
    ++ awk '{print $2}'
  • mbbf2=
    ++ grep GB /tmp/CacheLogs/Bandwidth_Last.txt
    ++ awk '{print $2}'
  • gbbf2=
  • echo 'Cacher has retrieved the following stats for 2015.06.28:'
    Cacher has retrieved the following stats for 2015.06.28:
  • echo
  • [[ '' == \M\B ]]
  • [[ '' == \G\B ]]
  • [[ '' == \M\B ]]
  • [[ '' == \G\B ]]
  • echo

++ ifconfig en0
++ grep 'inet '
++ grep -v 127.0.0.1
++ awk '{print $2}'
++ sed 's/./ /g'
++ awk '{print $1}'

  • serverip=192
  • egrep --only-matching -E '192.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)' /tmp/CacheLogs/MergedLog-2015.06.28.log
  • cat /tmp/CacheLogs/Total_IPs.txt
  • sort
  • uniq
    ++ wc -l /tmp/CacheLogs/Total_IPs.txt
    ++ awk '{print $1}'
  • totalipnumber=78
    ++ wc -l /tmp/CacheLogs/Unique_IPs.txt
    ++ awk '{print $1}'
  • uniqueipnumber=3
  • echo 78 IP Addresses hit the Caching Server yesterday consisting of:
    78 IP Addresses hit the Caching Server yesterday consisting of:
  • echo ' 3 Unique IP Addresses.'
    3 Unique IP Addresses.
  • echo
  • egrep -o '(\s(iOS\S+))' /tmp/CacheLogs/URL_Log-2015.06.28.log
  • cut -d ' ' -f 2
  • egrep --only-matching -E '8.(0)$' /tmp/CacheLogs/Total_iOS.txt
  • egrep -o '(8.0.2)' /tmp/CacheLogs/Total_iOS.txt
  • egrep --only-matching -E '8.(1)$' /tmp/CacheLogs/Total_iOS.txt
  • egrep -o '(8.1.1)' /tmp/CacheLogs/Total_iOS.txt
  • egrep -o '(8.1.2)' /tmp/CacheLogs/Total_iOS.txt
  • egrep -o '(8.1.3)' /tmp/CacheLogs/Total_iOS.txt
  • egrep --only-matching -E '8.(2)$' /tmp/CacheLogs/Total_iOS.txt
  • egrep --only-matching -E '8.(3)$' /tmp/CacheLogs/Total_iOS.txt
    ++ wc -l /tmp/CacheLogs/Total_iOS.txt
    ++ awk '{print $1}'
  • totaliosnumber=0
    ++ wc -l /tmp/CacheLogs/iOS_8.0.txt
    ++ awk '{print $1}'
  • totalios800number=0
    ++ wc -l /tmp/CacheLogs/iOS_8.0.2.txt
    ++ awk '{print $1}'
  • totalios802number=0
    ++ wc -l /tmp/CacheLogs/iOS_8.1.txt
    ++ awk '{print $1}'
  • totalios810number=0
    ++ wc -l /tmp/CacheLogs/iOS_8.1.1.txt
    ++ awk '{print $1}'
  • totalios811number=0
    ++ wc -l /tmp/CacheLogs/iOS_8.1.2.txt
    ++ awk '{print $1}'
  • totalios812number=0
    ++ wc -l /tmp/CacheLogs/iOS_8.1.3.txt
    ++ awk '{print $1}'
  • totalios813number=0
    ++ wc -l /tmp/CacheLogs/iOS_8.2.txt
    ++ awk '{print $1}'
  • totalios820number=0
    ++ wc -l /tmp/CacheLogs/iOS_8.3.txt
    ++ awk '{print $1}'
  • totalios830number=0
  • egrep -o '(\s(model\S+))' /tmp/CacheLogs/URL_Log-2015.06.28.log
  • cut -d ' ' -f 2
  • egrep -o '(TV)' /tmp/CacheLogs/Total_models.txt
  • egrep -o '(iPhone)' /tmp/CacheLogs/Total_models.txt
  • egrep -o '(iPad)' /tmp/CacheLogs/Total_models.txt
  • egrep -o '(iPod)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l /tmp/CacheLogs/Total_models.txt
    ++ awk '{print $1}'
  • totalmodelnumber=0
    ++ wc -l /tmp/CacheLogs/Total_AppleTV.txt
    ++ awk '{print $1}'
  • totalappletvnumber=0
    ++ wc -l /tmp/CacheLogs/Total_iPhone.txt
    ++ awk '{print $1}'
  • totaliphonenumber=0
    ++ wc -l /tmp/CacheLogs/Total_iPad.txt
    ++ awk '{print $1}'
  • totalipadnumber=0
    ++ wc -l /tmp/CacheLogs/Total_iPod.txt
    ++ awk '{print $1}'
  • totalipodnumber=0
    ++ egrep -o '(AppleTV3,1)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalappletv31=0
    ++ egrep -o '(AppleTV3,2)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalappletv32=0
    ++ egrep -o '(iPhone3,1)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totaliphone31=0
    ++ egrep -o '(iPhone3,3)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totaliphone33=0
    ++ egrep -o '(iPhone4,1)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totaliphone41=0
    ++ egrep -o '(iPhone5,1)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totaliphone51=0
    ++ egrep -o '(iPhone5,2)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totaliphone52=0
    ++ egrep -o '(iPhone5,3)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totaliphone53=0
    ++ egrep -o '(iPhone6,1)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totaliphone61=0
    ++ egrep -o '(iPhone6,2)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totaliphone62=0
    ++ egrep -o '(iPhone7,2)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totaliphone72=0
    ++ egrep -o '(iPhone7,1)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totaliphone71=0
    ++ egrep -o '(iPad2,1)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad21=0
    ++ egrep -o '(iPad2,2)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad22=0
    ++ egrep -o '(iPad2,3)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad23=0
    ++ egrep -o '(iPad2,4)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad24=0
    ++ egrep -o '(iPad2,5)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad25=0
    ++ egrep -o '(iPad2,6)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad26=0
    ++ egrep -o '(iPad2,7)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad27=0
    ++ egrep -o '(iPad3,1)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad31=0
    ++ egrep -o '(iPad3,2)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad32=0
    ++ egrep -o '(iPad3,3)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad33=0
    ++ egrep -o '(iPad3,4)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad34=0
    ++ egrep -o '(iPad3,5)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad35=0
    ++ egrep -o '(iPad3,6)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad36=0
    ++ egrep -o '(iPad4,1)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad41=0
    ++ egrep -o '(iPad4,2)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad42=0
    ++ egrep -o '(iPad4,4)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad44=0
    ++ egrep -o '(iPad4,5)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad45=0
    ++ egrep -o '(iPad4,7)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad47=0
    ++ egrep -o '(iPad4,8)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad48=0
    ++ egrep -o '(iPad5,3)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad53=0
    ++ egrep -o '(iPad5,4)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipad54=0
    ++ egrep -o '(iPod5,1)' /tmp/CacheLogs/Total_models.txt
    ++ wc -l
    ++ awk '{print $1}'
  • totalipod51=0
  • echo A total of 0 iOS devices hit the Caching Server yesterday consisting of:
    A total of 0 iOS devices hit the Caching Server yesterday consisting of:
  • echo ' 0 iOS 8.0 Devices'
    0 iOS 8.0 Devices
  • echo ' 0 iOS 8.0.2 Devices'
    0 iOS 8.0.2 Devices
  • echo ' 0 iOS 8.1 Devices'
    0 iOS 8.1 Devices
  • echo ' 0 iOS 8.1.1 Devices'
    0 iOS 8.1.1 Devices
  • echo ' 0 iOS 8.1.2 Devices'
    0 iOS 8.1.2 Devices
  • echo ' 0 iOS 8.1.3 Devices'
    0 iOS 8.1.3 Devices
  • echo ' 0 iOS 8.2 Devices'
    0 iOS 8.2 Devices
  • echo ' 0 iOS 8.3 Devices'
    0 iOS 8.3 Devices
  • echo
  • echo Of these devices, here is the model breakdown:
    Of these devices, here is the model breakdown:
  • echo ' 0 Total AppleTVs'
    0 Total AppleTVs
  • echo ' 0 3rd Generation Apple TVs'
    0 3rd Generation Apple TVs
  • echo ' 0 4th Generation Apple TVs'
    0 4th Generation Apple TVs
  • echo ' 0 Total iPhones'
    0 Total iPhones
  • echo ' 0 iPhone 4 [GSM]'
    0 iPhone 4 [GSM]
  • echo ' 0 iPhone 4 [CDMA]'
    0 iPhone 4 [CDMA]
  • echo ' 0 iPhone 4S'
    0 iPhone 4S
  • echo ' 0 iPhone 5 [GSM]'
    0 iPhone 5 [GSM]
  • echo ' 0 iPhone 5 [CDMA]'
    0 iPhone 5 [CDMA]
  • echo ' 0 iPhone 5C'
    0 iPhone 5C
  • echo ' 0 iPhone 5S'
    0 iPhone 5S
  • echo ' 0 iPhone 5S [China Model]'
    0 iPhone 5S [China Model]
  • echo ' 0 iPhone 6'
    0 iPhone 6
  • echo ' 0 iPhone 6 Plus'
    0 iPhone 6 Plus
  • echo ' 0 Total iPads'
    0 Total iPads
  • echo ' 0 iPad 2nd Generation [Wifi]'
    0 iPad 2nd Generation [Wifi]
  • echo ' 0 iPad 2nd Generation [Wifi + GSM]'
    0 iPad 2nd Generation [Wifi + GSM]
  • echo ' 0 iPad 2nd Generation [Wifi + CDMA]'
    0 iPad 2nd Generation [Wifi + CDMA]
  • echo ' 0 iPad 2nd Generation [M2012 Wifi Revision]'
    0 iPad 2nd Generation [M2012 Wifi Revision]
  • echo ' 0 iPad 3rd Generation [Wifi]'
    0 iPad 3rd Generation [Wifi]
  • echo ' 0 iPad 3rd Generation [Wifi + GSM]'
    0 iPad 3rd Generation [Wifi + GSM]
  • echo ' 0 iPad 3rd Generation [Wifi + CDMA]'
    0 iPad 3rd Generation [Wifi + CDMA]
  • echo ' 0 iPad 4th Generation [Wifi]'
    0 iPad 4th Generation [Wifi]
  • echo ' 0 iPad 4th Generation [Wifi + GSM]'
    0 iPad 4th Generation [Wifi + GSM]
  • echo ' 0 iPad 4th Generation [Wifi + CDMA]'
    0 iPad 4th Generation [Wifi + CDMA]
  • echo ' 0 iPad Air 1st Generation [Wifi]'
    0 iPad Air 1st Generation [Wifi]
  • echo ' 0 iPad Air 1st Generation [Wifi + Cellular]'
    0 iPad Air 1st Generation [Wifi + Cellular]
  • echo ' 0 iPad Air 2nd Generation [Wifi]'
    0 iPad Air 2nd Generation [Wifi]
  • echo ' 0 iPad Air 2nd Generation [Wifi + Cellular]'
    0 iPad Air 2nd Generation [Wifi + Cellular]
  • echo
  • echo ' 0 iPad Mini 1st Generation [Wifi]'
    0 iPad Mini 1st Generation [Wifi]
  • echo ' 0 iPad Mini 1st Generation [Wifi + GSM]'
    0 iPad Mini 1st Generation [Wifi + GSM]
  • echo ' 0 iPad Mini 1st Generation [Wifi + CDMA]'
    0 iPad Mini 1st Generation [Wifi + CDMA]
  • echo ' 0 iPad Mini 2nd Generation [Wifi]'
    0 iPad Mini 2nd Generation [Wifi]
  • echo ' 0 iPad Mini 2nd Generation [Wifi + Cellular]'
    0 iPad Mini 2nd Generation [Wifi + Cellular]
  • echo ' 0 iPad Mini 3rd Generation [Wifi]'
    0 iPad Mini 3rd Generation [Wifi]
  • echo ' 0 iPad Mini 3rd Generation [Wifi + Cellular]'
    0 iPad Mini 3rd Generation [Wifi + Cellular]
  • echo ' 0 Total iPods'
    0 Total iPods
  • echo ' 0 iPod Touch 5th Generation'
    0 iPod Touch 5th Generation
  • echo
  • egrep -o '(\s(Darwin\S+))' /tmp/CacheLogs/URL_Log-2015.06.28.log
  • cut -d ' ' -f 2
  • egrep -o '(/(14.0.0))' /tmp/CacheLogs/Total_OS_X.txt
  • egrep -o '(/(14.1.0))' /tmp/CacheLogs/Total_OS_X.txt
  • egrep -o '(/(14.3.0))' /tmp/CacheLogs/Total_OS_X.txt
    ++ wc -l /tmp/CacheLogs/Total_OS_X.txt
    ++ awk '{print $1}'
  • totalosxnumber=0
    ++ wc -l /tmp/CacheLogs/Total_OS_X_10.10.txt
    ++ awk '{print $1}'
  • total1010number=0
    ++ wc -l /tmp/CacheLogs/Total_OS_X_10.10.2.txt
    ++ awk '{print $1}'
  • total10102number=0
    ++ wc -l /tmp/CacheLogs/Total_OS_X_10.10.3.txt
    ++ awk '{print $1}'
  • total10103number=0
  • echo A total of 0 OS X devices hit the Caching Server yesterday consisting of:
    A total of 0 OS X devices hit the Caching Server yesterday consisting of:
  • echo ' 0 OS X Yosemite 10.10.0/10.10.1 Devices [Cannot distinguish between builds]'
    0 OS X Yosemite 10.10.0/10.10.1 Devices [Cannot distinguish between builds]
  • echo ' 0 OS X Yosemite 10.10.2 Devices'
    0 OS X Yosemite 10.10.2 Devices
  • echo ' 0 OS X Yosemite 10.10.3 Devices'
    0 OS X Yosemite 10.10.3 Devices
  • echo
  • egrep -o '(\s(http\S+))' /tmp/CacheLogs/MergedLog-2015.06.28.log
  • cut -d ' ' -f 2
  • egrep -o '(ipa)' /tmp/CacheLogs/Total_URLs.txt
  • egrep -o '(zip)' /tmp/CacheLogs/Total_URLs.txt
  • egrep -o '(pkg)' /tmp/CacheLogs/Total_URLs.txt
  • egrep -o '(epub)' /tmp/CacheLogs/Total_URLs.txt
  • egrep -o '(register)' /tmp/CacheLogs/Total_URLs.txt
    ++ wc -l /tmp/CacheLogs/Total_URLs.txt
    ++ awk '{print $1}'
  • totalurlnumber=26
    ++ wc -l /tmp/CacheLogs/Total_IPAs.txt
    ++ awk '{print $1}'
  • totalipanumber=0
    ++ wc -l /tmp/CacheLogs/Total_Zips.txt
    ++ awk '{print $1}'
  • totalzipnumber=0
    ++ wc -l /tmp/CacheLogs/Total_PKGs.txt
    ++ awk '{print $1}'
  • totalpkgnumber=0
    ++ wc -l /tmp/CacheLogs/Total_Books.txt
    ++ awk '{print $1}'
  • totalepubnumber=0
    ++ wc -l /tmp/CacheLogs/Total_Server_Registers.txt
    ++ awk '{print $1}'
  • totalsregistersnumber=26
  • echo A total of 26 files were downloaded from the Caching Server yesterday consisting of:
    A total of 26 files were downloaded from the Caching Server yesterday consisting of:
  • echo ' 0 Books'
    0 Books
  • echo ' 0 iOS Apps'
    0 iOS Apps
  • echo ' 0 Mac Apps'
    0 Mac Apps
  • echo ' 0 Zip files'
    0 Zip files
  • echo ' 26 Apple Server Registrations'
    26 Apple Server Registrations
  • echo
  • cat /tmp/CacheLogs/Total_URLs.txt
  • sort
  • uniq
  • egrep -o '(epub)' /tmp/CacheLogs/Unique_URLs.txt
  • egrep -o '(ipa)' /tmp/CacheLogs/Unique_URLs.txt
  • egrep -o '(pkg)' /tmp/CacheLogs/Unique_URLs.txt
  • egrep -o '(zip)' /tmp/CacheLogs/Unique_URLs.txt
    ++ wc -l /tmp/CacheLogs/Unique_URLs.txt
    ++ awk '{print $1}'
  • uniqueurlnumber=1
    ++ wc -l /tmp/CacheLogs/Unique_Books.txt
    ++ awk '{print $1}'
  • uniqueepubnumber=0
    ++ wc -l /tmp/CacheLogs/Unique_IPAs.txt
    ++ awk '{print $1}'
  • uniqueipanumber=0
    ++ wc -l /tmp/CacheLogs/Unique_PKGs.txt
    ++ awk '{print $1}'
  • uniquepkgnumber=0
    ++ wc -l /tmp/CacheLogs/Unique_Zips.txt
    ++ awk '{print $1}'
  • uniquezipnumber=0
  • echo 1 Unique files were downloaded from the Caching Server yesterday consisting of:
    1 Unique files were downloaded from the Caching Server yesterday consisting of:
  • echo ' 0 Unique Books'
    0 Unique Books
  • echo ' 0 Unique iOS Apps'
    0 Unique iOS Apps
  • echo ' 0 Unique Mac Apps'
    0 Unique Mac Apps
  • echo ' 0 Unique Zip files'
    0 Unique Zip files
  • echo
  • echo 'Cacher has retrieved the following stats for 2015.06.28:'
  • echo
  • [[ '' == \M\B ]]
  • [[ '' == \G\B ]]
  • [[ '' == \M\B ]]
  • [[ '' == \G\B ]]
  • echo
  • echo 78 IP Addresses hit the Caching Server yesterday consisting of:
  • echo ' 3 Unique IP Addresses.'
  • echo
  • echo A total of 0 iOS devices hit the Caching Server yesterday consisting of:
  • echo ' 0 iOS 8.0 Devices'
  • echo ' 0 iOS 8.0.2 Devices'
  • echo ' 0 iOS 8.1 Devices'
  • echo ' 0 iOS 8.1.1 Devices'
  • echo ' 0 iOS 8.1.2 Devices'
  • echo ' 0 iOS 8.1.3 Devices'
  • echo ' 0 iOS 8.2 Devices'
  • echo ' 0 iOS 8.3 Devices'
  • echo
  • echo Of these devices, here is the model breakdown:
  • echo ' 0 Total AppleTVs'
  • echo ' 0 3rd Generation Apple TVs'
  • echo ' 0 4th Generation Apple TVs'
  • echo ' 0 Total iPhones'
  • echo ' 0 iPhone 4 [GSM]'
  • echo ' 0 iPhone 4 [CDMA]'
  • echo ' 0 iPhone 4S'
  • echo ' 0 iPhone 5 [GSM]'
  • echo ' 0 iPhone 5 [CDMA]'
  • echo ' 0 iPhone 5C'
  • echo ' 0 iPhone 5S'
  • echo ' 0 iPhone 5S [China Model]'
  • echo ' 0 iPhone 6'
  • echo ' 0 iPhone 6 Plus'
  • echo ' 0 Total iPads'
  • echo ' 0 iPad 2nd Generation [Wifi]'
  • echo ' 0 iPad 2nd Generation [Wifi + GSM]'
  • echo ' 0 iPad 2nd Generation [Wifi + CDMA]'
  • echo ' 0 iPad 2nd Generation [M2012 Wifi Revision]'
  • echo ' 0 iPad 3rd Generation [Wifi]'
  • echo ' 0 iPad 3rd Generation [Wifi + GSM]'
  • echo ' 0 iPad 3rd Generation [Wifi + CDMA]'
  • echo ' 0 iPad 4th Generation [Wifi]'
  • echo ' 0 iPad 4th Generation [Wifi + GSM]'
  • echo ' 0 iPad 4th Generation [Wifi + CDMA]'
  • echo ' 0 iPad Air 1st Generation [Wifi]'
  • echo ' 0 iPad Air 1st Generation [Wifi + Cellular]'
  • echo ' 0 iPad Air 2nd Generation [Wifi]'
  • echo ' 0 iPad Air 2nd Generation [Wifi + Cellular]'
  • echo
  • echo ' 0 iPad Mini 1st Generation [Wifi]'
  • echo ' 0 iPad Mini 1st Generation [Wifi + GSM]'
  • echo ' 0 iPad Mini 1st Generation [Wifi + CDMA]'
  • echo ' 0 iPad Mini 2nd Generation [Wifi]'
  • echo ' 0 iPad Mini 2nd Generation [Wifi + Cellular]'
  • echo ' 0 iPad Mini 3rd Generation [Wifi]'
  • echo ' 0 iPad Mini 3rd Generation [Wifi + Cellular]'
  • echo ' 0 Total iPods'
  • echo ' 0 iPod Touch 5th Generation'
  • echo
  • echo A total of 0 OS X devices hit the Caching Server yesterday consisting of:
  • echo ' 0 OS X Yosemite 10.10.0/10.10.1 Devices [Cannot distinguish between builds]'
  • echo ' 0 OS X Yosemite 10.10.2 Devices'
  • echo ' 0 OS X Yosemite 10.10.3 Devices'
  • echo
  • echo A total of 26 files were downloaded from the Caching Server yesterday consisting of:
  • echo ' 0 Books'
  • echo ' 0 iOS Apps'
  • echo ' 0 Mac Apps'
  • echo ' 0 Zip files'
  • echo ' 26 Apple Server Registrations'
  • echo
  • echo 1 Unique files were downloaded from the Caching Server yesterday consisting of:
  • echo ' 0 Unique Books'
  • echo ' 0 Unique iOS Apps'
  • echo ' 0 Unique Mac Apps'
  • echo ' 0 Unique Zip files'
    ++ echo
    ++ grep '' /tmp/CacheLogs/AlertInfo.txt
  • finalalert='Cacher has retrieved the following stats for 2015.06.28:

78 IP Addresses hit the Caching Server yesterday consisting of:
3 Unique IP Addresses.

A total of 0 iOS devices hit the Caching Server yesterday consisting of:
0 iOS 8.0 Devices
0 iOS 8.0.2 Devices
0 iOS 8.1 Devices
0 iOS 8.1.1 Devices
0 iOS 8.1.2 Devices
0 iOS 8.1.3 Devices
0 iOS 8.2 Devices
0 iOS 8.3 Devices

Of these devices, here is the model breakdown:
0 Total AppleTVs
0 3rd Generation Apple TVs
0 4th Generation Apple TVs
0 Total iPhones
0 iPhone 4 [GSM]
0 iPhone 4 [CDMA]
0 iPhone 4S
0 iPhone 5 [GSM]
0 iPhone 5 [CDMA]
0 iPhone 5C
0 iPhone 5S
0 iPhone 5S [China Model]
0 iPhone 6
0 iPhone 6 Plus
0 Total iPads
0 iPad 2nd Generation [Wifi]
0 iPad 2nd Generation [Wifi + GSM]
0 iPad 2nd Generation [Wifi + CDMA]
0 iPad 2nd Generation [M2012 Wifi Revision]
0 iPad 3rd Generation [Wifi]
0 iPad 3rd Generation [Wifi + GSM]
0 iPad 3rd Generation [Wifi + CDMA]
0 iPad 4th Generation [Wifi]
0 iPad 4th Generation [Wifi + GSM]
0 iPad 4th Generation [Wifi + CDMA]
0 iPad Air 1st Generation [Wifi]
0 iPad Air 1st Generation [Wifi + Cellular]
0 iPad Air 2nd Generation [Wifi]
0 iPad Air 2nd Generation [Wifi + Cellular]

0 iPad Mini 1st Generation [Wifi]
0 iPad Mini 1st Generation [Wifi + GSM]
0 iPad Mini 1st Generation [Wifi + CDMA]
0 iPad Mini 2nd Generation [Wifi]
0 iPad Mini 2nd Generation [Wifi + Cellular]
0 iPad Mini 3rd Generation [Wifi]
0 iPad Mini 3rd Generation [Wifi + Cellular]

0 Total iPods
0 iPod Touch 5th Generation

A total of 0 OS X devices hit the Caching Server yesterday consisting of:
0 OS X Yosemite 10.10.0/10.10.1 Devices [Cannot distinguish between builds]
0 OS X Yosemite 10.10.2 Devices
0 OS X Yosemite 10.10.3 Devices

A total of 26 files were downloaded from the Caching Server yesterday consisting of:
0 Books
0 iOS Apps
0 Mac Apps
0 Zip files
26 Apple Server Registrations

1 Unique files were downloaded from the Caching Server yesterday consisting of:
0 Unique Books
0 Unique iOS Apps
0 Unique Mac Apps
0 Unique Zip files'

  • /Applications/Server.app/Contents/ServerRoot/usr/sbin/server postAlert CustomAlert Common subject 'Caching Server Data: 2015.06.28' message 'Cacher has retrieved the following stats for 2015.06.28:

78 IP Addresses hit the Caching Server yesterday consisting of:
3 Unique IP Addresses.

A total of 0 iOS devices hit the Caching Server yesterday consisting of:
0 iOS 8.0 Devices
0 iOS 8.0.2 Devices
0 iOS 8.1 Devices
0 iOS 8.1.1 Devices
0 iOS 8.1.2 Devices
0 iOS 8.1.3 Devices
0 iOS 8.2 Devices
0 iOS 8.3 Devices

Of these devices, here is the model breakdown:
0 Total AppleTVs
0 3rd Generation Apple TVs
0 4th Generation Apple TVs
0 Total iPhones
0 iPhone 4 [GSM]
0 iPhone 4 [CDMA]
0 iPhone 4S
0 iPhone 5 [GSM]
0 iPhone 5 [CDMA]
0 iPhone 5C
0 iPhone 5S
0 iPhone 5S [China Model]
0 iPhone 6
0 iPhone 6 Plus
0 Total iPads
0 iPad 2nd Generation [Wifi]
0 iPad 2nd Generation [Wifi + GSM]
0 iPad 2nd Generation [Wifi + CDMA]
0 iPad 2nd Generation [M2012 Wifi Revision]
0 iPad 3rd Generation [Wifi]
0 iPad 3rd Generation [Wifi + GSM]
0 iPad 3rd Generation [Wifi + CDMA]
0 iPad 4th Generation [Wifi]
0 iPad 4th Generation [Wifi + GSM]
0 iPad 4th Generation [Wifi + CDMA]
0 iPad Air 1st Generation [Wifi]
0 iPad Air 1st Generation [Wifi + Cellular]
0 iPad Air 2nd Generation [Wifi]
0 iPad Air 2nd Generation [Wifi + Cellular]

0 iPad Mini 1st Generation [Wifi]
0 iPad Mini 1st Generation [Wifi + GSM]
0 iPad Mini 1st Generation [Wifi + CDMA]
0 iPad Mini 2nd Generation [Wifi]
0 iPad Mini 2nd Generation [Wifi + Cellular]
0 iPad Mini 3rd Generation [Wifi]
0 iPad Mini 3rd Generation [Wifi + Cellular]

0 Total iPods
0 iPod Touch 5th Generation

A total of 0 OS X devices hit the Caching Server yesterday consisting of:
0 OS X Yosemite 10.10.0/10.10.1 Devices [Cannot distinguish between builds]
0 OS X Yosemite 10.10.2 Devices
0 OS X Yosemite 10.10.3 Devices

A total of 26 files were downloaded from the Caching Server yesterday consisting of:
0 Books
0 iOS Apps
0 Mac Apps
0 Zip files
26 Apple Server Registrations

1 Unique files were downloaded from the Caching Server yesterday consisting of:
0 Unique Books
0 Unique iOS Apps
0 Unique Mac Apps
0 Unique Zip files'

  • rm -rf /tmp/CacheLogs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions