Zirkul DevSecOps
  • Welcome
  • DevSecOps
    • Getting started
    • Creating Jobs
    • Running Jobs
    • Azure DevOps Pipelines
    • Jenkins Pipelines
    • Job Script Syntax
    • Script templates
  • Zirkul Agent
    • Running the Agent
      • Command Line Interface
    • Command reference
      • Help
      • Clear
      • Var
      • Vars
      • Print
      • Date
      • Now
      • UTCNow
      • Day
      • Month
      • Year
      • Hour
      • Minute
      • Second
      • Env
      • Is base64
      • To base64
      • From base64
    • Scanner signatures
Powered by GitBook
On this page
  • Stand alone
  • Webhook Trigger
  • Service Mode
  1. Zirkul Agent

Running the Agent

PreviousScript templatesNextCommand Line Interface

Last updated 9 months ago

Zirkul Agent can be used for several tasks including:

  • Stand alone tool: for security tasks such as manually running scans or commands taking advantage fo the plugins available.

  • Webhook Trigger: for starting CICD jobs.

  • Service mode: for running as a system service within your infrastructure for executing Jobs created for CICD pipelines.

Stand alone

Zirkul Agent was initially designed as a command line tool for security automation, you can simply run zirkul from terminal for starting the interactive command line interface:

zirkul

Webhook Trigger

You can use the Agent for calling webhooks used for starting Jobs in Zirkul Server:

zirkul --apikey "<api_key>" --webhook "<token>" --agent "<agent_key>" --wait

Where:

  • <api_key> is the API Key created in Zirkul Server.

  • <agent_key> is the Agent name or key you want to assign.

Note:

  • --server is optional, the default value is 'https://app.zirkul.com'

  • --webhook is required for calling a web hook.

  • --apikey is required for calling a web hook.

  • --agent is required for calling a web hook.

  • --wait is optional, use this if you want the agent to wait until the Job is completed.

Service Mode

Service mode is used for running the agent as system service that will continue running continuously waiting for Jobs to be executed.

zirkul --server "https://app.zirkul.com" --service --agent "<agent_key>" --apikey "<api_key>"

Where:

  • <api_key> is the API Key created in Zirkul Server.

  • <agent_key> is the Agent name or key you want to assign.

Note:

  • --server is optional, the default value is 'https://app.zirkul.com'

  • --service is required for running in service mode.

  • --apikey is required for running in service mode.

  • --agent is required for running in service mode.

See more in

<token> is the webhook token id assigned to the Job you want to run. see

Command Line Interface
Creating Jobs