Prisma Cloud Health Check via Cli

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Prisma Cloud Health Check via Cli

L0 Member

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

1 REPLY 1

L1 Bithead

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

  • 1175 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!