Hard Drive Audit - Mac
0 Votes |
Versioning - This is the latest version.
1 | Hard Drive Audit - Mac | 5/28/2013 10:18:50 AM |
2 | Hard Drive Audit - Mac | 7/15/2014 7:05:30 AM |
3 | Hard Drive Audit - Mac | 6/19/2018 12:23:11 PM |
Description
Analysis to gather various Hard Drive information including serial number, firmware, media type, etc. on Mac OS computers.
Property Details
2998593 | |
Production - Fully Tested and Ready for Production | |
Hard Drive Audit - Mac | |
BESC | |
kerryt9455 on 6/19/2018 12:23:11 PM | |
kerryt9455 on 6/19/2018 12:23:11 PM | |
8414 Views / 8 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Properties
Drive Model
Period
7 days
* Results in a true/false |

unique values whose (it as string as trimmed string != "") of ((if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Product Name") of dictionaries "Device Characteristics" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Product Name") of dictionaries "Device Characteristics" of dictionaries of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Product Name") of dictionaries "Device Characteristics" of dictionaries of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Product Name") of dictionaries "Device Characteristics" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Product Name") of dictionaries "Device Characteristics" of dictionaries of node "IONVMeBlockStorageDevice" of nodes of nodes of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")))
Hard Drive Serial Numbers
Period
7 days
* Results in a true/false |

unique values whose (it as string as trimmed string != "") of ((if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Serial Number") of dictionaries "Device Characteristics" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Serial Number") of dictionaries "Device Characteristics" of dictionaries of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Serial Number") of dictionaries "Device Characteristics" of dictionaries of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Serial Number") of dictionaries "Device Characteristics" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Serial Number") of dictionaries "Device Characteristics" of dictionaries of node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")))
Drive Firmware
Period
7 days
* Results in a true/false |

unique values whose (it as string as trimmed string != "") of ((if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Product Revision Level") of dictionaries "Device Characteristics" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Product Revision Level") of dictionaries "Device Characteristics" of dictionaries of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Product Revision Level") of dictionaries "Device Characteristics" of dictionaries of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Product Revision Level") of dictionaries "Device Characteristics" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Product Revision Level") of dictionaries "Device Characteristics" of dictionaries of node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")))
Total Free Space of System Drive
Period
6 hours
* Results in a true/false |

((free space of filesystem of folder "/") / (1024*1024*1024)) as string & " GB"
Total Used Space of System Drive
Period
6 hours
* Results in a true/false |

(((size of filesystem of folder "/") - (free space of filesystem of folder "/")) / (1024*1024*1024)) as string & " GB"
% Free Space of System Drive
Period
6 hours
* Results in a true/false |

free percent of filesystem of folder "/"
Size of TEM DL Cache
Period
1 day
* Results in a true/false |

if exists (folder "/Library/Application Support/BigFix/BES Agent/__BESData/__Global/__Cache") then ((sum of sizes of descendants of folder "/Library/Application Support/BigFix/BES Agent/__BESData/__Global/__Cache") / (1024 * 1024)) as string & " MB" else "<none>"
Size of tmp Folder
Period
1 day
* Results in a true/false |

if exists (folder "/tmp") then ((sum of sizes of descendants of folder "/tmp") / (1024 * 1024)) as string & " MB" else "<none>"
Physical Block Size
Period
7 days
* Results in a true/false |

unique values whose (it as string as trimmed string != "") of ((if (exists node "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (integers of values of entries whose (key of it = "Physical Block Size") of dictionaries of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry as string) else ("")); (if (exists node "IOBlockStorageDriver" of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (integers of values of entries whose (key of it = "Physical Block Size") of dictionaries of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry as string) else ("")); (if (exists node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (integers of values of entries whose (key of it = "Physical Block Size") of dictionaries of node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry as string) else ("")))
Media Type
Period
7 days
* Results in a true/false |

unique values whose (it as string as trimmed string != "") of ((if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Medium Type") of dictionaries "Device Characteristics" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IOBlockStorageDriver" of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Medium Type") of dictionaries "Device Characteristics" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Medium Type") of dictionaries "Device Characteristics" of dictionaries of node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")))
Native Command Queuing
Period
7 days
* Results in a true/false |

unique values whose (it as string as trimmed string != "") of ((if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (booleans of values of entries whose (key of it = "NCQ") of dictionaries of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry as string) else ("")); (if (exists node "IOBlockStorageDriver" of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (booleans of values of entries whose (key of it = "NCQ") of dictionaries of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry as string) else ("")); (if (exists node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("NVMe") else ("")))
Queue Depth
Period
7 days
* Results in a true/false |

unique values whose (it as string as trimmed string != "") of ((if (exists node "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (integers of values of entries whose (key of it = "Queue Depth") of dictionaries of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry as string) else ("")); (if (exists node "IOBlockStorageDriver" of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (integers of values of entries whose (key of it = "Queue Depth") of dictionaries of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry as string) else ("")); (if (exists node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")))
Interconnect
Period
7 days
* Results in a true/false |

unique values whose (it as string as trimmed string != "") of ((if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Physical Interconnect") of dictionaries "Protocol Characteristics" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IOBlockStorageDriver" of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Physical Interconnect") of dictionaries "Protocol Characteristics" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")); (if (exists node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (strings of values of entries whose (key of it = "Physical Interconnect") of dictionaries "Protocol Characteristics" of dictionaries of node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) else ("")))
TRIM
Period
7 days
* Results in a true/false |

if (system version >= "10.7") then (unique values whose (it as string as trimmed string != "") of (unique values whose (it as string as trimmed string != "") of ((if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (booleans of values of entries whose (key of it = "Unmap") of dictionaries "IOStorageFeatures" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry as string) else ("")); (if (exists node "IOBlockStorageDriver" of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (booleans of values of entries whose (key of it = "Unmap") of dictionaries "IOStorageFeatures" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry as string) else ("")); (if (exists node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (booleans of values of entries whose (key of it = "Unmap") of dictionaries "IOStorageFeatures" of dictionaries of node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry as string) else (""))))) else ("<unsupported os>" as string)
Drive RPM
Period
7 days
* Results in a true/false |

unique values whose (it as string as trimmed string != "") of ((if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then (integers of values of entries whose (key of it = "Rotation Rate") of dictionaries "Device Characteristics" of dictionaries of nodes "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of it of nodes "SATA" of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry as string) else ("")); (if (exists node "IOBlockStorageDriver" of nodes "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOBlockStorageServices" of nodes "IOSCSIPeripheralDeviceType00" of nodes "IOSCSILogicalUnitNub" of nodes "IOSCSITargetDevice" of nodes whose (name of it starts with "SAS Target") of nodes "AppleLSIFusionSAS" of nodes "SAS" of nodes "IOPCI2PCIBridge" of nodes of nodes "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IOAHCIBlockStorageDevice" of nodes "AppleAHCIDiskDriver" of nodes "IOAHCIDevice" of nodes of nodes of nodes of nodes of it of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")); (if (exists node "IONVMeBlockStorageDevice" of nodes of nodes whose (name of it starts with "SSD") of nodes of nodes of node "AppleACPIPCI" of node "PCI0" of node "AppleACPIPlatformExpert" of service plane of iokit registry) then ("N/A") else ("")))
Relevance
Sharing
Social Media: |
Comments
![]() |
|
Significantly updated to work with much more modern hardware and also added support for at least some old Xserve models as well. |
![]() |
|
On newer Macs, we need to look at all RP nodes for hard drive info. I suggest: s/name of it ="RP01"/name of it starts with "RP"/g |
![]() |
|
Added in TRIM (works on machines I've tested), RPM where available and now functions with newer PCIe based Apple drives. Still haven't figured out a way to get SMART status. |