Terminal command from Mosyle to retrieve both version and build

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
GradyGoose
OpenVpn Newbie
Posts: 1
Joined: Mon Nov 13, 2023 6:17 pm

Terminal command from Mosyle to retrieve both version and build

Post by GradyGoose » Mon Nov 13, 2023 6:21 pm

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

User avatar
JosephS
OpenVPN Inc.
Posts: 54
Joined: Fri Feb 17, 2023 5:15 pm

Re: Terminal command from Mosyle to retrieve both version and build

Post by JosephS » Mon Dec 11, 2023 10:55 am

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

Post Reply