/
CMS_ExistPackageOnManagementServer
CMS_ExistPackageOnManagementServer
Description
Checks if the specified package exists on the management server the agent is connected to
Syntax
CMS_ExistPackageOnManagementServer(sPackage, sVersion, bMustExist) as Boolean
Parameters
sPackage (String)
Name of the package
sVersion (String)
Version of the package
bMustExist (Boolean)
Should missing package make the function return false
Return value
Result will be stored in gbValue
Example
VBScript
If bStatus Then bStatus = CMS_ExistPackageOnManagementServer("TestPackage", "v1.0", False) If bStatus And gbValue Then bStatus = Job_WriteLog("Custom", "Package exists", bStatus, True)
Related functions
, multiple selections available,
Related content
CMS_ExistPackageOnManagementServer
CMS_ExistPackageOnManagementServer
More like this
CMS_ExistPackageOnManagementServer
CMS_ExistPackageOnManagementServer
More like this
CMS_ExistPackageOnManagementServer
CMS_ExistPackageOnManagementServer
More like this
CMS_GetPackageStatus
CMS_GetPackageStatus
More like this
CMS_GetPackageStatus
CMS_GetPackageStatus
More like this
CMS_GetPackageStatus
CMS_GetPackageStatus
More like this