Octopus Agent: command line examples

Several usefull examples for Octopus Tentacle Agent configuring

How to start stop Tentacle instance from command line:

C:\Program Files\Octopus Deploy\Tentacle>Tentacle.exe --service --stop
C:\Program Files\Octopus Deploy\Tentacle>Tentacle.exe --service --start

To regenerate tentacle certificate:

C:\Program Files\Octopus Deploy\Tentacle>Tentacle.exe --service --stop
C:\Program Files\Octopus Deploy\Tentacle>Tentacle.exe new-certificate -e cert.txt
C:\Program Files\Octopus Deploy\Tentacle>Tentacle.exe import-certificate --instance "Tentacle" -f "cert.txt" --console
C:\Program Files\Octopus Deploy\Tentacle>Tentacle.exe --service --start

How to create and initialize Octopus polling Tentacle from command line:

"C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" create-instance --instance "Tentacle" --config "C:\Octopus\Tentacle.config"
"C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" new-certificate --instance "Tentacle" --if-blank
"C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" configure --instance "Tentacle" --reset-trust
"C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" configure --instance "Tentacle" --home "C:\Octopus" --app "C:\Octopus\Applications" --port "10933" --noListen "True"
"C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" service --instance "Tentacle" --stop
"C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" polling-proxy --instance "Tentacle" --proxyEnable "False" --proxyUsername "" --proxyPassword "" --proxyHost "" --proxyPort ""
"C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" service --instance "Tentacle" --start
"C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" register-with --instance "Tentacle" --server "https://octopus.domain.com:8089" --name "TEST-02" --comms-style "TentacleActive" --server-comms-port "10943" --force --apiKey "API-************" --environment "Test" --role "Database" --role "Backup" --policy "Default Machine Policy"
"C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" service --instance "Tentacle" --install --stop --start

Related posts:

____

AskDevops —> https://t.me/ithangouts

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *