-
Notifications
You must be signed in to change notification settings - Fork 205
Description
Users with many tamper protected Agent policies want a way to provide many uninstall tokens to Agent. That has been supported since tamper protection was first released, we just missed documenting it.
There are two ways to provide multiple uninstall tokens.
1. A comma separated list
--uninstall-token can receive multiple tokens that are separated by a comma (no spaces).
A Linux example is sudo /opt/Elastic/Agent/elastic-agent uninstall -f --uninstall-token 7b3d364db8e0deb1cda696ae85e42644,a7336b71e243e7c92d9504b04a774266
1. A file with one token per line
--uninstall-token's argument can also be a path to a file with one uninstall token per line. It's important to note that the full path to the file should be used or the file may not be found.
A Linux example command is sudo /opt/Elastic/Agent/elastic-agent uninstall -f --uninstall-token /tmp/tokens.txt where tokens.txt contains
7b3d364db8e0deb1cda696ae85e42644
a7336b71e243e7c92d9504b04a774266
cc @caitlinbetz @nfritts @cmacknz for visibility