Get Ignition Version Script from Gateway Scope

Is there any way to get the Ignition version from the gateway scope?
I know there’s a tag at “[System]Client/System/FPMIVersion” but that doesn’t have a value when i call it from a gateway scoped script.

I believe you should be able to use system.util.getVersion() for this

According to the manual: system.util.getVersion - Ignition User Manual 8.1 - Ignition Documentation

system.util.getVersion() should get you what you need

That’s not available in 7.9 though.

Well that would have been good info to know at the beginning… so you may have to dig deep into the API to pull that information out.

1 Like

Could something like this work:

ver = system.net.httpGet('https://yourGatewayAddress:8043/main/system/gwinfo')
ver = ver.split(';')[3].split('=')[1]
print ver
1 Like

system.util.getVersion() essentially just does this, which should work fine on 7.9:

from com.inductiveautomation.ignition.common import BundleUtil
version = BundleUtil.get().getVersion().toString()

Awesome, thank you all for the responses.