Configuring the SNMP operation
The SNMP operation measures the time for the NQA client to get a response packet from an SNMP agent.
To configure the SNMP operation:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create an NQA operation and enter NQA operation view. | nqa entry admin-name operation-tag | By default, no NQA operations exist. |
3. Specify the SNMP type and enter its view. | type snmp | N/A |
4. Specify the destination address of SNMP packets. | destination ip ip-address | By default, no destination IP address is specified. |
5. (Optional.) Specify the source port of SNMP packets. | source port port-number | By default, no source port number is specified. |
6. (Optional.) Specify the source IP address of SNMP packets. | source ip ip-address | By default, the packets take the primary IP address of the output interface as their source IP address. The source IP address must be the IP address of a local interface, and the interface must be up. Otherwise, no SNMP packets can be sent out. |
7. (Optional.) Specify the community name for the SNMP operation if the operation uses the SNMPv1 or SNMPv2c agent. | community read { cipher | simple } community-name | By default, the SNMP operation uses community name public. Make sure the specified community name is the same as the community name configured on the SNMP agent. |