VMware Workspace ONE Community
gowdaman-klr
Contributor
Contributor

Sample sensor script for Mac - OS Edition

I am looking for sample sensor script which can give the information of Mac OS edition like Mac OS Big Sur.

I could find scripts for OS version but not the exact OS edition. If someone could help me that would be appreciated !!

0 Kudos
2 Replies
ogushia
Hot Shot
Hot Shot

Hi,
I have received similar requests from my customers in the past and achieved them with this sensor script.
------------
#!/bin/bash
productv = $(/usr/bin/sw_vers -productVersion)
echo $productv
------------

The output looks like this:
11.6.1

0 Kudos
gowdaman-klr
Contributor
Contributor

Thanks for your response.

Yeah, I got this one to get the version number. But i am looking for something which can give the OS name like Mac Big Sur Mac Catalina

0 Kudos