
The following example shows how to configure a user role feature group:
role feature-group name Security-features
feature radius
feature tacacs
feature aaa
feature acl
feature access-list
The following example shows how to configure a user account:
username user1 password A1s2D4f5 role User-role-A
The following example shows how to add an OID rule to restrict access to part of the OID subtree:
role name User1
rule 1 permit read feature snmp
rule 2 deny read oid 1.3.6.1.2.1.1.9
show role name User1
Role: User1
Description: new role
Vlan policy: permit (default)
Interface policy: permit (default)
Vrf policy: permit (default)
-------------------------------------------------------------------
Rule
Perm
Type
Scope
Entity
-------------------------------------------------------------------
2
deny
read
oid
1.3.6.1.2.1.1.9
1
permit
read
feature
snmp
The following example shows how to give write permission to a specified OID subtree:
role name User1
rule 3 permit read-write oid 1.3.6.1.2.1.1.5
show role name User1
Role: User1
Description: new role
Vlan policy: permit (default)
Interface policy: permit (default)
Vrf policy: permit (default)
-------------------------------------------------------------------
Rule
Perm
Type
Scope
Entity
-------------------------------------------------------------------
3
permit
read-write
oid
1.3.6.1.2.1.1.5
2
deny
read
oid
1.3.6.1.2.1.1.9
1
permit
read
feature
snmp
Additional References for User Accounts and RBAC
This section includes additional information related to implementing user accounts and RBAC.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
174
Configuring User Accounts and RBAC
Additional References for User Accounts and RBAC