I am using cpinfo -y to gather information on OS and Take version. The only issue is that it outputs the version to the screen and then the information. So I am always getting the cpinfo version published into the output (using Backbox Tech Survey.)
#cpinfo -y SecurePlatform |grep "Take" | awk '{print $2,$3}'
This is Check Point CPinfo Build 914000239 for GAIA
Take: 38
The full return is:
#cpinfo -y SecurePlatform
This is Check Point CPinfo Build 914000239 for GAIA
[SecurePlatform]
HOTFIX_ENDER_V17_AUTOUPDATE
HOTFIX_R81_20_JUMBO_HF_MAIN Take: 38
#
So in my report, I get this in my spreadsheet cell.
This is Check Point CPinfo Build 9140002A39 for GAIA
Take: 38
Any thoughts on how to not show the version? I have tried a few of the variables and they do not work