Enabling Logging for Network Management 357Enabling Logging forNetwork Managementn IUse the display logbuffer command to view the log of the get and setoperations requested by the NMS.Displaying SNMP After the above configuration, you can execute the display command in any viewto view the running status of SNMP, and to verify the configuration.SNMP ConfigurationExamplesSNMP ConfigurationExamplesNetwork requirements■ An NMS and Switch A (SNMP agent) are connected through the Ethernet. TheIP address of the NMS is 10.10.10.1 and that of the VLAN interface on SwitchA is 10.10.10.2.■ Perform the following configuration on Switch A: setting the community nameand access permission, administrator ID, contact and switch location, andenabling the switch to sent trap messages.Table 277 Enable logging for network managementOperation Command DescriptionEnter system view system-view -Enable logging for networkmanagementsnmp-agent log {set-operation |get-operation | all }OptionalDisabled by default.Table 278 Display SNMPOperation Command DescriptionDisplay the SNMP informationabout the current devicedisplay snmp-agentsys-info [ contact | location |version ]*Available in any view.Display SNMP packet statistics display snmp-agentstatisticsDisplay the switch fabric ID ofthe current devicedisplay snmp-agent {local-switch fabricid |remote-switch fabricid }Display group informationabout the devicedisplay snmp-agent group [group-name ]Display SNMP userinformationdisplay snmp-agentusm-user [ switch fabricidswitch fabricid | usernameuser-name | groupgroup-name ]Display Trap list information display snmp-agenttrap-listDisplay the currentlyconfigured community namedisplay snmp-agentcommunity [ read | write ]Display the currentlyconfigured MIB viewdisplay snmp-agentmib-view [ exclude | include| viewname view-name ]