beautypg.com

Configuration procedure – H3C Technologies H3C SecPath F1000-E User Manual

Page 163

background image

13

Figure 6 Network diagram for SNMP logging

Configuration procedure

NOTE:

For the configurations for the NMS and agent, see

SNMPv1/SNMPv2c Configuration Example

and

SNMPv3 Configuration Example

.

# Enable logging display on the terminal. (This function is enabled by default so that you can omit this

configuration).

terminal monitor

terminal logging

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

system-view

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

# Enable SNMP logging on the agent to log the GET and SET operations of the NMS.

[Sysname] snmp-agent log get-operation

[Sysname] snmp-agent log set-operation

The following log information is displayed on the terminal when the NMS performs the Get
operation to the agent.

%Jan 1 02:49:40:566 2006 Sysname SNMP/6/GET:

-seqNO=10-srcIP=1.1.1.2-op=GET-node=sysName(1.3.6.1.2.1.1.5.0)-value=;

The agent received

a message

The following log information is displayed on the terminal when the NMS performs the Set

operation to the agent.

%Jan 1 02:59:42:576 2006 Sysname SNMP/6/SET:

-seqNO=11-srcIP=1.1.1.2-op=SET-errorIndex=0-errorStatus=noError-node=sysName(1.3.6.1.

2.1.1.5.0)-value=Sysname; The agent received a message.

Table 1 Description on the output field of SNMP log

Field Description

Jan 1 02:49:40:566 2006

The time when the SNMP log is generated

seqNO

Serial number of the SNMP log (The system numbers the
recorded SNMP logs automatically; the serial number starts

from 0)

srcIP

IP address of the NMS