erikng / Cacher

A python script for extracting macOS Caching Server data
Apache License 2.0
134 stars 40 forks source link

Not showing device stats #13

Closed hidefog closed 7 years ago

hidefog commented 8 years ago

Cacher is not showing the types of devices that are connecting. It is only reporting the total amount of bandwidth and the total number of files.

This is with server 5.1 on OS X 10.11.4. I verified that LogClientIdentity is True in the /Library/Server/Caching/Config/Config.plist

screen shot 2016-05-05 at 7 58 41 am screen shot 2016-05-05 at 7 58 48 am

erikng commented 8 years ago

Can you post your cache logs?

Sent from my iPhone

On May 5, 2016, at 5:02 AM, hidefog notifications@github.com wrote:

Cacher is not showing the types of devices that are connecting. It is only reporting the total amount of bandwidth and the total number of files.

This is with server 5.1 on OS X 10.11.4. I verified that LogClientIdentity is True in the /Library/Server/Caching/Config/Config.plist

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub

hidefog commented 8 years ago

Hi,

Sure. Yesterday's log is attached.

Thanks!

On Thu, May 5, 2016 at 11:36 AM, Erik Gomez notifications@github.com wrote:

Can you post your cache logs?

Sent from my iPhone

On May 5, 2016, at 5:02 AM, hidefog notifications@github.com wrote:

Cacher is not showing the types of devices that are connecting. It is only reporting the total amount of bandwidth and the total number of files.

This is with server 5.1 on OS X 10.11.4. I verified that LogClientIdentity is True in the /Library/Server/Caching/Config/Config.plist

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/erikng/Cacher/issues/13#issuecomment-217188357

jrouthier commented 8 years ago

I am also seeing similar issues with this on our server and the reports.

Caching Server Data: 2016.05.10 Cacher has retrieved the following stats for 2016.05.10:

97.97 Gigabytes of Bandwidth served to clients. 22.72 Gigabytes of Bandwidth requested from Apple 0 Bytes of Bandwidth requested from other Caching Servers

117 IP Addresses hit the Caching Server yesterday consisting of: 22 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 0 iOS 8.4 Devices 0 iOS 8.4.1 Devices 0 iOS 9.0 Devices 0 iOS 9.0.1 Devices 0 iOS 9.0.2 Devices 0 iOS 9.1 Devices & nbsp; 0 iOS 9.2 Devices 0 iOS 9.2.1 Devices 0 iOS 9.3 Devices 0 iOS 9.3.1 Devices 0 iOS 9.3.2 Devices [Currently in Beta]

Of these devices, here is the model breakdown: 0 Total AppleTVs 0 3rd Generation Apple TVs 0 4th Generation Apple TVs 0 5th Generation Apple TVs 0 Total iPhones 0 iPhone 4 [GSM] 0 iPhone 4 [GSM 2012] 0 iPhone 4 [CDMA] 0 iPhone 4S 0 iPhone 5 [GSM] 0 iPhone 5 [CDMA] 0 iPhone 5C 0 iPhone 5C [Global] 0 iPhone 5S 0 iPhone 5S [China Model] 0 iPhone 6 0 iP hone 6 Plus 0 iPhone 6S 0 iPhone 6S Plus 0 iPhone SE 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 1st Generation [China Model] &n bsp; 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 iPad Mini 3rd Generation [China Model] 0 iPad Mini 4th Generation [Wifi] 0 iPad Mini 4th Generation [Wifi + Cellular] 0 iPad Pro 9.7 Inch 1st Generation [Wifi] 0 iPad Pro 9.7 Inch 1st Generation [Wifi + Cellular] 0 iPad Pro 12.9 I nch 1st Generation [Wifi] 0 iPad Pro 12.9 Inch 1st Generation [Wifi + Cellular] 0 Total iPods 0 iPod Touch 5th Generation 0 iPod Touch 6th 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 0 OS X Yosemite 10.10.4 Devices 0 OS X Yosemite 10.10.5 Devices 0 OS X El Capitan 10.11.0/10.11.1 Devices [Cannot distinguish between builds] 0 OS X El Capitan 10.11.2 Devices 0 OS X El Capitan 10.11.3 Devices 0 OS X El Capitan 10.11.4 Devices 0 OS X El Capitan 10.11.5 Devices [Currently in Beta]

A total of 0 Applications were downloaded from Apple Config urator 2 devices, consisting of: 0 Applications downloaded from Apple Configurator 2.0/2.1/2.2 [Cannot distinguish between builds]

A total of 13635 files were downloaded from the Caching Server yesterday consisting of: 3 Books 1350 iOS Apps 1279 Mac Apps 388 Zip files 0 IPSW files 26 Apple Server Registrations

12103 Unique files were downloaded from the Caching Server yesterday consisting of: 3 Unique Books 1196 Unique iOS Apps 1127 Unique Mac Apps 37 Unique Zip files 0 Unique IPSW files

GitStoph commented 8 years ago

I'm also seeing similar behavior. It worked on Server 5.0.15 on Yosemite. Once the mini was updated to 10.11.6 and the latest version of Server, the individual stats per device stopped working. Thanks for the great tool!

magicdude4eva commented 8 years ago

Same here. Maybe a better option would be not to hardcode device-versions (i.e. explicit egrep for "(9.3.1)" but to extract the version fully and then write the stats to an array etc.

erikng commented 8 years ago

I currently do not have the resource time to fix Cacher but will gladly accept PRs that fix it.

erikng commented 7 years ago

Please try https://github.com/erikng/Cacher/blob/python-refactor/Cacher

I will be closing this ticket, but you are welcome to re-open if this does not solve your issue.