Registers a syslog subscriber to receive notifications over Reliable Event Logging Protocol (RELP) from the EFA Notification service.
By default, subscribers do not receive syslog notifications over RELP.
host:port format. The default port is 514. Syslog server
address can be IPv4 or IPv6.Any external server that is configured with RELP can be registered as a subscriber to EFA notifications. For more information, see "Notification Service" in the Extreme Fabric Automation Administration Guide.
The following example registers 10.x.x.x:20514 as a subscriber for insecure notifications.
$ efa notification subscribers add-syslog-relp --address
10.x.x.x:20514 --insecure
Successfully registered subscriber.
+-----------+------------------------------------------------+
| attribute | value |
+-----------+------------------------------------------------+
| id | 1 |
+-----------+------------------------------------------------+
| handler | relp |
+-----------+------------------------------------------------+
| endpoint | 10.x.x.x:20514 |
+-----------+------------------------------------------------+
| config | {"cacert":"","conn-timeout":10,"insecure":true}|
+-----------+------------------------------------------------+
Notification Subscriber ID=1
--- Time Elapsed: 2.399195253s ---
The following example enables rsyslog subscriber with only APP_ALERTS and DEVICE_EVENTS.
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure
--filter APP_ALERTS,DEVICE_EVENTS
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"],"insecur |
| | e":true} |
+-----------+----------------------------------------------------------------------------------+
Notification Subscriber ID=19
--- Time Elapsed: 2.172557257s ---
The following example enables all notification types on rsyslog subscriber.
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure
Successfully registered subscriber.
+-----------+--------------------------------------------------------------+
| attribute | value |
+-----------+--------------------------------------------------------------+
| id | 20 |
+-----------+--------------------------------------------------------------+
| handler | relp |
+-----------+--------------------------------------------------------------+
| endpoint | 127.0.0.1:1601 |
+-----------+--------------------------------------------------------------+
| config | {"cacert":"","conn-timeout":10,"filters":[],"insecure":true} |
+-----------+--------------------------------------------------------------+
Notification Subscriber ID=20
--- Time Elapsed: 2.042797885s ---
The following example enables RFC-5424 format.
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure --rfc5424
Successfully registered subscriber.
+-----------+-----------------------------------------------------------------------------+
| attribute | value |
+-----------+-----------------------------------------------------------------------------+
| id | 7 |
+-----------+-----------------------------------------------------------------------------+
| handler | relp |
+-----------+-----------------------------------------------------------------------------+
| endpoint | 134.141.21.190:1601 |
+-----------+-----------------------------------------------------------------------------+
| config | {"cacert":"","conn-timeout":10,"filters":[],"insecure":true,"rfc5424":true} |
+-----------+-----------------------------------------------------------------------------+
Notification Subscriber ID=7