efa snmp subscriber

Adds, unregisters, or lists SNMP trap subscribers.

Syntax

efa snmp subscriber [command] [ list | add|unregister |--help ]

Parameters

list
Lists all trap subscribers.
add
Registers an SNMP trap subscriber.
unregister
Unregisters a trap receiver.
--help
Provides help for execution.

Examples

This example shows how to add a version 2c trap receiver.

efa snmp subscriber add --host 10.20.241.86 --type v2c --community
          testcommunity 
Register SNMP Trap forwarding 
Successfully registered trap subscriber.  
+--------------+---------------+ 
| attribute    | value         | 
+--------------+---------------+ 
| id           | 1             | 
+--------------+---------------+ 
| host         | 10.20.241.86  | 
+--------------+---------------+ 
| type         | v2c           | 
+--------------+---------------+ 
| community    | testcommunity | 
+--------------+---------------+ 
| v3 user      | efaUser            | 
+--------------+---------------+ 
| v3 Auth Type |               | 
+--------------+---------------+ 
| v3 Priv Type |               | 
+--------------+---------------+ 
Trap Subscriber Host=10.20.241.86

This example shows how to add an SMTP version 3 trap receiver.

efa snmp subscriber add --host 2.1.1.1 --type v3 --v3user efaUser --auth SHA1
            --authpassword testing --priv AES --privpassword testingPrivacy 
Register SNMP Trap forwarding 
Successfully registered trap subscriber.  
+--------------+---------------+ 
| attribute    | value         | 
+--------------+---------------+ 
| id           | 2             | 
+--------------+---------------+ 
| host         | 2.1.1.1       | 
+--------------+---------------+ 
| type         | v3            | 
+--------------+---------------+ 
| community    |               | 
+--------------+---------------+ 
| v3 user      | efaUser       | 
+--------------+---------------+ 
| v3 Auth Type |    SHA1       | 
+--------------+---------------+ 
| v3 Priv Type |    AES        | 
+--------------+---------------+ 
Trap Subscriber 
Host=2.1.1.1

This example lists currently registered trap subscribers.

efa snmp subscriber list  
+----+------+---------+-----------+---------+---------------+------------------+
| id | type | host    | community | user    | Auth Protocol | Privacy Protocol |
+----+------+---------+-----------+---------+---------------+------------------+
| 64 | v3   | 2.1.1.1 |           | efaUser | SHA1          | AES              |
+----+------+---------+-----------+---------+---------------+------------------+  
SNMP Trap Subscribers Count=2 
--- Time Elapsed: 263.997115ms --- 

This example deletes the trap subscriber.

efa snmp subscriber unregister --host 2.1.1.1 
Delete SNMP Trap forwarding subscriber 
Successfully unregistered trap subscriber