Instead of waiting for a prompt to enter each setting individually, you can use a file to load settings as a batch.
The file format varies depending on the appliance type you are configuring. See File formats for agentless configuration settings.
Create a plain text file that contains the agentless configuration settings.
For example, the AWS configuration file will look like this:
AWS_ACCOUNT_ID=123456789012
AWS_REGION=us-east-4
ACCESS_KEY_ID=ABCD12E3F4GHIJ567KLM
SECRET_KEY=HIDNmmbd55416d1vXIHNC415HhiwY84Yni8484B
You must create a separate file for each load balancer you configure. You cannot combine settings into a single file.
Save the configuration file to a directory on the host where the sensor is installed.
Run the addagentless
command to apply the configuration file.
./addagentless.sh -type (BIGIP | NETSCALER | A10 | AWS) -file path
For example: ./addagentless.sh -type AWS -file /app/Sensor/cli/awsfile
addagentless.bat -type (BIGIP | NETSCALER | A10 | AWS) -file path
For example: addagentless.bat -type AWS -file /app/Sensor/cli/awsfile
Appliance | Example file formats |
---|---|
F5 BIG-IP |
MANAGEMENT_IP=10.141.17.192 MANAGEMENT_PORT=443 WEB_USERNAME=username1 WEB_PASSWORD=password1 |
Citrix NetScaler |
MANAGEMENT_IP=10.141.17.192 MANAGEMENT_PORT=443 WEB_PROTOCOL=http WEB_USERNAME=username01 WEB_PASSWORD=password01 SSH_USERNAME=username02 SSH_PASSWORD=password02 SSH_PORT=20 |
A10 |
MANAGEMENT_IP=10.141.17.192 MANAGEMENT_PORT=443 ADMIN_USERNAME=username001 ADMIN_PASSWORD=password001 |
AWS |
AWS_ACCOUNT_ID=123456789012 AWS_REGION=us-east-4 ACCESS_KEY_ID=ABCD12E3F4GHIJ567KLM SECRET_KEY=HIDNm+bd55416d1vXIHNC415HhiwY84Yni8484B |