Skip to main content

Configuration

This chapter shows how to check and change the configuration of Lenovo XCC Logger Utility.

By default, a configuration file called "config.ini" is created in the installation directory (/opt/lenovo/xcclogger/), which may have the following content:

[xcc]

ipaddr = 169.254.95.118

username = xcclogger

[report]

severity_ok = true

severity_warning = true

severity_critical = true

severity_others = true

platformlog = true

auditlog = true

activelog = true

maintenancelog = true

salog = true

format_string = [%Created%][%EventId%][%Severity%][%Name%] %Message%

  • "xcc - ipaddr" is the IP address of the virtual network device of Ethernet-over-USB feature.

    • It is acquired automatically from XCC during the installation.

    • It is not recommended to change it manually except when user needs to get the events from another network address.
      Note
      The credential saved or used for reporting must belong to the same XCC that the IP address directs.
  • "xcc - username" is the username of XCC account.

    • By default, it will be "xcclogger" and this account will be automatically created or renewed by Lenovo XCC Logger Utility during installation.

    • If manual initialization is performed after installation and another username is specified by parameter "-u", that username will be stored here.

    • It should not be changed manually otherwise the credential may become invalid.

  • "report - severity_ok", "report - severity_warning", "report - severity_critical" and "report - severity_others" indicate whether the event with the specified level should be reported. If the variable is set to false, it will be suppressed and not reported.

  • “platformlog”, “auditlog”, “activelog”, “maintenancelog” and “salog” indicate whether the event with the specified category should be reported. If the variable is set to false, it will be suppressed and not reported.

  • "report - format_string" can be used to customize the event message. The keyword surrounded by "%" will be replaced with the corresponding string in the event content.

Supported keywords:
KeywordMeaningSample

Created

Time when the event generated

2021-12-02T11:31:12.628+00:00

EventId

The index of the event

1

Severity

The severity level of the event

  • OK

  • Warning

  • Critical

Name

The name of the event category

LogEntry

Message

The event message

The connector Front VGA Detect has been connected.