Configuring SNMP

NetVisor OS supports SNMP v1, v2, and v3 and the implementation is based on Net-SNMP, where the SNMP daemon runs as a service. When an external browser or SNMP collector contacts the SNMP daemon on NetVisor, the SNMP daemon queries the nvOSd for details.

NetVisor OS uses SNMP only for monitoring the network: that is, you can use the SNMP service for read-only MIB support and does not provide support for managing the network. The following sections explain how to configure access controls and enable SNMP on a switch.

Note: To configure SNMP v1 and v2, you must create community strings and for SNMP v3, you should create users.

Activating the SNMP Service

By default, the SNMP service is disabled on NetVisor OS. You can enable the SNMP service by using the admin-service-modify command. NetVisor OS retains the status of the SNMP service (enabled or disabled) when you upgrade from one release version to another version.

To enable SNMP service, use the command:

CLI (network-admin@switch) admin-service-modify if if-string snmp|no-snmp

if if-string

Specify the administrative service interface. The options are mgmt or data.


Specify to enable or disable SNMP.

To enable SNMP service through management interface, use the command:

CLI (network-admin@switch)admin-service-modify if mgmt snmp

To enable SNMP service on data interface, use the command:

CLI (network-admin@switch)admin-service-modify if data snmp

The above commands launch the daemon, sub-agents, and opens the firewall so that remote queries can reach the daemon. Use the no-snmp parameter for disabling SNMP service on the administrative interface: 

CLI (network-admin@switch)admin-service-modify if mgmt no-snmp

For using SNMP services, you must configure access controls either by creating SNMP communities and/or by creating SNMP users.