# filegen-client
A utility to test and benchmark a
*[filegen-server](../filegen-server/README.md)*.

The *filegen-client* utility may be used to send queries to a running
*filegen-server* in order to debug or benchmark the server.

## Usage
*Filegen-client* will get per-machine file data for a specified pathname from
the specified *filegen-server*. The data for each machine are written to stdout.
The basic usage pattern is:

```
filegen-client [flags...] pathname source
```

Built-in help is available with the command:

```
filegen-client -h
```

The `-mdbFile` option specifies the file to read MDB data from. If this file
changes then it is re-read and if the MDB data for any machine changes, new file
contents will be generated and displayed.

## Security
*[Filegen-server](../filegen-server/README.md)* restricts RPC access using TLS
client authentication. *Filegen-client* expects a valid certificate and key in
the files `~/.ssl/cert.pem` and `~/.ssl/key.pem`, respectively. *Filegen-client*
will present this certificate to *filegen-server*. If the certificate is signed
by a certificate authority that *filegen-server* trusts, *filegen-server* will
grant access.

Check in short documentation page for filegen-client.
Check in short documentation page for filegen-client.
