beautypg.com

Snmp logging configuration example, Network requirements, Configuration procedure – H3C Technologies H3C SecBlade LB Cards User Manual

Page 73

background image

64

1.1.1.1/3374 V3 Trap = linkdown

SNMP Version = V3

Community = managev3user

Command = Trap

1.1.1.1/3374 V3 Trap = linkup

SNMP Version = V3

Community = managev3user

Command = Trap

SNMP logging configuration example

Network requirements

Configure the SNMP agent (1.1.1.1/24) in

Figure 27

to log the SNMP operations performed by the NMS.

Figure 27 Network diagram

Configuration procedure

This example assumes that you have configured all required SNMP settings for the NMS and the agent

(see "

SNMPv1/SNMPv2c configuration example

" or "

SNMPv3 configuration example

").

# Enable displaying log messages on the configuration terminal. (This function is enabled by default.

Skip this step if you are using the default.)

terminal monitor

terminal logging

# Enable the information center to output system information with severity level equal to or higher than
informational to the console port.

system-view

[Agent] info-center source snmp channel console log level informational

# Enable logging GET and SET operations.

[Agent] snmp-agent log all

# Verify the configuration:
Use the NMS to get a MIB variable from the agent. The following is a sample log message displayed on

the configuration terminal:

%Nov 23 16:10:09:482 2011 Agent SNMP/6/SNMP_GET:

-seqNO=27-srcIP=1.1.1.2-op=GET-node=sysUpTime(1.3.6.1.2.1.1.3.0)-value=-node=ifHCOutO

ctets(1.3.6.1.2.1.31.1.1.1.10.1)-value=; The agent received a message.

Use the NMS to set a MIB variable on the agent. The following is a sample log message displayed on
the configuration terminal:

This manual is related to the following products: