This topic describes how to configure Simple Network Management Protocol (SNMP) monitoring from scratch to collect device port status.
Prerequisites
Procedure
Step 1: Create a metric. For more information, see Metric Management.
Log on to the Cloud Managed Network console.
In the navigation pane on the left, click Network Monitoring > Metric Management.
Click the Create Metric button above the list and select Create Single-Device Metric.
On the Create Metric page, enter the basic information for the metric, such as the metric name, description, and collection method.
Define a globally unique name for the metric, such as Interface_State_Monitor.
Enter a description for the metric. Describe the intent of the metric in detail to simplify future maintenance. For example, "Monitors the port status of network devices. A collected value of 1 indicates up, and a value of 2 indicates down."
Select the security domain for the metric, such as CMN-01. This means that data collection is initiated from the probe in the CMN-01 security domain, and the collection scope includes devices in that security domain.
Select the device type. For example, if you select Network Device, the metric collects data from network devices within the specified security domain.
Select the SNMP collection type. The available values are get, getNext, getBulk, getWalk, and snmpwalk. In this example, select snmpwalk.
Enable the metric. Data collection is initiated only when the metric is enabled.
Select the parsing code. Select the specific parsing code for port status monitoring from the template.
(Optional) Add an alerting rule. For more information, see Metric Management.
Click the Submit button to save the metric.
Step 2: Deploy metrics. For more information, see Deploy metrics.
In the navigation pane on the left, click Network Monitoring > Deploy Metrics.
From the drop-down list, select the metric that you created in Step 1, Interface_State_Monitor. You can use fuzzy search to find the metric by name.
The system automatically displays a list of vendors and models. Select the models to which the metric applies. For example, to monitor H3C devices with the models WX5004 and S5120, select the check boxes next to both models.
For SNMP metrics, set an Object Identifier (OID) for each vendor and model. This is because the OIDs used might be private and can vary between vendors. The OIDs required to monitor port status in this case are public OIDs, although a few vendors may not support them. Enter 1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.8.
Note1.3.6.1.2.1.31.1.1.1.1 is the OID for collecting port names.
1.3.6.1.2.1.2.2.1.8 is the OID for collecting the up or down status of ports.
Using these two OIDs with the parsing logic provides the names and statuses of the ports.
Click the Submit button to save the deployment configuration. The system then sends the configuration to the probe and starts data collection.
Step 3: View the alert status. For more information, see Alert Status View.
In the navigation pane on the left, click Network Monitoring > Alert Status View.
On the left, select the physical space. The status of all metrics and devices in that physical space is displayed on the right. To view the monitoring status of a specific device or metric, enter search criteria in the search bar at the top of the page and click the Query button to filter the results.
Click the Details button to view more information on the details page.
Click the Device View button to open the device view. This page displays all monitoring data and historical trends for the specified device.