System information formats

The following shows the original format of system information, which might be different from what you see. The actual format depends on the log resolution tool you use.

Formats

Two log formats are available, as shown Table 4

Table 4: System information formats

Output destination

Format

Example

Console, monitor terminal, logbuffer, trapbuffer, SNMP module, or log file

timestamp sysname module/level/digest: content

%Jun 26 17:08:35:809 2008 Sysname SHELL/4/LOGIN: VTY login from 1.1.1.1

Log host

  • HPE format:<PRI>timestamp Sysname %%vvmodule/level/digest: source content

  • UNICOM format:<PRI>timestamp Sysname vvmodule/level/serial_number: content

  • HPE format: <189>Oct 9 14:59:04 2009 Sysname %%10SHELL/5/SHELL_LOGIN(l): VTY logged in from 192.168.1.21

  • UNICOM format:

    • <186>Oct 13 16:48:08 2000 Sysname 10IFNET/2/210231a64jx073000020: log_type=port;content=Vlan-interface1 link status is DOWN.

    • <186>Oct 13 16:48:08 2000 Sysname 10IFNET/2/210231a64jx073000020: log_type=port;content=Line protocol on the interface Vlan-interface1 is DOWN.

Field description

Field

Description

PRI (priority)

The priority is calculated by using this formula: facility*8+level, where:

  • facility is the facility name. It can be configured with info-center loghost. It is used to identify different log sources on the log host, and to query and filter logs from specific log sources.

  • level ranges from 0 to 7. Table 1 describes details the severity levels.

Note that the priority field is available only for information that is sent to the log host.

Timestamp

The timestamp records the time when the log was generated.

Logs sent to the log host and those sent to the other destinations have different precisions, and their timestamp formats are configured with different commands. For more information, see Table 5 and Table 6.

Sysname (host name or host IP address)

  • If the system information that is sent to a log host is in the UNICOM format, and the info-center loghost source command is configured, or the vpn-instance vpn-instance-name option is provided in the info-center loghost command, the sysname field is displayed as the IP address of the device that generated the system information.

  • If the system information is in the HPE format, the field is displayed as the system name of the device that generated the system information. You can use the sysname command to modify the local system name. For more information, see Fundamentals Command Reference.

%% (vendor ID)

This field indicates that the information was generated by an HPE device.

It exists only in logs sent to a log host.

vv (version information)

This field identifies the version of the log, and has a value of 10.

It exists only in logs sent to the log host.

Module

This field specifies the name of the module that generated the log. You can enter the info-center source ? command in system view to view the module list.

Level (severity)

System information is divided into eight severity levels, from 0 to 7. See Table 1 for more information about severity levels. You cannot change the system information levels generated by modules. However, you can use the info-center source command to control the output of system information based on severity levels.

Digest

This field briefly describes the content of the system information. It contains a string of up to 32 characters.

For system information destined to the log host:

  • If the character string ends with (l), the information is log information.

  • If the character string ends with (t), the information is trap information.

  • If the character string ends with (d), the information is debugging information.

Serial Number

This field indicates the serial number of the device that generated the system information. It is displayed only when the system information that is sent to the log host is in the UNICOM format.

source

This optional field identifies the source of the information. It is displayed only when the system information is sent to a log host in HPE format. It can take one of the following values:

  • IRF member ID.

  • IP address of the log sender.

content

This field provides the content of the system information.

Table 5: Timestamp precisions and configuration commands

Item

Destined to the log host

Destined to the console, monitor terminal, log buffer, and log file

Precision

Seconds

Milliseconds

Command used to set the timestamp format

info-center timestamp loghost

info-center timestamp

Table 6: Description of the timestamp parameters

Timestamp parameters

Description

Example

boot

Time since system startup, in the format of xxx.yyy. xxx represents the higher 32 bits, and yyy represents the lower 32 bits, of milliseconds elapsed.

System information that is sent to all destinations other than the log host supports this parameter.

%0.109391473 Sysname FTPD/5/FTPD_LOGIN: User ftp (192.168.1.23) has logged in successfully.

0.109391473 is a timestamp in the boot format.

date

Current date and time, in the format of mm dd hh:mm:ss:xxx yyy.

All system information supports this parameter.

%May 30 05:36:29:579 2003 Sysname FTPD/5/FTPD_LOGIN: User ftp (192.168.1.23) has logged in successfully.

May 30 05:36:29:579 2003 is a timestamp in the date format.

iso

Timestamp format stipulated in ISO 8601.

Only system information that is sent to the log host supports this parameter.

<189>2003-05-30T06:42:44 Sysname %%10FTPD/5/FTPD_LOGIN(l): User ftp (192.168.1.23) has logged in successfully.

2003-05-30T06:42:44 is a timestamp in the iso format.

none

No timestamp is included.

All system information supports this parameter.

% Sysname FTPD/5/FTPD_LOGIN: User ftp (192.168.1.23) has logged in successfully.

No timestamp is included.

no-year-date

Current date and time without year information, in the format of mm dd hh:mm:ss:xxx.

Only the system information that is sent to the log host supports this parameter.

<189>May 30 06:44:22 Sysname %%10FTPD/5/FTPD_LOGIN(l): User ftp (192.168.1.23) has logged in successfully.

May 30 06:44:22 is a timestamp in the no-year-date format.