What Configuration Do I Need to Perform on a Switch When It Needs to Communicate

m7g
m7g  Diamond  (1)
7 years 10 months ago  View: 1002  Reply: 1
1F
Communicating with an NMS Using SNMPv1
Configuration roadmap:
1. Run the snmp-agent sys-info version v1 command to set the SNMP version to SNMPv1.
2. Run the snmp-agent community { read | write } community-name command to configure
the read and write community names for the switch.


For example:

[HUAWEI] snmp-agent sys-info version v1

[HUAWEI] snmp-agent community read public


After completing the configuration, configure the same read and write community names on the NMS.

Communicating with an NMS Using SNMPv2
Configuration roadmap:
1. Run the snmp-agent sys-info version v2c command to set the SNMP version to SNMPv2.
2. Run the snmp-agent community { read | write } community-name command to configure
the read and write community names for the switch.

For example:
[HUAWEI] snmp-agent sys-info version v2c
[HUAWEI] snmp-agent community read public

After completing the configuration, configure the same read and write community names on the NMS.
Communicating with an NMS Using SNMPv3

The configuration roadmap for V200R002 and earlier versions is as follows:
1. Run the snmp-agent sys-info version v3 command to set the SNMP version to SNMPv3.
2. Run the snmp-agent group v3 group-name command to configure an SNMPv3 user group.
3. Run the snmp-agent usm-user v3 user-name group-name command to configure an SNMPv3 user and add the user to a user group.

For example:
[HUAWEI] snmp-agent sys-info version v3
[HUAWEI] snmp-agent group v3 huawei_group
[HUAWEI] snmp-agent usm-user v3 huawei_user huawei_group

After completing the configuration, use the configured user name to log in to the switch from the NMS.

The configuration roadmap for V200R003 is as follows:
1. Run the snmp-agent sys-info version v3 command to set the SNMP version to SNMPv3.
2. Run the snmp-agent group v3 group-name command to configure an SNMP user group.
3. Run the snmp-agent usm-user v3 user-name group group-name command to configure an SNMPv3 user and add the user to a user group.

For example:
[HUAWEI] snmp-agent sys-info version v3
[HUAWEI] snmp-agent group v3 huawei_group
[HUAWEI] snmp-agent usm-user v3 huawei_user group huawei_group

After completing the configuration, use the configured user name to log in to the switch from the NMS.

EastGreat
EastGreat  Silver 
7 years 10 months ago
2F
Good, thanks.