SNMP port numbers of S series switches

32

After SNMP is configured on S series switches (except S1700), UDP ports are enabled by default. By default, the port number for SNMP and NMS connection is 161 and the port number for sending alarms to the NMS is 162.
You can use the snmp-agent udp-port port-num command to configure the port number for SNMP and NMS connection.

Other related questions:
Up/Down event of the SNMP monitoring port on an S series switch
S series switches (except S1700) support enabling the LinkDown and LinkUp traps. Once the interface status changes, corresponding traps are generated. Run the snmp-agent trap enable feature-name ifnet command in the system view for configuration.

Can I view the port number on an S series switches
No command is available to display the port number of a data packet on an S series switches. To obtain the port number of a data packet, run the display mac-address command to view the source MAC address of the packet, determine the port receiving the packet, and then use Wireshark to capture it.

SNMP configuration on S series switch
S series switches (except S1700 switches) support three SNMP versions: SNMPv1, SNMPv2c, and SNMPv3. SNMPv1 and SNMPv2c use community names for authentication, resulting in low security, whereas SNMPv3 uses authentication and encryption technologies to enhance security. The following uses SNMPv2c configuration as an example: [HUAWEI] snmp-agent //Enable SNMP. [HUAWEI] snmp-agent sys-info version v2c //Set the SNMP version to SNMPv2c. [HUAWEI] snmp-agent community write adminnms01 //Set the SNMP write community name. For common SNMP configuration information, see "Common SNMP Operations" in S1720&S2700&S3700&S5700&S6700&S7700&S9700 Series Switches Common Operation Guide. For typical SNMP configuration examples, see "Typical SNMP Configuration" in "Typical Network Management and Monitoring Configuration" of S1720&S2700&S3700&S5700&S6700&S7700&S9700 Typical Configuration Examples. Common configuration and typical configuration examples for S9300 and S12700 series switches are the same as those for Sx700 series switches. The Sx700 series switches are used as an example here.

S series switch SNMP OID
A Management Information Base (MIB) is a database that stores the variables (information that can be queried and set by the agent) on managed devices A MIB defines the attributes of managed devices, including name, status, access permission, and data type. MIB stores information using a tree structure. The leaf nodes of the tree are managed objects (MOs). An MO is identified by the set of nodes along the path from the root to the leaf node. Such a path is called object identifier (OID). An OID consists of positive integers and zero, and it is used to uniquely identify an MO in the MIB. For example, an SNMP object can be identified as { iso(1).org(3).dod(6).internet(1).snmpV2(6) }, which can be simplified to 1.3.6.1.6. The identifier is called an OID.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top