snmp-agent start snmp
snmp-agent local-engineid 800063A280+ mac address of this switch 00000001//Configure the SNMP engine ID of this device
For example: snmp-agent local-engineid 800063A280743A20DA935800000001 (can be omitted, the system will generate it automatically)
snmp-agent community write community name //configure snmp community name
For example: snmp-agent community write admin@h3c //write community name admin@h3c
snmp-agent community read community name //configure snmp community name
For example: snmp-agent community read h3c@admin //read community name h3c@admin
snmp-agent sys-info version all //Enable all versions of snmp
snmp-agent trap enable arp //Enable SNMP alarm function
snmp-agent trap enable radius //Enable all alarm switches of the device
snmp-agent trap enable syslog //Enable system log
Add the community name directly after undo snmp-agent community, do not add read or write //delete the community
For example: undo snmp-agent community h3c@admin