blueprint: NorthStar (v5) and HealthBot (v2.0.2) | |||||||||
video | |||||||||
Log into the GUI | |||||||||
NortStar NorthStar or NS login | https://<ip@><port>admin <ip@>:<port> ( admin // Juniper!11 ) | ||||||||
HealthBot | SSH or https://jcluser ( jcluser // Juniper!11 ) | ||||||||
Add Allowed network prefix | Commands menu >> Add Allowed network prefix >>> <enter ip address of client> | ||||||||
CLI on Healthbot | |||||||||
Start healthbot_listener.py ( Webhook + trigger NS to put the link in maintenance) | Log into ssh jcluser@healthbot ( jcluser // Juniper!1 ) It's a webhook, listen for HB messages Usage: jcluser@ubuntu:~$ ls
jcluser@ubuntu:~/self_healing$ ls
user_function.py Code Block | | |||||||
| |||||||||
Create two Tunnels: PCEP and NETCONF | |||||||||
Tunnel 1 = jlk_4_to_1_PCEP ( Control type: PCEInitiated ) Path Computation Element Protocol Tunnel 2 = jlk_4_to_1_Netconf ( Control type: Device Controlled ) and Application Menu >> Path Optimization >> path optimization >> Enable + 1 minute | |||||||||
Set the Path Optimization every minutes | |||||||||
Display the Delay Tab | |||||||||
Connect on the CentOS ( to create delay ) | |||||||||
add delay | Log into the CentOS ( jcluser / Juniper!1 ) su - ( Juniper!1 ) ./add_delay.sh [root@CentOS ~]# more add_delay.sh | ||||||||
SSH to HealthBot | |||||||||
healthbot_listener.py output HealthBot : monitopr the RPM HB >>> threshold cross >>> change the status on the HB + send an "put in maintenance the link" to NortStar Code Block | | ||||||||
| Monitor Output received delay alert
EXHUASTIVE LINK FAILURE SIMULATION for vMX-6 7.105.106.2 { "topoObjectType": "maintenance", "topologyIndex": 1, "user": "admin", "name": "created_for_simulation", "startTime": "20200716T230400Z", "endTime": "20200718T150400Z", "elements": [ { "topoObjectType": "link", "index": 9 } ] } SIMULATION RESULT true HIGH DELAY DETECTED PUT LINK UNDER MAINTENANCE:: { "topoObjectType": "maintenance", "topologyIndex": 1, "user": "admin", "name": "Healthbot-link-health-alert202007141104", "startTime": "20200714T110500Z", "endTime": "20200718T150400Z", "elements": [ { "topoObjectType": "link", "index": 9 } ] } { "topoObjectType": "maintenance", "topologyIndex": 1, "user": "admin", "name": "Healthbot-link-health-alert202007141104", "startTime": "20200714T110500Z", "endTime": "20200718T150400Z", "elements": [ { "topoObjectType": "link", "index": 9 } ] } ############################### 172.22.0.3 - - [14/Jul/2020 04:04:29] "POST / HTTP/1.1" 200 - | WebHook ( send to webserver ) on HB | 1- WebHook config under: Settings Menu >> Notification Settings2- Add the WebHook Notification to the Device group under: Dashboard >> Select a Device group
2- Add the WebHook Notification to the Device group under: Dashboard >> Select a Device groupSIMULATION RESULT true | ||||||
On NorthStar | |||||||||
1- Link goes on maintenance mode 2- Tunnel re-router to avoid the link | |||||||||
Go to the maintenance tab | |||||||||
Page Comparison
General
Content
Integrations