Struggling with diskVolumeReports

123 views
Skip to first unread message

Tynan Mulroy

unread,
Nov 2, 2021, 1:52:22 PM11/2/21
to GAM for Google Workspace
Hi Folks,

I'm having some trouble making heads or tails of diskVolumeReports in GAMADV. I'm ultimately trying to get a report of the current disk usage of Chromebooks in my fleet. In GAC, this is listed as a percentage and total in GB.

For example, for particular device A:

GAC lists the following:
Disk space usage
78% (4.93 GB / 6.33 GB)

However, running "gam info cros query id:<serial> fields diskvolumereports" for device A results in the following:
diskVolumeReports
    volumeInfo
      volumeId: /media/archive
        storageFree: 1995436032
        storageTotal: 1995436032
      volumeId: /usr/share/oem
        storageFree: 11681792
        storageTotal: 12042240
      volumeId: /media/removable
        storageFree: 1995436032
        storageTotal: 1995436032

I'm struggling to figure out how these diskVolumeReports somehow add up to 4.93GB, and likewise with the total storage adding up to 6.33GB.

Anybody know of a better solution for grabbing reports of disk utilization for cros?

Thanks!

Tynan Mulroy

unread,
Nov 2, 2021, 2:02:16 PM11/2/21
to GAM for Google Workspace
Apologies, I forgot to refresh after dumping some profiles. Corrected the numbers from GAC below.
Still confused how these are supposed to match up for the same device.

GAC lists the following:
Disk space usage
25% (1.56 GB / 6.33 GB)

However, running "gam info cros query id:<serial> fields diskvolumereports" for device A results in the following:
diskVolumeReports
    volumeInfo
      volumeId: /media/archive
        storageFree: 1995436032
        storageTotal: 1995436032
      volumeId: /usr/share/oem
        storageFree: 11681792
        storageTotal: 12042240
      volumeId: /media/removable
        storageFree: 1995436032
        storageTotal: 1995436032

Thanks!

Mark Hendren

unread,
Dec 2, 2021, 6:19:12 PM12/2/21
to GAM for Google Workspace
I am having the same issue.   Can't make heads or tails of how they are getting the numbers they are.   Have you had any more luck on this?

Tynan Mulroy

unread,
Dec 7, 2021, 5:58:26 PM12/7/21
to GAM for Google Workspace
I'm afraid not. Still can't wrap my mind around it.

Kim Nilsson

unread,
Dec 11, 2021, 10:28:50 AM12/11/21
to GAM for Google Workspace
diskVolumeReports.volumeInfo.0.storageTotal should show total storage, and, after you reformat it to GB, be the total storage of the device.
diskVolumeReports.volumeInfo.0.storageFree should show how much of that is free.


However, some devices seem report completely wrong numbers.
About 4k of my 5k devices report logical numbers in the 0 columns, but the last 1k either report weird numbers, or nothing at all.

For many, they instead report the relevant numbers in the volumeInfo.1 columns, but off by a factor of 1000.
So perhaps listing kBs instead of Bytes.
Reply all
Reply to author
Forward
0 new messages