I have the following command that works (in Mosyle) to retrive the version of the client, but I would also like the build and I cannot figure out that last part.
mdls -name kMDItemVersion /Applications/OpenVPN\ Connect.app
So this for example produces kMDItemVersion - "3.4.4" , and I would like it to be: kMDItemVersion - "3.4.4" 4682
Terminal command from Mosyle to retrieve both version and build
-
- OpenVpn Newbie
- Posts: 1
- Joined: Mon Nov 13, 2023 6:17 pm
- JosephS
- OpenVPN Inc.
- Posts: 54
- Joined: Fri Feb 17, 2023 5:15 pm
Re: Terminal command from Mosyle to retrieve both version and build
Hi GradyGoose,
I believe this is a macOS related topic so in the future please consider posting similar topics in this forum section:
viewforum.php?f=38
As for how the command works in Mosyle, I'm not sure.
But the Connect app has a CLI functionality that will display the build number you are looking for.
Via the terminal navigate to the following folder:
/Applications/OpenVPN Connect.app/Contents/MacOS
Execute the next command:
./OpenVPN\ Connect --version
Hope this was helpful.
With Regards,
JosephS
I believe this is a macOS related topic so in the future please consider posting similar topics in this forum section:
viewforum.php?f=38
As for how the command works in Mosyle, I'm not sure.
But the Connect app has a CLI functionality that will display the build number you are looking for.
Via the terminal navigate to the following folder:
/Applications/OpenVPN Connect.app/Contents/MacOS
Execute the next command:
./OpenVPN\ Connect --version
Hope this was helpful.
With Regards,
JosephS