- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-21-2023 06:13 PM
Dear Team,
We currently configured Prisma Container Scan task as a Stage in one of our Pipeline. We are using Twist-cli and Jenkins to perform the image scanning in the stage. We wanted to skip this stage if Prisma is not accessible or available or facing any downtime.
Is there any CLI command that we can use to check Prisma Health Status or availability to verify if it is active and then proceed to the image scan issue.
Really appreciate your response
Thanks
03-20-2024 07:19 AM
Hello,
The twistcli utility does not have a command to perform a health check. A suggestion would be to add a stage in the pipeline to run twistcli to scan the host itself. This would initiate a call to the console in the process of performing the scan. This way, if that connection fails, then you can use that in the pipeline stage as a way to condition the continuation of the pipeline execution
Example:
sudo twistcli hosts scan --address $Prisma_Console -u $Console_User -p $User_key --skip-docker --details
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!