Enabling Logging for Network Management
Follow these steps to enable logging for network management:
To do...
Enter system view
Enable logging for network
management
Use the display logbuffer command to view the log of the get and set operations requested by the
NMS.
Displaying and Maintaining SNMP
To do...
Display the SNMP information
about the current device
Display SNMP packet statistics
Display the engine ID of the
current device
Display group information
about the device
Display SNMP user information
Display Trap list information
Display the currently configured
community name
Display the currently configured
MIB view
SNMP Configuration Examples
SNMP Configuration Examples
Network requirements
As shown in
The IP address of the NMS is 10.10.10.1 and that of the VLAN interface on Switch A is 10.10.10.2.
system-view
snmp-agent log { set-operation |
get-operation | all }
display snmp-agent sys-info [ contact
| location | version ]*
display snmp-agent statistics
display snmp-agent { local-engineid |
remote-engineid }
display snmp-agent group
[ group-name ]
display snmp-agent usm-user
[ engineid engineid | username
user-name | group group-name ]
display snmp-agent trap-list
display snmp-agent community [ read
| write ]
display snmp-agent mib-view
[ exclude | include | viewname
view-name ]
Figure
1-2, an NMS and Switch A (SNMP agent) are connected through the Ethernet.
Use the command...
Use the command...
1-7
Remarks
—
Optional
Disabled by default.
Remarks
Available in any view