Hey Alain
I'm Adam from Diagnostics (owners of CPView)
Be aware that "cpview -p" was meant for debugging purposes (not as an API) and was deprecated in newer release
We've added SNMP capabilities to CPView, so you can use any SNMP tool to monitor your environments
And we plan to add support to RestAPI in the future
As for your question there isn't an official API for getting the AV package version from the GW
But you can see it in this file
cat $FWDIR/amw_kss/update/Version
(
:pkg_version (1109220741)
:pkg_timestamp (1304253360)
)
So you can run it with awk to get your desired output
Thanks