You can enable subscribers with all the notification types of device events and alerts.
Use the following command to a register a new subscriber to the Notification service with an HTTPS webhook:
(efa:root)XCO-Server# efa notification subscribers add-https Register a new https webhook subscriber to the notification service.
For syntax and command examples, see the ExtremeCloud Orchestrator Command Reference, 3.3.1
#efa notification subscribers add-https --url https://127.0.0.1:5000 –username jarvis --password vision --insecure --filter DEVICE_EVENTS --device-event audit-firmware,audit-security,audit-configuration Successfully registered subscriber. +-----------+---------------------------------------------------+ | attribute | value | +-----------+---------------------------------------------------+ | id | 18 | +-----------+---------------------------------------------------+ | handler | http | +-----------+---------------------------------------------------+ | endpoint | https://127.0.0.1:5000 | +-----------+---------------------------------------------------+ | config | {"cacert":"","filters":["DEVICE_EVENTS"], | | |”device-event”:[”audit-firmware”,audit-security", | | | ”audit-configuration”],"insecure":true,"password":| | |"vision","username":"jarvis"} | +-----------+---------------------------------------------------+ Notification Subscriber ID=18 --- Time Elapsed: 2.148580069s ---
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure --filter APP_ALERTS,DEVICE_EVENTS --device-event audit-security,audit-configuration --minimum-severity warning Successfully registered subscriber. +-----------+--------------------------------------------------------+ | attribute | value | +-----------+--------------------------------------------------------+ | id | 19 | +-----------+--------------------------------------------------------+ | handler | relp | +-----------+--------------------------------------------------------+ | endpoint | 127.0.0.1:1601 | +-----------+--------------------------------------------------------+ | config | {"cacert":"","conn-timeout":10,"filters":["APP_ALERTS",| | | "DEVICE_EVENTS"],”device-event”:[”audit-security”, | | } ”audit-configuration”],”minimum-severity”,”warning”, | | | "insecure":true} | +-----------+--------------------------------------------------------+ Notification Subscriber ID=19 --- Time Elapsed: 2.172557260s ---
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure --minimum-severity error Successfully registered subscriber. +-----------+---------------------------------------------+ | attribute | value | +-----------+---------------------------------------------+ | id | 20 | +-----------+---------------------------------------------+ | handler | relp | +-----------+---------------------------------------------+ | endpoint | 127.0.0.1:1601 | +-----------+---------------------------------------------+ | config | {"cacert":"","conn-timeout":10,"filters":[],| | | ”minimum-severity”,”error”,"insecure":true} | +-----------+---------------------------------------------+ Notification Subscriber ID=20 --- Time Elapsed: 2.042797881s ---