1-5To do… Use the command… RemarksConfigure the maximum size ofan SNMP packet that can bereceived or sent by an SNMPagentsnmp-agent packet max-sizebyte-countOptional1,500 bytes by default.The validity of a USM user depends on the engine ID of the SNMP agent. If the engine ID generatedwhen the USM user is created is not identical to the current engine ID, the USM user is invalid.Configuring SNMP LoggingIntroduction to SNMP LoggingSNMP logs the Get and Set operations that the NMS performs on the SNMP agent. When the GEToperation is performed, the agent logs the IP address of the NMS, node name of the GET operation andOID of the node. When the SET operation is performed, the agent logs the IP address of the NMS, nodename of the SET operation, OID of the node, the value configured and the error code and error index ofthe SET response. These logs will be sent to the information center, and the level of them isinformational, that is, they are taken as the system prompt information. With parameters for theinformation center configured, the output rules for SNMP logs are decided (that is, whether the logs arepermitted to display and the output destinations).SNMP logs Get requests, Set requests and Set responses, but does not log Get responses.Enabling SNMP LoggingTo do… Use the command… RemarksEnter system view system-view —Enable SNMP loggingsnmp-agent log { all |get-operation |set-operation }RequiredDisabled by default.Configure SNMP log outputrulesinfo-center source{ module-name | default }channel { channel-number |channel-name } [ debug { levelseverity | state state } * | log{ level severity | state state } * |trap { level severity | statestate } * ] *OptionalBy default, SNMP logs areoutput to loghost and logfileonly. To output SNMP logs toother destinations such as theconsole or a monitor terminal,you need to set the outputdestinations with thiscommand.