LogoLogo
LogoLogo
  • Welcome
  • Introduction
  • Beginning
    • Server Configuration
    • Sidebar
    • Binaries
  • Client Executables
    • client.exe
    • chaiCmd.exe
    • rmService.exe
  • Modules
    • Module Configuration
    • Inventory
    • File
    • PST
    • Custom
    • Server
    • Folder Lists
    • Own Blob Storage
  • Groups
    • Groups General Overview
    • Groups Configurations
  • Clients Menu
    • Overview
    • Client Information
    • Module Information
  • Reporting
    • Reporting
    • Customize Reports
  • Recipes
    • Group based actions
    • Time based actions
    • Set bandwidth
    • Dump Config
    • Remove PSTs
    • Server Module Scripting
    • Self Service
  • ChaiScript Reference
    • ChaiScript Overview
    • GK Script Object Reference
      • Module Reference
      • HTTP Reference
      • Web Browser
      • File System
      • Graph Reference
      • MS Graph Authentication
      • Hash Reference
      • Registry Reference
      • COM
      • Self Update Reference
Powered by GitBook
On this page
  • A exemplary chaiCmd.exe usage
  • Report generation

Was this helpful?

  1. Client Executables

chaiCmd.exe

  • Command .exe file

  • Suitable for testing configurations and settings

  • Suitable for reporting

A exemplary chaiCmd.exe usage

Create reporting with server_query.chai (carbon => subfolder testscripts)

chaiCmd.exe ..\testscripts\server_query.chai

Usage: server_query.chai [PROJECT] [TOKENFILE] [COMMAND] [ARGS...]

Command can be one of the following:

Command
Result

groups

list groups

software

list installed software (Additional args: [GROUPID-optional])

progress

list client progress (Additional args: [GROUPID-optional])

errors

list client errors (Additional args: [GROUPID-optional])

files

get files report (Additional args: [CLIENTID])

clientjson

clientjson download client json data (Additional args: [CLIENTID])

log

download log file (Additional args: [CLIENTID])

module

download module data (Additional args: [CLIENTID] [MODULE])

Report generation

chaiCmd.exe ..\testscripts\server_query.chai [projectname] token.txt>test.csv

It creates a progress reporting. Optional use a GroupID to specify a report.

chaiCmd.exe ..\gkScriptModule\testscripts\server_query.chai [projectname] token.txt groups

It creates a GroupID - name list

Last updated 1 year ago

Was this helpful?