Operation Manual – SNMP-RMONH3C S3100-52P Ethernet switch Chapter 1 SNMP Configuration1-6To do… Use the command… RemarksSet the maximumsize of an SNMPpacket for SNMPagent to receiveor sendsnmp-agent packetmax-size byte-countOptional1,500 bytes by default.Set the deviceengine IDsnmp-agent local-engineidengineidOptionalBy default, the device engineID is “enterprise number +device information”.Create or updatethe viewinformationsnmp-agent mib-view{ included | excluded }view-name oid-tree [ maskmask-value ]OptionalBy default, the view name isViewDefault and OID is 1.Note:An S3100-52P Ethernet switch provides the following functions to prevent attacksthrough unused UDP ports.z Executing the snmp-agent command or any of the commands used to configureSNMP agent enables the SNMP agent, and at the same opens UDP port 161 usedby SNMP agents and the UDP port used by SNMP trap respectively.z Executing the undo snmp-agent command disables the SNMP agent and closesUDP ports used by SNMP agent and SNMP trap as well.1.3 Configuring Trap-Related Functions1.3.1 Configuring Basic Trap Functionstraps refer to those sent by managed devices to the NMS without request. They areused to report some urgent and important events (for example, the rebooting ofmanaged devices).Note that basic SNMP configuration is performed before you configure basic trapfunction.