Example - Checking Files

The file checker is a multi-threaded, file oriented client that is implemented as simple as possible using the REST API "IsKnownGood". It only requires standard Java libraries and is implemented in ~128 lines of code.

The file checker allows to validate what files are known by the GRID simply by executing it on the local computer. (The built-in defaults direct the calls to the live GRID system).

Basic Usage

java -cp gacl-client-1.2.4-RC.jar TrivialFileChecker [path1] [path2] ...

java -cp gacl-client-1.2.4-RC.jar -Dhost=hostOrIp:8080 -Dprotocol=http\
    TrivialFileChecker [path1] [path2] ...

Query the known, know good and known bad states on all installed applications

java -cp gacl-client-1.2.4-RC.jar TrivialFileChecker "C:\Program Files"

Store the results inside a file for later analysis (e.g. with Excel)

java -cp gacl-client-1.2.4-RC.jar TrivialFileChecker "C:\Program Files" > results.log

Commandline Reference

The trivial client was done with as little effort as possible, therefore there are only 3 system properties that can be set to control the behaviour of the client.

PropertyDescription
-DhostHostname or IP of the GACL node or load balancer, optionally including port number. 
Defaults to: "gacl.trendmicro.com"
-DprotocolProtocol to use for connecting to the GACL node. 
Defaults to: "https"
-DconnectionsAmount of concurrent connections. 
Defaults to: "16"

Source Code

Source Code of the Client: TrivialFileChecker.java