efa inventory device snmp view

SNMP View commands.

Syntax

efa inventory device snmp view create [ --ip device-ips | --name view-name | --mib-tree mib-oid | --mib-tree-access access ]
efa inventory device snmp view delete [ --ip device-ips | --name view-name | --mib-tree mib-oid ]
efa inventory device snmp view list [ --ip device-ips ]

Parameters

--ip string
Specifies a comma-separated range of device IP addresses. For example: 10.1.1.13,10.1.1.50,10.1.1.101.
--name view-name
Specifies the name of the view.
--mib-tree mib-oid

Specifies the MIB subtree in the form of Object identifier. Example: 1.3.6.1

--mib-tree-access access

Specifies the mib-tree access. Valid values are: included, excluded.

Examples

This example creates a view on a specified device.

efa inventory device snmp view create --ip 10.139.44.153-154 --name view1
 --mib-tree 1.3.6.1 --mib-tree-access included 
                
+---------------+-------+----------+-----------------+---------+--------+ 
|  IP Address   | Name  | MIB-Tree | MIB-Tree-Access | Status  | Reason | 
+---------------+-------+----------+-----------------+---------+--------+ 
| 10.139.44.153 | view1 | 1.3.6.1  | included        | Success |        | 
+---------------+-------+----------+-----------------+---------+--------+ 
| 10.139.44.154 | view1 | 1.3.6.1  | included        | Success |        | 
+---------------+-------+----------+-----------------+---------+--------+ 
 Snmp view details 

This example deletes a view on a specified device.

efa inventory device snmp view delete --ip 10.139.44.153-154 --name view1
 --mib-tree 1.3.6.1 
                
+---------------+-------+----------+---------+--------+ 
|  IP Address   | Name  | MIB-Tree | Status  | Reason | 
+---------------+-------+----------+---------+--------+ 
| 10.139.44.153 | view1 | 1.3.6.1  | Success |        | 
+---------------+-------+----------+---------+--------+ 
| 10.139.44.154 | view1 | 1.3.6.1  | Success |        | 
+---------------+-------+----------+---------+--------+ 
Snmp view details 

This example shows the current SNMP view for the specified device

efa inventory device snmp view list --ip 10.139.44.153-154 
                
+---------------+-------+----------+-----------------+----------+ 
|  IP Address   | Name  | MIB-Tree | MIB-Tree_Access | AppState | 
+---------------+-------+----------+-----------------+----------+ 
| 10.139.44.153 | view1 | 1.2.3.4  | included        |          | 
+               +-------+----------+-----------------+----------+ 
|               | view2 | 1.2.3.4  | included        |          | 
+---------------+-------+----------+-----------------+----------+ 
| 10.139.44.154 | view3 | 1.2.3.5  | excluded        |          | 
+---------------+-------+----------+-----------------+----------+ 
Snmp view details