beautypg.com

System information format, Int_16 (priority) – H3C Technologies H3C S3100 Series Switches User Manual

Page 790

background image

1-4

To sum up, the major task of the information center is to output the three types of information of the

modules onto the ten channels in terms of the eight severity levels and according to the user’s settings,

and then redirect the system information from the ten channels to the six output directions.

System Information Format

The format of system information varies with the output destinations.

z

If the output destination is console, monitor terminal, logbuffer, trapbuffer, or SNMP, the system

information is in the following format:

timestamp sysname module/level/digest: - unitid –content

z

The space, the forward slash /, and the colon are all required in the above format.

z

Before may have %, “#, or * followed with a space, indicating log, alarm, or debugging

information respectively.

Below is an example of the format of log information to be output to a monitor terminal:

%Dec 6 10:44:55:283 2006 Sysname NTP/5/NTP_LOG:- 1 - NTP service enable

(“-1-“ indicates that the unit number of the device is 1.)

z

If the output destination is loghost, the switch and the log host use the syslog protocol. The system

information is in the following format according to RFC 3164 (The BSD Syslog Protocol):

timestamp sysname %%nnmodule/level/digest: source content

z

If the address of the log host is specified in the information center of the switch, when logs are

generated, the switch sends the logs to the log host in the above format. For detailed information,

refer to

Setting to Output System Information to a Log Host

.

z

There is the syslog process on the Unix or Linux platform, you can start the process to receive the

logs sent from the switch; in the Windows platform, you need to install the specific software, and it

will operate as the syslog host.

z

Some log host software will resolve the received information as well as its format, so that the log

format displayed on the log host is different from the one described in this manual.

What follows is a detailed explanation of the information fields involved:

Int_16 (Priority)

The priority is calculated using the following formula: facility*8+severity-1, in which

z

facility (the device name) defaults to local7 with the value being 23 (the value of local6 is 22, that of

local5 is 21, and so on).