Healthbot files management (rules, playbooks) with CLI - ksator/junos_monitoring_with_healthbot GitHub Wiki
The directory rules has rules examples
The directory playbooks has playbooks examples
We will see how to load files (rules, playbooks) to healthbot using healthbot CLI
ssh to healthbot and start a shell session in the MGD container
$ docker ps | grep mgd
$ docker exec -it <container_id> bash
Example with container b0841c08522a
$ docker exec -it b0841c08522a bash
start cli
root@b0841c08522a:/# cli
load the configuration to MGD
root@b0841c08522a> request iceberg load
edit candidate configuration
root@b0841c08522a> edit
to load these rules and playbooks:
- run the below command
- copy the files from rules directory and playbooks directory
- and paste them
root@b0841c08522a# load merge terminal relative
compare the candidate configuration and the running configuration
root@b0841c08522a# show | compare
commit the changeset
root@b0841c08522a# commit and-quit
deploy the change from mgd to heathbot
root@b0841c08522a> request iceberg deploy