Snmp logging configuration example, Network requirements – H3C Technologies H3C SecPath F1000-E User Manual
Page 162
12
authentication protocol to MD5, authentication key to authkey, the privacy protocol to DES56, and
the privacy password to prikey.
[Sysname] undo snmp-agent mib-view ViewDefault
[Sysname] snmp-agent mib-view included test interfaces
[Sysname] snmp-agent group v3 managev3group read-view test write-view test
[Sysname] snmp-agent usm-user v3 managev3user managev3group authentication-mode md5
authkey privacy-mode des56 prikey
# Configure the contact person and physical location information of the device.
[Sysname] snmp-agent sys-info contact Mr.Wang-Tel:3306
[Sysname] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable sending of traps to the NMS with an IP address of 1.1.1.2/24, using public as the community
name.
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname
public v3
Step2
Configuring the SNMP NMS
SNMPv3 uses an authentication and privacy security model. On the NMS, the user needs to specify the
username and security level, and based on that level, configure the authentication mode, authentication
password, privacy mode, and privacy password. In addition, the timeout time and number of retries
should also be configured. The user can inquire and configure the device through the NMS.
NOTE:
The configurations on the agent and the NMS must match.
Step3
Verify the configuration
•
After the above configuration, an SNMP connection is established between the NMS and the agent.
The NMS can get and configure the values of some parameters on the agent through MIB nodes.
•
Execute the shutdown or undo shutdown command to an idle interface on the agent, and the
NMS receives the corresponding trap.
SNMP Logging Configuration Example
Network requirements
•
As shown in
, the NMS and the agent are connected through an Ethernet.
•
The IP address of the NMS is 1.1.1.2/24
•
The IP address of the agent is 1.1.1.1/24
•
Configure SNMP logging on the agent to record the operations performed by the NMS to the agent