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

Was this helpful?

  1. Recipes

Set bandwidth

Use mainConfigCheck() to change bandwidth settings.

To change some values use the following code:

def mainConfigCheck(globalSettings, config) {

    if (this or that) {
        config["bandwidthSettings"]["maxBandWidth"] = 200000;
        config["bandwidthSettings"]["minSleepTime"] = 10;
    }
}

To overwrite the complete bandwidthSettings object use the following code:

def mainConfigCheck(globalSettings, config) {

    if (this or that) {
        config["bandwidthSettings"] = [
            "maxBandWidth": 10000,
            "slowNetworkBarrier": 300,
            "slowNetworkUsage": 0.25,
            "unusableNetworkBarrier": 200,
            "unusableWaitTime": 120,
            "minSleepTime": 500,
            "useMeteredConnection":true
        ];
    }
}

Last updated 1 year ago

Was this helpful?