Commit Graph

315 Commits

Author SHA1 Message Date
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
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
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
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
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
Zack T
9d48b9549b v1.2.1 = Python3 compatibility
+ Python3 compatibility
2021-11-29 21:35:29 -07:00
Zack T
da41da6d3d v1.0.1 = Python3 compatibility
+ Python3 compatibility
2021-11-29 21:21:13 -07:00
Zack T
44c136acb7 v1.1.0 = Updated and Improved osascript logic
+ Updated `osascript` logic; now using System Events; improved readability
2021-11-29 18:16:11 -07:00
Zack T
bb0d1a3544 v1.2.1 = Updated and Improved osascript and xpath logic
+ Updated `osascript` logic; now using System Events; improved readability
+ Updated for changes to the `xpath` tool
+ Other miscellaneous improvements
2021-11-29 18:15:16 -07:00
Zack T
6d2c971e20 v1.8.1 = Updated and Improved osascript and xpath logic
+ Updated `osascript` logic; now using System Events; improved readability
+ Updated for changes to the `xpath` tool
+ Other miscellaneous improvements
2021-11-29 18:15:16 -07:00
Zack T
960aba2083 v1.1.1 = Updated and Improved osascript and xpath logic
+ Updated `osascript` logic; now using System Events; improved readability
+ Updated for changes to the `xpath` tool
+ Other miscellaneous improvements
2021-11-29 18:04:03 -07:00
Sam Mills
135fa00731 check purgeable disk space 2021-11-18 10:21:09 -05:00
Zack T
d44c698e91 v1.2.0 = Updated and Improved osascript and xpath logic
+ Updated `osascript` logic; now using System Events; improved readability
+ Updated for changes to the `xpath` tool
+ Other miscellaneous improvements
2021-11-16 10:49:50 -07:00
Zack T
1e0226e4c5 v1.8.0 = Updated and Improved osascript and xpath logic
+ Updated osascript logic; now using System Events; improved readability
+ Updated for changes to the `xpath` tool
+ Other miscellaneous improvements
2021-11-16 10:44:19 -07:00
Zack T
40cd8c81c0 v1.1.0 = Updated and Improved osascript and xpath logic
+ Updated `osascript` logic; now using System Events; improved readability
+ Updated for changes to the `xpath` tool
+ Other miscellaneous improvements
2021-11-16 10:08:27 -07:00
Zack T
d2f91dbf27 v1.11.0c - Correct logic error for specific hardware revisions
+ Corrected a logic error in the iMac and MBP ModelCheck functions for the minor hardware revisions that are supported with newer OS versions while others are not
+ Removed `$` from variables in arithmetic expressions as they are unnecessary
2021-09-30 14:07:31 -07:00
Zack T
27a97db855 v1.11.0b - Added support for MBP 11,4 & 11,5 with Monterey
+ Missed Monterey support for MBP 11,4 and 11,5; addressed in this updated
+ Added a MBP specific model check function
+ Corrected a logic error for the latest model checks in a the iMacModelCheck
2021-09-30 14:01:40 -07:00
Zack T
32315d045a v1.11.0a - Initial Support for Monterey
+ Adding initial support for macOS Monterey based on information know as of today.
2021-09-22 14:40:53 -07:00
Zack T
b17d04f068 v2.5.0 = Fixed false reports from SysExtCtl list & Network Filter State
+ Multiple extension versions can show up in the list from `/usr/bin/systemextensionsctl list`, added logic to only check against the sensor version currently installed.
+ Fixed logical error the Network Filter State conditional...whoops
2021-05-07 17:02:52 -07:00
Zack T
29fe619ea2 Merge PR#7 from koalatee
remove default python, allow option for bash

Plus:
From @MLBZ521 
* Check if $python_path exists, if it doesn't fall back to `defaults read`
* Add full path to binaries
* Add a value check for $filter_state for the result from `defaults read`
2021-05-07 16:44:52 -07:00
Zack T
f9c0632242 Additional adjustments
Changes:
* Check if $python_path exists, if it doesn't fall back to `defaults read`
* Add full path to binaries
* Add a value check for $filter_state for the result from `defaults read`
2021-05-07 16:42:28 -07:00
Zack T
10151f8ce8 v1.0.0 = Initial Version
Initial Version
2021-05-06 19:17:39 -07:00
Zack T
ff9b3d34fe v1.5.0 = Resolved logic issue after upgrade from v10.x to 11
+ Accounted for the softwareupdate journal.plist not existing after upgrading from 10.x to 11
+ Improved code by simplifying logic, break logic up into functions, etc
2021-05-06 19:16:50 -07:00
James
e7fe96f176 remove default python, allow option for bash 2021-03-29 16:30:58 -07:00
Zack T
423f8a9c6b v1.3.1 = Code Improvement
No logic or functionality changes.
2021-03-22 13:57:56 -07:00
Zack T
ee29713b1f v2.4.0 = Updated to check if the network filter is enabled
+ Updated to check if the network filter is enabled
2021-03-17 14:03:49 -07:00
Zack T
5865064713 v1.0.0 = Initial Version
Initial Version
2021-03-16 12:10:36 -07:00
Zack T
27e9ad7016 v1.4.0 = Better support for Big Sur & Converted to Python3
+ Updated to better support Big Sur
+ Converted to Python3
+ Recording to a local .plist instead of being ran straight through a Jamf Pro EA
2021-03-16 12:09:53 -07:00
Zack T
47bca78138 v2.3.0 = Fixed issue where the Locale isn't set as expected
+ `falconctl stats` was being affected by the configured Locale, adjusting it to the expected Locale supported by this script
2021-03-15 20:32:14 -07:00
Zack T
e9523f608c v2.2.0 = "Fixed" unsupported versions reporting "Running"
Apparently when I dropped support for unsupported Sensor versions.....I didn't account for them in the script at all....  That has now been fixed.
2021-02-26 23:22:20 -07:00
Zack T
59f85105c9 v1.2.0 = Minor tweaks
Just a few minor tweaks, no change in logic.
2021-02-19 00:04:53 -07:00
Zack T
8275f566c2 Added new and improved existing queries, updated formatting, etc.
+ Added new and improved existing queries; combined some existing queries that were similar
+ Updated formatting
+ Updated notes
2020-11-25 17:17:27 -07:00