354 CHAPTER 33: SNMP CONFIGURATIONSet acommunityname andaccesspermissionDirectconfigurationSet acommunity namesnmp-agent community {read | write }community-name [ aclacl-number | mib-viewview-name ]*Required■ You can set anSNMPv1/SNMPv2ccommunity namethrough directconfiguration.■ Indirect configurationis compatible withSNMPv3. The addeduser is equal to thecommunity name forSNMPv1 andSNMPv2c.■ You can choose eitherof them as needed.IndirectconfigurationSet anSNMPgroupsnmp-agent group { v1 |v2c } group-name [read-view read-view ] [write-view write-view ] [notify-view notify-view ] [acl acl-number ]Add a userto anSNMPgroupsnmp-agent usm-user { v1| v2c } user-namegroup-name [ aclacl-number ]Set the maximum size of an SNMPpacket for SNMP agent to receiveor sendsnmp-agent packetmax-size byte-countOptional1,500 bytes by default.Set the device switch fabric ID snmp-agent local-switchfabricid switch fabricidOptionalBy default, the deviceswitch fabric ID is"enterprise number +device information".Create/Update the viewinformationsnmp-agent mib-view {included | excluded }view-name oid-tree [ maskmask-value ]OptionalBy default, the view nameis "ViewDefault" and OIDis 1.Table 274 Configure basic SNMP functions (SNMPv3)Operation Command DescriptionEnter system view system-view -Enable SNMP agent snmp-agent OptionalDisabled by default.You can enable SNMP agentby executing this command orany of the commands used toconfigure SNMP agent.Set system information andspecify to enable SNMPv3 onthe switchsnmp-agent sys-info {contact sys-contact |location sys-location |version { { v1 | v2c | v3 }* | all} }RequiredBy default, the contactinformation for systemmaintenance is "R&DHangzhou, 3Com TechnologyCo., Ltd.", the system locationis "Hangzhou China", and theSNMP version is SNMPv3.Set an SNMP group snmp-agent group v3group-name [authentication | privacy ] [read-view read-view ] [write-view write-view ] [notify-view notify-view ] [acl acl-number ]RequiredTable 273 Configure basic SNMP functions (SNMPv1 and SNMPv2c)Operation Command Description