Skip to main content

Reporting events as cron jobs

To monitor the XCC event and report them periodically, Lenovo XCC Logger Utility can also be executed as cron jobs like other commands. Please refer to the man page of crontab for more detail.

For this purpose, a Linux shell script “add_task.sh” in Lenovo XCC Logger Utility is available. It can also be downloaded together with Lenovo XCC Logger Utility.

Command syntax:

  • Add or renew a task

    # /bin/bash add_task.sh -i <time interval in seconds>

For the first time this command is executed, a cron job for Lenovo XCC Logger Utility will be created. From the second time and later, it will update the old task with new interval specified in parameter.

Note
The time interval is in seconds and must be a multiple of 60.
  • Delete a task

    # /bin/bash add_task.sh -d

The cron job for Lenovo XCC Logger Utility will be removed.