diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index ab7f8cf1..85cc570a 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -2,6 +2,8 @@ Added `chromeostype`, `diskspaceusage` and `faninfo` to `` for use in `gam info|print cros`. +Fixed bugs/cleaned output in `gam info|print cros`. + 7.07.15 Added option `shareddrivesoption included|included_if_account_is_not_a_member|not_included` to `gam create vaultexport`. diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 8561453f..6dde6ce4 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -23822,6 +23822,7 @@ CROS_SCALAR_PROPERTY_PRINT_ORDER = [ 'notes', 'serialNumber', 'status', + 'chromeOsType', 'deviceLicenseType', 'model', 'firmwareVersion', @@ -23842,6 +23843,7 @@ CROS_SCALAR_PROPERTY_PRINT_ORDER = [ 'manufactureDate', 'supportEndDate', 'autoUpdateExpiration', + 'autoUpdateThrough', 'willAutoRenew', ] @@ -23866,8 +23868,11 @@ CROS_TIME_OBJECTS = { 'lastDeprovisionTimestamp', 'lastEnrollmentTime', 'lastSync', + 'rebootTime', 'reportTime', 'supportEndDate', + 'updateTime', + 'updateCheckTime', } CROS_FIELDS_WITH_CRS_NLS = {'notes'} CROS_START_ARGUMENTS = ['start', 'startdate', 'oldestdate'] @@ -23984,13 +23989,13 @@ def infoCrOSDevices(entityList): printKeyValueWithCRsNLs(up, cros[up]) else: printKeyValueList([up, formatLocalTime(cros[up])]) - up = 'tpmVersionInfo' - if up in cros: - printKeyValueList([up, '']) - Ind.Increment() - for key, value in sorted(iter(cros[up].items())): - printKeyValueList([key, value]) - Ind.Decrement() + for up in ['diskSpaceUsage', 'osUpdateStatus', 'tpmVersionInfo']: + if up in cros: + printKeyValueList([up, '']) + Ind.Increment() + for key, value in sorted(iter(cros[up].items())): + printKeyValueList([key, value]) + Ind.Decrement() if not noLists: activeTimeRanges = _filterActiveTimeRanges(cros, True, listLimit, startDate, endDate, activeTimeRangesOrder) if activeTimeRanges: @@ -24044,6 +24049,9 @@ def infoCrOSDevices(entityList): entityActionNotPerformedWarning([Ent.CROS_DEVICE, deviceId, Ent.DEVICE_FILE, downloadfile], Msg.NO_ENTITIES_FOUND.format(Ent.Plural(Ent.DEVICE_FILE)), i, count) Act.Set(Act.INFO) + cpuInfo = _filterBasicList(cros, 'cpuInfo', True, listLimit) + if cpuInfo: + showJSON('cpuInfo', cpuInfo, dictObjectsKey={'cpuInfo': 'model'}) cpuStatusReports = _filterCPUStatusReports(cros, True, listLimit, startTime, endTime) if cpuStatusReports: printKeyValueList(['cpuStatusReports']) @@ -24061,6 +24069,12 @@ def infoCrOSDevices(entityList): printKeyValueList(['cpuUtilizationPercentageInfo', cpuStatusReport['cpuUtilizationPercentageInfo']]) Ind.Decrement() Ind.Decrement() + backlightInfo = _filterBasicList(cros, 'backLightInfo', True, listLimit) + if backlightInfo: + showJSON('backlightInfo', backlightInfo, dictObjectsKey={'backlightInfo': 'path'}) + fanInfo = _filterBasicList(cros, 'fanInfo', True, listLimit) + if fanInfo: + showJSON('fanInfo', fanInfo) diskVolumeReports = _filterBasicList(cros, 'diskVolumeReports', True, listLimit) if diskVolumeReports: printKeyValueList(['diskVolumeReports']) @@ -24287,7 +24301,7 @@ CROS_ENTITIES_MAP = { } CROS_INDEXED_TITLES = ['activeTimeRanges', 'recentUsers', 'deviceFiles', - 'cpuStatusReports', 'diskVolumeReports', 'lastKnownNetwork', 'screenshotFiles', 'systemRamFreeReports'] + 'cpuStatusReports', 'cpuInfo', 'backlightInfo', 'fanInfo', 'diskVolumeReports', 'lastKnownNetwork', 'screenshotFiles', 'systemRamFreeReports'] # gam print cros [todrive *] # [(query )|(queries ) [querytime