Configuration procedure – H3C Technologies H3C SecBlade NetStream Cards User Manual

Page 305

Advertising
background image

290

Configuration procedure

NOTE:

For the configurations for the NMS and SecBlade, 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).

<SecBlade> terminal monitor
<SecBlade> 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.

<SecBlade> system-view
[SecBlade] info-center source snmp channel console log level informational

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

[SecBlade] snmp-agent log get-operation
[SecBlade] snmp-agent log set-operation

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

operation to the SecBlade.

%Jan 1 02:49:40:566 2006 SecBlade SNMP/6/GET:
seqNO = <10> srcIP = <1.1.1.2> op = <get> node = <SecBlade (1.3.6.1.2.1.1.5.0)> value=<>

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

operation to the SecBlade.

%Jan 1 02:59:42:576 2006 SecBladeSNMP/6/SET:
seqNO = <11> srcIP = <1.1.1.2> op = <set> errorIndex = <0> errorStatus =<noError> node
= <SecBlade(1.3.6.1.2.1.1.5.0)> value = <SecBlade>

Table 23 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

op

SNMP operation type (GET or SET)

node

Node name of the SNMP operations and OID of the instance

erroIndex

Error index, with 0 meaning no error

errorstatus

Error status, with noError meaning no error

value

Value set when the SET operation is performed (This field is null, meaning the
value obtained with the GET operation is not logged.)
When the value is a string of characters and the string contains characters not

in the range of ASCII 0 to 127 or invisible characters, the string is displayed in
hexadecimal. For example, value = <81-43>[hex]

Advertising