No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
(Optional) Restricting Management Rights of the NMS

(Optional) Restricting Management Rights of the NMS

Context

When multiple NMSs in the same SNMPv3 user group manage one device, perform this configuration based on the site requirements.

Scenario

Steps

All NMSs in this SNMPv3 user group access the ViewDefault view.

No action required

Only the specified NMSs in this SNMPv3 user group access the ViewDefault view.

1, 2, 4 (based on the user group)

1, 5, 6 (based on the user)

1, 2, 4, 5, 6 (based on the user group and user)

All NMSs in this SNMPv3 user group access the specified objects on the managed devices.

1, 3, 4

The specified NMSs in this SNMPv3 user group access the specified objects on the managed devices.

1, 2, 3, 4 (based on the user group)

1, 3, 4, 5, 6 (based on the user)

1, 2, 3, 4, 5, 6 (based on the user group and user)

The NMS can connect to only the specified physical interfaces on the managed device.

1, 7

When an ACL is used to control the NMS access rights, the constraints are as follows:
  • When the ACL rule is permit, the NMS with the source IP address specified in this rule can access the local device.

  • When the ACL rule is deny, the NMS with the source IP address specified in this rule cannot access the local device.

  • If a packet does not match an ACL rule, the NMS that sends the packet cannot access the local device.

  • When no ACL rule is configured, all NMSs can access the local device.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Configure a basic ACL for an SNMP user group to allow only the NMS matching the ACL to access the managed device.

    For the creation procedure, see "ACL Configuration" in the Huawei AR Series Access Routers Configuration Guide-Security.

  3. Run snmp-agent mib-view view-name { exclude | include } subtree-name [ mask mask ]

    A MIB view is created, and manageable MIB objects are specified.

    By default, an NMS has right to access the objects in the ViewDefault view.

    If both the included and excluded parameters are configured for MIB objects that have an inclusion relationship, whether to include or exclude the lowest MIB object will be determined by the parameter configured for the lowest MIB object. For example, the snmpV2, snmpModules, and snmpUsmMIB objects are from top down in the MIB table. If the excluded parameter is configured for snmpUsmMIB objects and included is configured for snmpV2, snmpUsmMIB objects will still be excluded.

  4. Run snmp-agent group v3 group-name { authentication | noauth | privacy } [ read-view read-view | write-view write-view | notify-view notify-view | acl acl-number ] *

    The write-read right is configured for a user group.

    By default, the read-only view of an SNMP user group is the ViewDefault view, and the names of the read-write view and inform view are not specified.

    To configure the NMS to receive traps specified by notify-view, you must first configure a target host for receiving traps.

  5. Configure a basic ACL for an SNMP user to allow only the NMS matching the ACL to access the managed device.

    For the creation procedure, see "ACL Configuration" in the Huawei AR Series Access Routers Configuration Guide-Security.

  6. Run snmp-agent usm-user v3 user-name [ group group-name | acl acl-number ] *

    Authentication and encryption are configured for SNMPv3 users in the specified user group.

    • To allow all NMSs using the same SNMPv3 user name to access the agent, do not specify the acl parameter.

    • To allow only the specified NMSs using this user name to access the agent, configure the acl parameter.

  7. Run snmp-agent permit interface { interface-type interface-number } &<1-5>

    Physical interfaces on the device to which the NMS can connect are specified.

    By default, the NMS can connect to all the physical interfaces on the device.

Follow-up Procedure

If the NMS allowed to access the managed device changed its IP address due to a reason, for example, location change or IP address reallocation, change the IP address in the ACL rule accordingly; otherwise, the NMS cannot access the managed device.

Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174072

Views: 100450

Downloads: 332

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next