1-6z A large number of logs occupy storage space of the device, thus affecting the performance of thedevice. Therefore, it is recommended to disable SNMP logging.z The size of SNMP logs cannot exceed that allowed by the information center, and the total length ofthe node field and value field of each log record cannot exceed 1K bytes; otherwise, the exceedingpart will not be displayed.z For the detailed description of system information, the information center and the info-centersource command, refer to Information Center Configuration.Configuring SNMP TrapEnabling the Trap FunctionThe SNMP agent sends traps to the NMS to inform the NMS of critical and important events (such asreboot of a managed device). Two types of traps are available: generic traps and vendor-specific traps.Generic traps supported on the device include: authentication, coldstart, linkdown, linkup andwarmstart. The others are self-defined traps, which are generated by different modules. As traps thatoccupy large device memory affect device performance, it is recommended not to enable the trapfunction for all modules but for the specific modules as needed.With the trap function enabled on a module, the traps generated by the module will be sent to theinformation center. The information center has seven information output destinations. By default, trapsof all modules are allowed to be output to the console, monitor terminal (monitor), loghost, and logfile;traps of all modules and with level equal to or higher than warnings are allowed to be output to thetrapbuffer and SNMP module (snmpagent); and traps cannot be sent to the logbuffer. You can setparameters for the information center based on the levels of the traps generated by each module, andthus decide the output rules of traps (that is, whether traps are allowed to be output and the outputdestinations). For the configuration of the information center, refer to Information Center Configuration.Follow these steps to enable the trap function:To do… Use the command… RemarksEnter system view system-view —Enable the trap functiongloballysnmp-agent trap enable[ configuration | flash |standard [ authentication |coldstart | linkdown | linkup |warmstart ]* | system ]OptionalBy default, the trap function isenabled.Enter interface view interface interface-typeinterface-number —Enable the trap function ofinterface state changes enable snmp trap updown OptionalEnabled by default.