Learn how to upload custom JDBC drivers to agents using the CLI command, verify successful uploads, and manage driver files in the agent directory.
- Access the VM where the agent is installed and upload the JDBC driver to an agent
using the command:
./discli drivers upload --name <driverDisplayName> --driverPath <driverPath>The
<driverDisplayName>must match thedriver.display.namepresent in thedriver.propertiesfile. - The driver will be uploaded successfully if the corresponding message appears in the
terminal. The uploaded driver files are stored in the directory:
/precisely/drivers/ - To verify the uploaded drivers, use the command :
./discli drivers list
| Commands | Description | Examples |
|---|---|---|
upload <file>
|
Uploads a driver zip file to the container's volume. Mandatory parameters:
Important: The zip file must
not contain nested folders or subfolders. All driver files
must be located at the first (root) level of the
.zip file.Optional parameters:
--help or -h: Help for drivers
upload. |
./discli drivers upload
--name driverDisplayName --driverPath driverpath.zip
The folder structure must be in either of the
below
formats:
or
|
list
|
Lists all available drivers/packages in the container's volume. |
/discli drivers list |
delete <driver>
|
Deletes the driver with the specified ID from the container's volume. |
./discli drivers delete
driver_id |