After you create SNMP users, you must grant permission, using View Access Control Model (VACM) to allow the user to view SNMP objects.

Syntax   snmp-vacm-create [user-type rouser|rwuser] [user-name snmp-user user-name] [oid-restrict oid-restrict-string] [auth|no-auth] [priv|no-priv]

user-type rouser|rwuser

Specify the type of permission to grant to the user. You can select from read-only or read-write.

user-name snmp-user user-name

Specify the user name to apply the permission.

oid-restrict oid-restrict-string

Specify any OID restrictions. The paramater, oid-restrict, is an optional argument that specifies a MIB sub-tree that the view is restricted. In other words, if you specify an OID, only that OID and the descendants in the tree are visible in this view.


Specify if the user is authenticated or not.


Specify if the view is private or not.

Defaults   None

Access   CLI

History   Command introduced in nvOS Version 2.0.

Usage   Use this command to create access to SNMP objects.

Examples  To create a read-only user type for user name, snmp-admin, and restrict the OID to sysContact, and use authentication, use the following command:

CLI network-admin@switch > snmp-vacm-create user-type rouser user-name snmp-admin oid-restrict sysContact auth

See Also