snmp-vacm-modify

After you create SNMP users, you must grant permission, using View Access Control Model (VACM) to allow the user to view SNMP objects. This command is used to modify an existing model.

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

user-name snmp-user user-name

Specify the user name to apply the permission.

Specify one or more of the following options:

user-type rouser|rwuser

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

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.

auth|no-auth

Specify if the user is authenticated or not.

priv|no-priv

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 delete a VACM object.

Examples  To modify a read-only user for user name, snmp-admin, and the user-type to read-write, use the following command:

CLI network-admin@switch > snmp-vacm-modify user-type rwuser user-name snmp-admin

See Also