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 |
|
|
Field description
Field | Description |
---|---|
PRI (priority) | The priority is calculated by using this formula: facility*8+level, where:
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) |
|
%% (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:
|
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:
|
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. |