access-groups

This command configures the SNMP Access Groups table, which configures access groups with MIB tree access privileges.

The SNMP Access Groups table is applicable only to the advanced SNMP mode.

Syntax

(config-system)# snmp settings
(snmp)# access-groups <Index> (access-groups-<Index>)#

Command

Description

Index

Defines the table row index.

group-name

Defines a descriptive name for the SNMP Access Group.

notify-view-name

Assigns the user a specific SNMP MIB tree view authorizing notify access, configured in the View Tree Family table.

read-view-name

Assigns the user a specific SNMP MIB tree view authorizing read-only access, configured in the View Tree Family table.

security-level {auth-no-priv|auth-priv|no-auth-no-priv}

Defines the user's SNMP security level.

security-model {snmpv1|snmpv2|snmpv3}

Defines the user's SNMP security model.

write-view-name

Assigns the user a specific SNMP MIB tree view authorizing read-write access, configured in the View Tree Family table.

Command Mode

Privileged User

Example

This example configures an Access Group for an SNMPv3 user authorizing read-write access to the MIB tree:

(config-system)# snmp settings
(snmp)# access-groups 4 (access-groups-4)# group-name AdminSNMP
(access-groups-4)# security-level auth-priv
(access-groups-4)# security-model snmpv3
(access-groups-4)# write-view-name All
(access-groups-4)# exit
(snmp)# exit