Commit Graph

582 Commits

Author SHA1 Message Date
Zack T
75d80ecdfd v1.6.0 = Pass multiple args to & removed mutual exclusions from switches
+ Added the ability to pass multiple files and/or directories to be collected
+ Removed mutual exclusion from the defaults, file, and directory switch
+ Added logic to parse switches/values passed from Jamf Pro when using multiple values in each passed Script Parameter
+ Moved archiving logic to a function/context manager
+ Using built-in plistlib to read plists now
+ Standardizing functions
2022-05-13 19:01:06 -07:00
Zack T
b148edbf0c v1.6.0 = Monterey Support and reporting improvement
+ Added support for Monterey (Monterey Beta was picking up, but not release)
+ Fixed issue in logic where I had previously attempted to remove duplicate version information in the displayName and displayVersion attributes
2022-05-02 21:14:11 -07:00
Zack T
3ef6b8c12a v1.0.0 = Initial Version
Initial Version
2022-04-06 18:35:27 -07:00
Zack T
ad38bb307f v1.0.0 = Initial Version
Initial Version
2022-04-06 15:40:58 -07:00
Zack T
9073cfa747 v1.1.0 = Fixed Python3 conversion issues
+ Fixed Python3 conversion issues...
+ Code improvements, etc.
2022-04-05 14:13:30 -07:00
Zack T
3cc50ad9da v2.11.0 = Add verification if SysExt is Staged
+ Adding check to verify if the System Extension is staged
2022-03-25 10:50:34 -07:00
Zack T
f2b3f20404 v2.10.0 = Support enable/disable the "log locally" functionality
Made it easier to disable and _use_ the "log locally" functionality I added a while back
2022-03-25 10:37:54 -07:00
Zack T
82696b4c1b v2.9.0 = Improved SysExt & Network Filter Logic Checks
+ Improved the System Extension check to remove the hardcoded index and instead, loop through all dictionaries in the array
+  Switched to an unofficially supported, but first party generated Network Filter state check that will be more reliable
  - Allows the removal of the external Python3 call
  + Moved to a function as well
2022-03-23 18:13:51 -07:00
Zack T
c08d32f4f9 v2.8.1 = Bug Fix
+ Mistakenly copied the check_system_extension function twice
2022-03-23 18:01:33 -07:00
Zack T
2d41be2c6f v2.8.0 = Added new KEXT check, Improved SysExt/KEXT/PPPC Logic
+ Moved SysExt, KEXT, and PPPC check logic into functions
+ Running SysExt, KEXT, and PPPC check logic even if sensor isn't loaded, to get additional info
+ Tweaked several of the "return values" verbiage
* SysExt logic:
  + Getting additional details before bailing out
* KEXT logic:
  + Added logic to check if unapproved KEXTs can be loaded _at all_
2022-03-22 00:24:01 -07:00
Zack T
2982453492 v1.5.1 = Moved an echo
Moved an echo statement so that it is always executed.
2022-03-21 22:42:44 -07:00
Zack T
3a82eb1660 v1.2.0 = Bug fix
Fixed logic issue causing all returns to be negative
2022-03-21 22:40:55 -07:00
Zack T
75c5f09cb4 v1.3.1 = Bug Fix
Fixed:  Failed to convert one of the Python calls to Python3 in previous commit
2022-03-21 13:40:05 -07:00
Zack T
09a846bf63 v1.3.0 = Updates to console user & Python3 compatibility
+ Updated logic that determines the current console user to no longer use the old Python method
+ Python3 compatibility; allow setting of a custom Python binary path
+ Renamed script
2022-03-17 15:17:33 -07:00
Zack T
6ffa2823cf v1.3.0 = Python3 compatibility; allow setting of a custom Python binary path
+ Python3 compatibility; allow setting of a custom Python binary path
+ Renamed script
2022-03-17 15:07:46 -07:00
Zack T
ed48b3f293 v1.1.0 = Updates to console user, Python, & misc other logic
+ Updated logic that determines the current console user to no longer use the old Python method
+ Python3 compatibility; allow setting of a custom Python binary path
+ Renamed script
+ Miscellaneous code improvements
2022-03-17 15:04:39 -07:00
Zack T
7e8395dc14 v2.0.0 = Support for 2021 and other licensing changes
+ Updated to use new source script
+ Support for
  + 2021 VL
  + change in license priority logic in v16.50+
+ Renamed script
2022-03-17 14:53:59 -07:00
Zack T
5e199c2b79 v1.1.0 = Updated method to get console user
+ Updated logic that determines the current console user to no longer use the old Python method
+ Renamed script
2022-03-17 14:45:10 -07:00
Zack T
6be6665eb2 v2.1.0 = Additional functionality improvements
This version also includes contributions from @tantonw.
* \+ Added a check to see if the current running OS version is the same as "latest supported" based on model, if so, no reason to check further specifications
  * (Again, help script execute faster where possible)
2022-02-28 23:05:23 -07:00
Zack T
8e27016cf4 Merge pull request #14 from tantonw/tantonw-patch-2
Storage free space fix for Mac at loginwindow
2022-02-28 21:46:09 -08:00
Zack T
4f04510aec Merge pull request #13 from tantonw/tantonw-patch-1
M1 system_profiler "Upgradeable Memory" workaround
2022-02-28 21:45:15 -08:00
tantonw
5886c0a727 Storage free space fix for Mac at loginwindow
The NSURLVolumeAvailableCapacityForImportantUsageKey resource key returns 0 free space if no user is logged in to the Mac.  NSURLVolumeAvailableCapacityKey doesn't have this issue, so use it instead if necessary.
2022-02-25 16:57:13 -08:00
tantonw
4233b7a72d M1 system_profiler "Upgradeable Memory" workaround 2022-02-25 16:35:33 -08:00
Zack T
391d345b64 v2.0.0 = Major refactor, more strict technical checks, etc.
* Major refactor
* \+ Switched to using Regex to determine which models _are not_ compatible with each OS versions
  * This should make the logic much more reliable and easier to maintain going forward
  * \- This also allowed the removal of model specific check functions, although the MacPro logic will still be required due to additional configuration and hardware checks
* Separated the model and upgrading to/from os version validation checks
* \- Removed unnecessary runtime calculations; instead hard coding static values that will not change
* \+ Improved required storage check to validate against technical space minimals depending on current OS version
* Moved logic around to only execute if needed, instead of wasting cycles
* Overall, script executes two-to-three times faster
* Renamed script
2022-02-21 13:57:03 -07:00
Zack T
9bd180d8dd v2.0.0 = Major refactor, more strict technical checks, etc.
* Major refactor
* \+ Switched to using Regex to determine which models _are not_ compatible with each OS versions
  * This should make the logic much more reliable and easier to maintain going forward
  * \- This also allowed the removal of model specific check functions, although the MacPro logic will still be required due to additional configuration and hardware checks
* Separated the model and upgrading to/from os version validation checks
* \- Removed unnecessary runtime calculations; instead hard coding static values that will not change
* \+ Improved required storage check to validate against technical space minimals depending on current OS version
* Moved logic around to only execute if needed, instead of wasting cycles
* Overall, script executes two-to-three times faster
2022-02-21 13:52:28 -07:00
Zack T
e2a7701780 v1.12.2 = Corrected Monterey and Big Sur support on iMac Models
Revert change excluding 16,1 from Monterey....  Apple's numerous pages are vague, misleading, or incorrect.
https://support.apple.com/en-us/HT201634 - Shows that the iMac (Retina 5K, 27-inch, Mid 2015), Model Identifier: iMac15,1 still supports Monterey when it does not.
2022-02-18 23:53:43 -07:00
Zack T
55efd75f2c v1.12.1 = Corrected Monterey and Big Sur support on iMac Models
Corrected Monterey and Big Sur support on iMac Models
2022-02-18 21:52:40 -07:00
Zack T
9fab01b524 v2.0.0 = Revised into a postinstall script used in an AutoPkg Recipe
This script is now used in an AutoPkg recipe.
The recipe builds a pkg and uses this script as a postinstall script to provide a similar functionality as the previous revision.
This change will allow for quicker and easier support for updates to the Office Reset utility.
2022-02-18 21:22:01 -07:00
Zack T
98a937149e v2.5.0 = Logic improvements, minimum version feature & v28 support
+ Added success/fail check when running the `licenseactivator` utility
+ Added a "minimum support version" feature
+ Added support for v28 licenses
2022-02-18 17:55:38 -07:00
Zack T
e0be46a3a7 v2.4.0 = Updated version check logic to support v27 *and* newer
+ Updated version check logic to support v27 *and* newer (not just v27)
2022-02-18 17:43:31 -07:00
Zack T
e15632ecfb v1.1.0 = Updated for changes in 11.5
Updated to support changes with Rosetta 2 in Big Sur 11.5.
2022-01-24 13:33:58 -07:00
Zack T
ab9dabbb2a v2.7.0 = Added falconctl error handling and SysExt reporting logic
+ Accounted for the scenario where the Falcon Service (falconctl stats) errored/failed to provide the expected info
    + This should correct devices reporting `Invalid Customer ID; SysExt not loaded` incorrectly
+ Fixed a logic error where only the _last_ system extension status (from `systemextensionsctl list`) is checked -- the last may not be the most recent
+ Added an additional "acceptable" system extension state that would result in a passed check (`activated waiting to upgrade`)
- Removed logic supporting older Sensor versions
2022-01-24 13:32:51 -07:00
Zack T
626e07edd5 1.2.0 = Support for Macs with 10 character serial numbers
+ Updated to support 2021 Macs with 10 character serial numbers
2022-01-06 15:23:18 -07:00
Zack T
2e5fda160c v1.5.0 = Support for Macs with 10 character serial numbers
+ Updated to support 2021 Macs with 10 character serial numbers
2022-01-06 15:20:40 -07:00
Zack T
21511d0583 v1.4.2 = Fixed Python3 compatibility
+ Fixed issue where subprocess was returning bytes-like objects instead of string objects
+ Fixed incorrect argument check in an if statement
+ Switched to requests
+ Minor logic improvements
2022-01-06 15:02:05 -07:00
Zack T
84cc6d848a v1.5.0 = Switched to requests and cleanup
+ Switched to using `requests` instead of `urllib`
+ Cleaned up formatting, etc.
+ Added additional file to collect
2021-12-03 17:00:42 -07:00
Zack T
7b852daad8 v1.4.1 = Resolved issue with Python3 compatibility
+ Resolved issue with Python3 compatibility
2021-12-03 16:18:14 -07:00
Zack T
15656e6942 v1.12.0 = Finalized Monterey Support
+ Finalized Monterey Support
+ Includes a fix for iMac15,1
2021-12-03 11:44:32 -07:00
Zack T
53aeead81b Merge pull request #10 from sgmills/master
jamf_ea_LatestOSSupported - check purgeable disk space
2021-12-03 11:34:35 -07:00
Zack T
1634b1d830 v2.6.0 = Added a local log to track EA value history and more
+ Added a local log to track EA value history since this function isn't available within Jamf Pro
+ Updated minimally "supported" OS Version to 10.14 (not supported, but will connect to the cloud)
+ Automatically reporting v5.x location sensors as not supported
- Removed logic for checking v5.x sensors
+ Reporting 6.17 and older sensor versions as not supported
+ Added success check for the Python3 filter_state check
+ Improved the system extension status check by creating an array to handle cases where multiple system extensions are present
2021-12-01 16:14:07 -07:00
Zack T
cd0b86e01c v1.4.0 = Added a local log to track EA value history
+ Added a local log to track EA value history since this function isn't available within Jamf Pro
2021-12-01 15:47:35 -07:00
Zack T
ed9914d1f0 v1.1.0 = Python3 compatibility
+ Python3 compatibility
+ Switched to using `requests` instead of `urllib`
2021-11-30 12:04:39 -07:00
Zack T
fc5f64c0d0 v1.0.1 = Python3 compatibility
+ Python3 compatibility
2021-11-30 12:02:46 -07:00
Zack T
048fd26c41 v1.1.0 = Python3 compatibility
+ Python3 compatibility
2021-11-30 12:01:16 -07:00
Zack T
7f7ec48316 v1.4.1 = Python3 compatibility
+ Python3 compatibility
2021-11-29 22:37:19 -07:00
Zack T
ece1e74593 v1.0.2 = Python3 compatibility
+ Python3 compatibility
2021-11-29 22:32:33 -07:00
Zack T
8396980b97 v1.0.0 = Initial Version
Initial Version
2021-11-29 22:24:23 -07:00
Zack T
89bb03bd20 v1.0.1 = Python3 compatibility
+ Python3 compatibility
2021-11-29 22:23:06 -07:00
Zack T
ba233493e7 v1.4.0 = Python3 compatibility
+ Python3 compatibility
2021-11-29 22:21:32 -07:00
Zack T
592b417c45 v1.0.1 = Python3 compatibility
+ Python3 compatibility
2021-11-29 21:38:44 -07:00